2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-11-12 19:16:18 +00:00

Apply installedargs to the grub configuration of Ubuntu installs

post.sh wrote installedargs into /etc/default/grub but only ran
update-grub when it had also added a console, so grub.cfg kept the old
command line until some later grub update.
This commit is contained in:
Markus Hilger
2026-11-03 21:16:53 +01:00
parent ed49d131ad
commit 9830518131
2 changed files with 2 additions and 0 deletions
@@ -49,6 +49,7 @@ fi
kargs=$(curl https://$confluent_mgr/confluent-public/os/$confluent_profile/profile.yaml | grep ^installedargs: | sed -e 's/^installedargs:[[:space:]]*//' -e 's/#.*//')
if [ ! -z "$kargs" ]; then
sed -i 's/GRUB_CMDLINE_LINUX="\([^"]*\)"/GRUB_CMDLINE_LINUX="\1 '"${kargs}"'"/' /target/etc/default/grub
updategrub=1
fi
mkdir -p /opt/confluent/bin
mkdir -p /etc/confluent
@@ -49,6 +49,7 @@ fi
kargs=$(curl https://$confluent_mgr/confluent-public/os/$confluent_profile/profile.yaml | grep ^installedargs: | sed -e 's/^installedargs:[[:space:]]*//' -e 's/#.*//')
if [ ! -z "$kargs" ]; then
sed -i 's/GRUB_CMDLINE_LINUX="\([^"]*\)"/GRUB_CMDLINE_LINUX="\1 '"${kargs}"'"/' /target/etc/default/grub
updategrub=1
fi
mkdir -p /opt/confluent/bin
mkdir -p /etc/confluent