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:
d911a37
)
grml-debootstrap: support BOOT_APPEND in --vm mode
author
Chris Hofstaedtler
<chris@hofstaedtler.name>
Sat, 11 Nov 2023 14:23:46 +0000
(15:23 +0100)
committer
Chris Hofstaedtler
<chris@hofstaedtler.name>
Sat, 11 Nov 2023 14:37:46 +0000
(15:37 +0100)
grml-debootstrap
patch
|
blob
|
history
diff --git
a/grml-debootstrap
b/grml-debootstrap
index
364df6c
..
00ce363
100755
(executable)
--- a/
grml-debootstrap
+++ b/
grml-debootstrap
@@
-1692,6
+1692,11
@@
grub_install() {
eend $?
fi
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
einfo "Updating grub configuration file."
chroot "${MNTPOINT}" update-grub
chroot "${MNTPOINT}" sync