dracut/mkinitrd_update_bootloader.diff

14 lines
338 B
Diff
Raw Normal View History

--- 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
+