X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=chroot-script;fp=chroot-script;h=96fba0abe60bd9f2fd922053d4b78fdd7eb340a0;hp=68514e09014c57da6d01a78ab06f805c50ed1860;hb=e759ea33796895c4697ab18f734f281dbbd98929;hpb=1a5916818405f190f6daba76af047a33a50e8399 diff --git a/chroot-script b/chroot-script index 68514e0..96fba0a 100755 --- a/chroot-script +++ b/chroot-script @@ -646,6 +646,11 @@ grub_install() { return 1 fi + if [ -n "${BOOT_APPEND}" ] ; then + echo "Adding BOOT_APPEND configuration ['${BOOT_APPEND}'] to /etc/default/grub." + sed -i "/GRUB_CMDLINE_LINUX_DEFAULT/ s#\"\$# ${BOOT_APPEND}\"#" /etc/default/grub + fi + mountpoint /boot/efi &>/dev/null && umount /boot/efi $UPDATEGRUB