dracut/mkinitrd_update_bootloader.diff

15 lines
421 B
Diff

diff -urNB dracut-033/mkinitrd-dracut.sh new/mkinitrd-dracut.sh
--- dracut-033/mkinitrd-dracut.sh 2013-10-04 19:12:51.654775024 +0200
+++ new/mkinitrd-dracut.sh 2013-10-04 19:14:25.088173450 +0200
@@ -236,3 +236,10 @@
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
+