mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Update limine logic to check all .conf locations
Co-authored-by: Tjalve Aarflot <tjalve.github@proton.me>
This commit is contained in:
@@ -5,23 +5,20 @@ if command -v limine &>/dev/null; then
|
|||||||
HOOKS=(base udev plymouth keyboard autodetect microcode modconf kms keymap consolefont block encrypt filesystems fsck btrfs-overlayfs)
|
HOOKS=(base udev plymouth keyboard autodetect microcode modconf kms keymap consolefont block encrypt filesystems fsck btrfs-overlayfs)
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
[[ -f /boot/EFI/limine/limine.conf ]] || [[ -f /boot/EFI/BOOT/limine.conf ]] && EFI=true
|
# Detect boot mode
|
||||||
|
[[ -d /sys/firmware/efi ]] && EFI=true
|
||||||
|
|
||||||
# Conf location is different between EFI and BIOS
|
# Find config location
|
||||||
if [[ -n "$EFI" ]]; then
|
if [[ -f /boot/EFI/BOOT/limine.conf ]]; then
|
||||||
# Check USB location first, then regular EFI location
|
limine_config="/boot/EFI/BOOT/limine.conf"
|
||||||
if [[ -f /boot/EFI/BOOT/limine.conf ]]; then
|
elif [[ -f /boot/EFI/limine/limine.conf ]]; then
|
||||||
limine_config="/boot/EFI/BOOT/limine.conf"
|
limine_config="/boot/EFI/limine/limine.conf"
|
||||||
else
|
elif [[ -f /boot/limine/limine.conf ]]; then
|
||||||
limine_config="/boot/EFI/limine/limine.conf"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
limine_config="/boot/limine/limine.conf"
|
limine_config="/boot/limine/limine.conf"
|
||||||
fi
|
elif [[ -f /boot/limine.conf ]]; then
|
||||||
|
limine_config="/boot/limine.conf"
|
||||||
# Double-check and exit if we don't have a config file for some reason
|
else
|
||||||
if [[ ! -f $limine_config ]]; then
|
echo "Error: Limine config not found" >&2
|
||||||
echo "Error: Limine config not found at $limine_config" >&2
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user