From 7f5e35103e745a96cf205fba6ce2bb6cf23fb2dd Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Sat, 11 Nov 2023 15:23:46 +0100 Subject: [PATCH] grml-debootstrap: support BOOT_APPEND in --vm mode --- grml-debootstrap | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/grml-debootstrap b/grml-debootstrap index 364df6c..00ce363 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -1692,6 +1692,11 @@ grub_install() { eend $? 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}\"#" "${MNTPOINT}/etc/default/grub" + fi + einfo "Updating grub configuration file." chroot "${MNTPOINT}" update-grub chroot "${MNTPOINT}" sync -- 2.1.4