dracut/mkinitrd_update_bootloader.diff
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

14 lines
338 B
Diff

--- dracut-034.orig/mkinitrd-dracut.sh
+++ dracut-034/mkinitrd-dracut.sh
@@ -231,3 +231,10 @@ for ((i=0 ; $i<${#targets[@]} ; i++)); d
fi
fi
done
+
+if [ -z "$(type -p update-bootloader)" ] ; then
+ echo 2>&1 "Did not refresh the bootloader. You might need to refresh it manually."
+else
+ update-bootloader --refresh
+fi
+