projects
/
grml-debootstrap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add BOOT_APPEND to GRUB_CMDLINE_LINUX_DEFAULT
[grml-debootstrap.git]
/
grml-debootstrap
diff --git
a/grml-debootstrap
b/grml-debootstrap
index
60358d3
..
85f0930
100755
(executable)
--- a/
grml-debootstrap
+++ b/
grml-debootstrap
@@
-1011,6
+1011,9
@@
finalize_vm() {
rm -f "${MNTPOINT}/tmp/core.img"
einfo "Updating grub configuration file."
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
chroot "${MNTPOINT}" update-grub
umount "${MNTPOINT}"/proc