diff --git a/install/login/limine-snapper.sh b/install/login/limine-snapper.sh index 6a037207..e837b01f 100644 --- a/install/login/limine-snapper.sh +++ b/install/login/limine-snapper.sh @@ -75,7 +75,7 @@ term_palette_bright: 414868;f7768e;9ece6a;e0af68;7aa2f7;bb9af7;7dcfff;c0caf5 term_foreground: c0caf5 term_foreground_bright: c0caf5 term_background_bright: 24283b - + EOF @@ -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/') fi -if [[ -n $EFI ]] && efibootmgr &>/dev/null && - ! 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) - - if [[ -n "$uki_file" ]]; then - sudo efibootmgr --create \ - --disk "$(findmnt -n -o SOURCE /boot | sed 's/p\?[0-9]*$//')" \ - --part "$(findmnt -n -o SOURCE /boot | grep -o 'p\?[0-9]*$' | sed 's/^p//')" \ - --label "Omarchy" \ - --loader "\\EFI\\Linux\\$uki_file" - fi -fi +# Move this to a utility to allow manual activation +# if [[ -n $EFI ]] && efibootmgr &>/dev/null && +# ! 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) +# +# if [[ -n "$uki_file" ]]; then +# sudo efibootmgr --create \ +# --disk "$(findmnt -n -o SOURCE /boot | sed 's/p\?[0-9]*$//')" \ +# --part "$(findmnt -n -o SOURCE /boot | grep -o 'p\?[0-9]*$' | sed 's/^p//')" \ +# --label "Omarchy" \ +# --loader "\\EFI\\Linux\\$uki_file" +# fi +# fi