2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-11-29 22:02:23 +00:00

Merge pull request #366 from Obihoernchen/fix/ubuntu-install-fixes

Fix Ubuntu install to disk and installedargs
This commit is contained in:
Jarrod Johnson
2026-11-04 08:28:59 -05:00
committed by GitHub
3 changed files with 12 additions and 2 deletions
@@ -16,6 +16,14 @@ exec 2>> /var/log/confluent/confluent-post.log
chmod 600 /var/log/confluent/confluent-post.log
tail -f /var/log/confluent/confluent-post.log > /dev/console &
logshowpid=$!
# The image's initramfs can be specific to the system it was captured from:
# dracut in host-only mode (Ubuntu 26.04) waits for that system's volume
# group and filesystem UUIDs. Rebuild it for this disk.
if command -v update-initramfs > /dev/null 2>&1; then
update-initramfs -u -k all
elif command -v dracut > /dev/null 2>&1; then
dracut -f --regenerate-all
fi
curl -f https://$confluent_mgr/confluent-public/os/$confluent_profile/scripts/firstboot.service > /etc/systemd/system/firstboot.service
mkdir -p /opt/confluent/bin
curl -f https://$confluent_mgr/confluent-public/os/$confluent_profile/scripts/firstboot.sh > /opt/confluent/bin/firstboot.sh
@@ -46,9 +46,10 @@ if [ "$textcons" = "true" ] && ! grep console= /proc/cmdline > /dev/null; then
updategrub=1
fi
fi
kargs=$(curl https://$confluent_mgr/confluent-public/os/$confluent_profile/profile.yaml | grep ^installedargs: | sed -e 's/#.*//')
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
@@ -46,9 +46,10 @@ if [ "$textcons" = "true" ] && ! grep console= /proc/cmdline > /dev/null; then
updategrub=1
fi
fi
kargs=$(curl https://$confluent_mgr/confluent-public/os/$confluent_profile/profile.yaml | grep ^installedargs: | sed -e 's/#.*//')
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