dracut/mkinitrd-fix-boot-dir-detection.patch
Raymond Wooninck 23fde8b67c Accepting request 203550 from home:elvigia:branches:Base:System
- remove use_all_paths_udev.patch, /lib/udev.. is a symlink 
  to /usr nowadays this confuses other parts of the code causing
  errors/warnings during the initrd generation.

OBS-URL: https://build.opensuse.org/request/show/203550
OBS-URL: https://build.opensuse.org/package/show/Base:System/dracut?expand=0&rev=78
2013-10-17 07:26:38 +00:00

19 lines
687 B
Diff

--- dracut-034.orig/mkinitrd-dracut.sh
+++ dracut-034/mkinitrd-dracut.sh
@@ -179,7 +179,14 @@ while (($# > 0)); do
;;
-i) read_arg initrd_images "$@" || shift $?
for initrd_image in $initrd_images;do
- targets="$targets $boot_dir/$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";
+ else
+ targets="$targets $initrd_image";
+ fi
done
;;
*) if [[ ! $targets ]]; then