Remove setting UKI as primary boot from default

This commit is contained in:
Ryan Hughes
2025-10-23 13:51:29 -04:00
parent 385020cbb0
commit 9b4a42cc03

View File

@@ -120,17 +120,18 @@ if [[ -n $EFI ]] && efibootmgr &>/dev/null; then
done < <(efibootmgr | grep -E "^Boot[0-9]{4}\*? Arch Linux Limine" | sed 's/^Boot\([0-9]\{4\}\).*/\1/') done < <(efibootmgr | grep -E "^Boot[0-9]{4}\*? Arch Linux Limine" | sed 's/^Boot\([0-9]\{4\}\).*/\1/')
fi fi
if [[ -n $EFI ]] && efibootmgr &>/dev/null && # Move this to a utility to allow manual activation
! cat /sys/class/dmi/id/bios_vendor 2>/dev/null | grep -qi "American Megatrends" && # if [[ -n $EFI ]] && efibootmgr &>/dev/null &&
! cat /sys/class/dmi/id/bios_vendor 2>/dev/null | grep -qi "Apple"; then # ! cat /sys/class/dmi/id/bios_vendor 2>/dev/null | grep -qi "American Megatrends" &&
# ! cat /sys/class/dmi/id/bios_vendor 2>/dev/null | grep -qi "Apple"; then
uki_file=$(find /boot/EFI/Linux/ -name "omarchy*.efi" -printf "%f\n" 2>/dev/null | head -1) #
# uki_file=$(find /boot/EFI/Linux/ -name "omarchy*.efi" -printf "%f\n" 2>/dev/null | head -1)
if [[ -n "$uki_file" ]]; then #
sudo efibootmgr --create \ # if [[ -n "$uki_file" ]]; then
--disk "$(findmnt -n -o SOURCE /boot | sed 's/p\?[0-9]*$//')" \ # sudo efibootmgr --create \
--part "$(findmnt -n -o SOURCE /boot | grep -o 'p\?[0-9]*$' | sed 's/^p//')" \ # --disk "$(findmnt -n -o SOURCE /boot | sed 's/p\?[0-9]*$//')" \
--label "Omarchy" \ # --part "$(findmnt -n -o SOURCE /boot | grep -o 'p\?[0-9]*$' | sed 's/^p//')" \
--loader "\\EFI\\Linux\\$uki_file" # --label "Omarchy" \
fi # --loader "\\EFI\\Linux\\$uki_file"
fi # fi
# fi