Skip to content

Commit

Permalink
tidy the fix uefi boot autoinstall late-command regex and make it cas…
Browse files Browse the repository at this point in the history
…e-insensitive
  • Loading branch information
rgl committed Mar 23, 2024
1 parent 1941bd3 commit 1d9dc06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoinstall-cloud-init-data/user-data
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ write_files:
# see https://bugs.launchpad.net/subiquity/+bug/1901397
if [ -d /sys/firmware/efi ]; then
apt-get install -y efibootmgr
efibootmgr -o $(efibootmgr | perl -n -e '/Boot(.+)\* ubuntu/ && print $1')
ubuntu_boot_option="$(efibootmgr | perl -ne '/^Boot(\d+)\* Ubuntu/i && print $1')"
efibootmgr -o "$ubuntu_boot_option"
fi
permissions: '0755'
snippets:
Expand Down

0 comments on commit 1d9dc06

Please sign in to comment.