r/cachyos • • 4d ago

Help Changing my bootloader

I'm currently using GRUB and would like to consider switching to one of the others. I want my bootloader to be a lot faster than it currently is, and I also need it to have eacv2 support (which ik grub is experimental on). I might also want to buy another SSD soon and dualboot windows with it. I've tried looking but haven't been able to find a solid tutorial on how to do it. If anyone could recommend a bootloader for my situation and link a tutorial somewhere that would be great. Thanks

2 Upvotes

13 comments sorted by

5

u/xb666mx 4d ago

i would recommend limine as bootloader (best compatibilty and integration).

if your boot partition is 4 GB in size, you could install the limine packages, change your mount point from /boot/efi to /boot, configure limine and do some cleaning up afterwards.

but your boot partition most likely will be smaller than 4 GB (i guess around 1 GB) because grub needs fewer space and therefore the installer and wiki will recommend/choose just that. with that you'd need to resize your partitions first, which isn't even possible if you have a file system like xfs/zfs. but even with only fat32, btrfs and/or ext4 this is rather tedious.

so your best bet is: save all the important stuff/configs to an external drive and do a fresh install with the latest cachyos ISO. afterwards restore your stuff/configs (but be aware that even this could break some things).

1

u/autistic-terrorist 4d ago

how can i save my system configs? i don't have any important files and can just redownload anything, so can i just find my kde system configs, zip them up, then extract them in the new system and paste them in and it'll work after a reboot? if so, where are these files

also probably dumb question but why can't i just resize the boot partition? id just like to know what would stop that

1

u/xb666mx 4d ago

manually it can be a pain in the xxx. :D

so maybe you want to use something like this: https://gitlab.com/cscs/transfuse

run the -b parameter for backup on your current installation, then find the backup-data and save it to an external drive. on your new installation restore the backup-data and then run -r parameter. (the gitlab site lists all available parameters/options - you can also backup your current package list)

1

u/NalevQT 3d ago

cscs the goat

1

u/AsYouAnswered 3d ago

Limine works just fine with a smaller ESP. As small as 1GiB for sure. It just means you get to keep fewer kernel images and initrd files lying around. I've got a system with 1 built-in 64GB emmc set up with limine on only 1GiB.

3

u/oliveraparicio 4d ago

Limine!!!

2

u/brolios 4d ago

Truth is, it's not easy. I recommend doing it from the cachyos live environment (also make sure is the latest version)

Look at the cachyos instalation wiki, and follow the steps to manually install s boot loader for the first time

Backup your data, double check the names of your devices, write in paper and stick it into your forehead. (sorry I have deleted oh so many wrong disks this way)

2

u/0ptimus_Pr1me 3d ago

Than reFInd is what you are looking for. I recently migrated to it. It needs additional setup for btrfs snapshots and snapper.

1

u/vilwaquet 4d ago

I am relatively new to cachyOS but I had the same issue. I chose grub on my initial installation because that is what I am familiar with. Then I found out about probable future issues with EAC2. Since I use the OS exclusively for gaming this was likely to eventually become an issue. I tried some of the methods I found online for changing the bootloader, but in the end just ended up messing up the boot partition. There may be a way to do it, but I just ended up re-installing cachyOS and selected Limine as the bootloader. It is EAC2 compatible. There is a reason that Limine is the default choice during the installation process.

1

u/friendlyreminder_ 3d ago

Limine actually isn't eacv2 compatible. The devs chose to chainload systemd-boot from limine which is a overcomplicated solution.

I feel like it would be better for them to commit to systemd-boot fully.

I also don't in general like how they let users pick whichever bootloader they want to use at install time. They're not all well supported, so why give users the option to pick not well supported ones. Bootloaders are not the easiest to replace post-install.

1

u/United-Afternoon4191 2d ago

oh UKI is not accepted by EAC without bootloader.

1

u/Glad-Key7256 4d ago edited 4d ago

EDIT: You can simply follow the instructions in this video https://www.youtube.com/watch?v=d9sGrPTYhrQ

I always set limine as my default on cachyos since it is a lot faster than grub (at least in my experience). I used EndeavourOS before this and I have on several occasions switched from grub to limine on EOS since it doesn't provide limine as an option. On EOS, iirc, I had to first remove eos-dracut and replace it with limine-dracut-support or limine. I don't think you will have to do something similar on cachyos (I could be wrong)

Please create a system snapshot and backup your necessary files before you proceed with the switch. Read the requir

Here are some loose pointers; please cross-check and do a bit more research before you follow any of this, since I haven't switched bootloaders on cachyos and have only done it on EOS:

  1. You need to install limine, limine-mkinitcpio-hook, and limine-snapper-sync (if you are using brrfs, which you should be imo as it would be advisable to create snapshots before doing a bootloader change).
  2. Iirc, you should then run sudo limine-update or. sudo limine-mkinitcpio
  3. I don't remember if sudo limine-update creates a file at /etc/default/limine. If it doesn't, create /etc/default/limine. Print the contents of /proc/cmdline. The contents should look like this:

Copy the output and paste it in /etc/default/cmdline in the following manner:

KERNEL_CMDLINE[default]+="quiet nowatchdog splash rw rootflags=subvol=/@ rd.luks.uuid=80cc4f2a-200d-4e38-b221-68a1e533114c root=/dev/mapper/luks-80cc4f2a-200d-4e38-b221-68a1e533114c rcutree.enable_rcu_lazy=1 lsm=landlock,lockdown,yama,integrity,apparmor,bpf"
BOOT_ORDER="*, *lts, *fallback, Snapshots"

Basically, you enclose the output of /proc/cmdline in double quotes, and prefix this with KERNEL_CMDLINE

4. Enable limine-snapper-sync service by running

systemctl enable --now limine-snapper-sync.service

5. Before reboot, run sudo limine-mkinitcpio once again. Ensure that there are no errors in the output.

1

u/squizleydoopus 3d ago

I'm still pretty new to Limine but I'm pretty impressed with it.