From 8bff5c272b6eebcccfa022fe0491d286a9b1d422 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 20 May 2020 14:26:22 -0400 Subject: [PATCH] Actually modify meaningful grub config --- .../ubuntu20.04/profiles/default/scripts/post.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/confluent_osdeploy/ubuntu20.04/profiles/default/scripts/post.sh b/confluent_osdeploy/ubuntu20.04/profiles/default/scripts/post.sh index 84240b86..78a6acb9 100755 --- a/confluent_osdeploy/ubuntu20.04/profiles/default/scripts/post.sh +++ b/confluent_osdeploy/ubuntu20.04/profiles/default/scripts/post.sh @@ -31,8 +31,12 @@ if [ "$textcons" = "true" ] && ! grep console= /proc/cmdline > /dev/null; then cons=$(cat /custom-installation/autocons.info) fi if [ ! -z "$cons" ]; then - sed -e 's/GRUB_CMDLINE_LINUX="\([^"]*\)"/GRUB_CMDLINE_LINUX="\1 console='${cons#/dev/}'"/' /target/etc/default/grub + sed -i 's/GRUB_CMDLINE_LINUX="\([^"]*\)"/GRUB_CMDLINE_LINUX="\1 console='${cons#/dev/}'"/' /target/etc/default/grub + mount -o bind /dev /target/dev + mount -o bind /proc /target/proc + mount -o bind /sys /target/sys chroot /target update-grub + umount /target/sys /target/dev /target/proc fi fi