Skip to content

Commit

Permalink
grml-debootstrap: support BOOT_APPEND in --vm mode
Browse files Browse the repository at this point in the history
  • Loading branch information
zeha committed Nov 11, 2023
1 parent d911a37 commit 7f5e351
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions grml-debootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f5e351

Please sign in to comment.