Add limine as a bootloader selection

Signed-off-by: Vasiliy Stelmachenok <ventureo@cachyos.org>
This commit is contained in:
Vasiliy Stelmachenok authored and Peter Jung committed 2025-03-26 15:26:24 +01:00
1 parent 100cd9e5e8
commit 3b0c1375d4
1 file changed
+13 -2
@@ -28,17 +28,21 @@ Main() {
local BOOTLOADER="" local BOOTLOADER=""
if [ -d "${_efi_check_dir}" ]; then if [ -d "${_efi_check_dir}" ]; then
SYSTEM="UEFI SYSTEM" SYSTEM="UEFI SYSTEM"
# Restrict bootloader selection to only UEFI systems
_exitcode=$(yad --width 300 --title "Bootloader" \ _exitcode=$(yad --width 300 --title "Bootloader" \
--image=gnome-shutdown \ --image=gnome-shutdown \
--button="Grub:2" \ --button="Grub:2" \
--button="Systemd-boot(Default):3" \ --button="Systemd-boot(Default):3" \
--button="Refind:4" \ --button="Refind:4" \
--button="AI SDK / Refind:5" \ --button="AI SDK / Refind:5" \
--button="Limine:6" \
--text "Choose Bootloader/Edition:" ; echo $?) --text "Choose Bootloader/Edition:" ; echo $?)
else else
SYSTEM="BIOS/MBR SYSTEM" SYSTEM="BIOS/MBR SYSTEM"
_exitcode=$(yad --width 300 --title "Bootloader" \
--image=gnome-shutdown \
--button="Grub:2" \
--button="Limine:6" \
--text "Choose Bootloader/Edition:" ; echo $?)
fi fi
local ISO_VERSION="$(cat /etc/version-tag)" local ISO_VERSION="$(cat /etc/version-tag)"
@@ -70,6 +74,13 @@ Main() {
yes | sudo pacman -R cachyos-calamares-qt6-systemd yes | sudo pacman -R cachyos-calamares-qt6-systemd
yes | sudo pacman -R cachyos-calamares-qt6-refind yes | sudo pacman -R cachyos-calamares-qt6-refind
yes | sudo pacman -Sy cachyos-calamares-qt6-ai yes | sudo pacman -Sy cachyos-calamares-qt6-ai
elif [[ "${_exitcode}" -eq 6 ]]; then
BOOTLOADER="Limine"
echo "USING Limine"
yes | sudo pacman -R cachyos-calamares-qt6-grub
yes | sudo pacman -R cachyos-calamares-qt6-systemd
yes | sudo pacman -R cachyos-calamares-qt6-refind
yes | sudo pacman -Sy cachyos-calamares-qt6-limine
else else
exit exit
fi fi