Raymond Wooninck 2013-10-09 11:02:15 +00:00 committed by Git OBS Bridge
parent a53fb0ad6d
commit d022d1bd78
2 changed files with 17 additions and 7 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Wed Oct 9 10:59:01 UTC 2013 - tittiatcoke@gmail.com
- Updated the patch mkinitrd-fix-boot-dir-detection.patch to a
more generic validation that the inidcated initrd file doesn't
contain a path. If no path is given, then add the default
boot_dir.
-------------------------------------------------------------------
Tue Oct 8 18:59:30 UTC 2013 - tittiatcoke@gmail.com

View File

@ -1,17 +1,19 @@
diff -urNB dracut-033/mkinitrd-dracut.sh new/mkinitrd-dracut.sh
--- dracut-033/mkinitrd-dracut.sh 2013-10-04 13:57:15.000000000 +0200
+++ new/mkinitrd-dracut.sh 2013-10-08 20:55:59.280035248 +0200
@@ -172,7 +172,12 @@
@@ -172,7 +172,14 @@
;;
-i) read_arg initrd_images "$@" || shift $?
for initrd_image in $initrd_images;do
- targets="$targets $boot_dir/$initrd_image"
+ case $initrd_image in
+ "$boot_dir"*)
+ targets="$targets $initrd_image";;
+ *)
+ # Check if the initrd_image contains a path.
+ # if not, then add the default boot_dir
+ dname=`dirname $initrd_image`
+ if [ "$dname" == "." ]; then
+ targets="$targets $boot_dir/$initrd_image";;
+ esac
+ else
+ targets="$targets $initrd_image";;
+ fi
done
;;
*) if [[ ! $targets ]]; then