From 1cb5efae756ea05b5735456f6de06e078bb0fe49 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 21 Sep 2021 11:21:13 -0400 Subject: [PATCH] Call efibootmgr in chroot for ubuntu --- .../ubuntu20.04/profiles/default/scripts/post.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/confluent_osdeploy/ubuntu20.04/profiles/default/scripts/post.sh b/confluent_osdeploy/ubuntu20.04/profiles/default/scripts/post.sh index e00b681f..7380ad82 100755 --- a/confluent_osdeploy/ubuntu20.04/profiles/default/scripts/post.sh +++ b/confluent_osdeploy/ubuntu20.04/profiles/default/scripts/post.sh @@ -67,8 +67,8 @@ if [ -e /sys/firmware/efi ]; then bootnum=$(efibootmgr | grep ubuntu | sed -e 's/ .*//' -e 's/\*//' -e s/Boot//) currboot=$(efibootmgr | grep ^BootOrder: | awk '{print $2}') nextboot=$(echo $currboot| awk -F, '{print $1}') - [ "$nextboot" = "$bootnum" ] || efibootmgr -o $bootnum,$currboot - efibootmgr -D + [ "$nextboot" = "$bootnum" ] || chroot /target efibootmgr -o $bootnum,$currboot + chroot /target efibootmgr -D fi cat /target/etc/confluent/tls/*.pem > /target/etc/confluent/ca.pem cat /target/etc/confluent/tls/*.pem > /etc/confluent/ca.pem