Skip to content

Commit

Permalink
fix(kiss): remove legacy boot ordering support
Browse files Browse the repository at this point in the history
  • Loading branch information
HoKim98 committed Dec 6, 2024
1 parent 50d0d74 commit c617060
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions templates/kiss/assets/boot/cloud-init_ubuntu_24.04_post-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -520,16 +520,6 @@ fi
## Apply
grub-mkconfig -o /boot/grub/grub.cfg

# Boot Order
BOOT_NUM="$(
efibootmgr |
grep -P '^Boot[0-9A-F]+(\*)?[ \t]+Ubuntu[ \t]+' |
grep -P '\\EFI\\ubuntu\\shimx64.efi\)$' |
grep -Po '^Boot\K[0-9A-F]+'
)"
#efibootmgr --bootnum "${BOOT_NUM}" --active
efibootmgr --bootorder "${BOOT_NUM}"

# Hostname
UUID="$(cat /sys/class/dmi/id/product_uuid)"
echo "127.0.0.1 ${UUID}" >>/etc/hosts
Expand Down

0 comments on commit c617060

Please sign in to comment.