projects
/
grml-debootstrap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
76ca758
)
add BOOT_APPEND to GRUB_CMDLINE_LINUX_DEFAULT
author
Evgeni Golov
<evgeni@grml.org>
Thu, 9 Aug 2012 14:54:30 +0000
(16:54 +0200)
committer
Michael Prokop
<mika@grml.org>
Tue, 14 Aug 2012 17:07:42 +0000
(19:07 +0200)
it was broken since commit
cbf40a49324ae7feb468e528a7845465304faaff
grml-debootstrap
patch
|
blob
|
history
diff --git
a/grml-debootstrap
b/grml-debootstrap
index
cb98aeb
..
8667738
100755
(executable)
--- a/
grml-debootstrap
+++ b/
grml-debootstrap
@@
-1018,6
+1018,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