Everyone can have UKI

This commit is contained in:
Ryan Hughes 2025-08-24 00:01:23 +02:00
parent 0ebd62a32e
commit 3725f2d3b6

View File

@ -86,8 +86,7 @@ EOF
fi
# Add UKI entry to UEFI machines to skip bootloader showing on normal boot
# Only doing this for ISO installs
if [ -n "${OMARCHY_CHROOT_INSTALL:-}" ] && efibootmgr &>/dev/null && ! efibootmgr | grep -q Omarchy; then
if [ -n "$EFI" ] && efibootmgr &>/dev/null && ! efibootmgr | grep -q Omarchy; then
sudo efibootmgr --create \
--disk "$(findmnt -n -o SOURCE /boot | sed 's/[0-9]*$//')" \
--part "$(findmnt -n -o SOURCE /boot | grep -o '[0-9]*$')" \