2013-10-17 07:26:38 +00:00
|
|
|
--- dracut-034.orig/mkinitrd-dracut.sh
|
|
|
|
+++ dracut-034/mkinitrd-dracut.sh
|
|
|
|
@@ -179,7 +179,14 @@ while (($# > 0)); do
|
2013-10-08 19:00:45 +00:00
|
|
|
;;
|
|
|
|
-i) read_arg initrd_images "$@" || shift $?
|
|
|
|
for initrd_image in $initrd_images;do
|
|
|
|
- targets="$targets $boot_dir/$initrd_image"
|
2013-10-09 11:02:15 +00:00
|
|
|
+ # Check if the initrd_image contains a path.
|
|
|
|
+ # if not, then add the default boot_dir
|
|
|
|
+ dname=`dirname $initrd_image`
|
|
|
|
+ if [ "$dname" == "." ]; then
|
2013-10-13 15:26:18 +00:00
|
|
|
+ targets="$targets $boot_dir/$initrd_image";
|
2013-10-09 11:02:15 +00:00
|
|
|
+ else
|
2013-10-13 15:26:18 +00:00
|
|
|
+ targets="$targets $initrd_image";
|
2013-10-09 11:02:15 +00:00
|
|
|
+ fi
|
2013-10-08 19:00:45 +00:00
|
|
|
done
|
|
|
|
;;
|
|
|
|
*) if [[ ! $targets ]]; then
|