From: Evgeni Golov Date: Thu, 9 Aug 2012 14:54:30 +0000 (+0200) Subject: add BOOT_APPEND to GRUB_CMDLINE_LINUX_DEFAULT X-Git-Tag: v0.55~4 X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=commitdiff_plain;h=a9697fb1f06fdf687045eef8381e7b01620ce45a add BOOT_APPEND to GRUB_CMDLINE_LINUX_DEFAULT it was broken since commit cbf40a49324ae7feb468e528a7845465304faaff --- diff --git a/grml-debootstrap b/grml-debootstrap index cb98aeb..8667738 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -1018,6 +1018,9 @@ finalize_vm() { rm -f "${MNTPOINT}/tmp/core.img" einfo "Updating grub configuration file." + if [ -n "$BOOT_APPEND" ] ; then + sed -i "/GRUB_CMDLINE_LINUX_DEFAULT/ s#\"\$# ${BOOT_APPEND}\"#" "${MNTPOINT}"/etc/default/grub + fi chroot "${MNTPOINT}" update-grub umount "${MNTPOINT}"/proc