add BOOT_APPEND to GRUB_CMDLINE_LINUX_DEFAULT
authorEvgeni Golov <evgeni@grml.org>
Thu, 9 Aug 2012 14:54:30 +0000 (16:54 +0200)
committerMichael Prokop <mika@grml.org>
Mon, 17 Dec 2012 09:55:18 +0000 (10:55 +0100)
it was broken since commit cbf40a49324ae7feb468e528a7845465304faaff

grml-debootstrap

index 60358d3..85f0930 100755 (executable)
@@ -1011,6 +1011,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