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>
Tue, 14 Aug 2012 17:07:42 +0000 (19:07 +0200)
it was broken since commit cbf40a49324ae7feb468e528a7845465304faaff

grml-debootstrap

index cb98aeb..8667738 100755 (executable)
@@ -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