What bootloader should I use?
Hi! I'm planning on reinstalling Arch on my PC soon, should I keep using grub for UEFI?
EDIT:Now I'm using systemd boot, not too hard to configure and I hope I doesn't have problems like the time grub broke
Edited 7 May 2023. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 95 · 96% up
- Kind
- Text
- ID
- 139awly
102 comments
I find systemd-boot easier to configure and more reliable, but I'm fine with using grub when I'm forced to because of an old computer or if I'm trying to take advantage of grub-btrfs.
I use Systemd-boot exclusively for the "reboot to" feature.
Just one click to reboot to UEFI/Another OS.
https://wiki.archlinux.org/title/Systemd-boot#Choosing_next_boot
One thing to keep in mind is that systemd-boot doesn't play as nicely with BTRFS as it does ext4, so if BTRFS+snapper is a configuration that interests you, you may want to start with GRUB and then try to make systemd-boot work once you have everything else set up properly
What? I didn't even know that, and my btrfs+snapper+ systems-boot combination works perfectly.
Systemd-boot and Btrfs doesn't play that nice in case you want to use Btrfs-snapshots! If you use Btrfs for everything else, it's pretty much a no brainer to use systemd-boot.
Systemd-boot doesn’t care about what file system your main partition uses. The mounting is done by after control has been handed over to the kernel. You issue is likely elsewhere.
No.
systemd-boot passes command line arguments and execution to a local kernel plus initrd.img. The kernel un-squashes the ramfs image and starts init (systemd.)
When systemd.mount starts it searches for the filesystem to mount (passed on the kernel command line as e.g. root=UUID=XYZ)
If the filesystem is btrfs, systemd.mount will use rootflags=subvol="ABC" if it exists and if nothing is provided it will mount the "default subvolume"
btrfs subvolume get-default /; (man btrfs-subvolume.8.)The same applies to root (
/) in/etc/fstab.What snapper does not do is update the files in esp (
/efi) to match what is in the old/bootor update the fstab with any new subvolumes you added/renamed.That needs to be done before rebooting the system.
Note:
/bootis on my root (/) subvolume.Use whatever. Grub is most common. It works. I use systemd boot thingy
This, use whatever (wo)man. Linux is about freedom and seeying what YOU like. Not what a random person on the internet likes
Why the downvotes? He got a point.
Here's one vote for systemd.
Have no idea why, but I have always found systemd-boot easier to install, use and maintain.
Refind is good to go
I also like refind. You can theme it to look pretty. And grub seems extremely slow to even display at high resolutions.
But really anything is fine. You can even skip the bootloader all together as the kernels can be booted directly. But that seems more work than it's worth.
Does it support easy setup for addition OS, like os-prober?
It detects all bootable oses itself. So no need to run any comands. I very often hot swap disks with other oses and bootable usb stick, and it detects them all when it launches.
Edit: and you dont even need to delete grub to test it. You can install it alongside and if you dont like it remove it.
All it should take is to run refind-install and you should be good to go. No need for OS-prober because it auto-detects kernels, other bootloaders, bootable devices, etc. At runtime.
fully agree!
Bootloaders are bloat! UEFI can boot the kernel directly: https://wiki.archlinux.org/title/EFISTUB
I use this too and I'm very happy with it
Trust me... I used this trick on a 4th gen i5 with 1gb of ram for an arcade machine. The thing boots in 6 seconds to the desktop (lxqt) and after 22 seconds it's in-game.
My friend complained that his laptop with 7th gen i7 and 16gb of ram was waaay slower than that. Minor detail: he ran windows.
Keep in mind that some bioses are buggy, so they need unified kernel image instead.
One can have their vmlinuz and initramfs on their root partition and have /EFI as their ESP, where sbctl bundles and signs the UKI. This is the way.
what about dualboot?
I don't have this setup (i use refind) but I have heard that others who use efistub if they are dualbooting they just switch to windows using boot priority in their bios.
Learn something new everyday. Gonna try this out soon.
My experience: Unified Kernel Image (UKI) with systemd boot manager... — systemd is needed for easier dual booting but it's not necessary.
It was the first way I started to use booting my Arch, in my first installation. And now using it for everyone whose system I take care of ; including my parents and my brother and two of my friends.
It's pretty fast, surely faster than Grub and probably faster than regular boot. But I don't claim such a word for sure. Also, I didn't have any stability issues during these years.
NOTE: I'm using
mkinitcpioto build my kernel images but you also can usedracut.Yes, with UKI you don't even need a bootloader, how cool is that, /u/Bember ?
https://wiki.archlinux.org/title/Unified_kernel_image
Can it boot off btrfs snapshots? That's the one capability of grub that I miss after switching to systemd-boot
See the arch wiki you can sideload efifs drivers.
Refind
If you don't have a special need for any of them, realistically everything will do. However, you might as well try something new if you feel like doing so.
Take a look at systemd-boot to see if it interests you, or keep using GRUB. Both of them will just work, though systemd-boot has less features because the idea is to keep it simple.
Sure
I used grub for very long time but like a year ago i switched to rEFInd and i love it. It just detects everything that is bootable no need for osprober or other reconfigurations, customisable. And you can have it alongside grub.
Efistub works well for me.
But almost anything you can get to work is fine. It doesn't make a difference once your system is booted.
I use refind but if you need to look up how to do anything the instructions will almost always use grub.
If you're on arch and use systemd anyway, use systemd-boot instead of grub.
GRUB always works, but if it doesn't work, use BURG
None, create a unified kernel image in ESP/EFI/Boot/BOOTx64.efi and the UEFI firmware will auto boot it.
I started with GRUB but I still run BIOS-elder tech, then GRUB on UEFI... No issues with anything, simple to configure once you have your hands in it a minute.
Just recently started to transition over to Systemd-boot but got into moving the house so only ONE UEFI has systemd-boot. Unfortunately I lost all my cool shit like "Unlock an encrypted volume remotely via TinySSH" for the moment because to get Systemd to do it you need to pull some horseshit "systemd-tool" GitHub package that has literally no legibly comprehensive instruction which I could discern in the moment.
But hey, fucker looks clean.... And boots!!! Ssssso.
I decided to go with systemd-boot with the reinstall I did 2 weeks ago, and I'm happy with how simple it is. I'm also happy I didn't need to install any additional packages.
I've always liked systemd-boot. Its much more simple and reliable than grub imo
use efibootmgr directly, no need for a bootloader
How would I edit kernel parameters this way?
I have a UEFI system and I use GRUB, no problems with it honestly. It just takes some set-up
Personally I prefer to use syslinux
As many people pointed here, it all comes down to your configuration and preferences.
Personally, I stick to GRUB because my typical configuration just works (and is essentially portable), because I dual boot with Windows, because I use btrfs with snapshots, and because I use a personalised theme that keeps the OEM logo in place and puts a simple clear menu under it, which makes the whole thing look native to the computer itself rather than to either Windows or Arch. Can't do all that with systemd-boot, can't be bothered to replicate it with reFind, especially since GRUB is already set up.
None, just use linux's EFISTUB
systemd-boot is very nice and is configurable like grub 1.0
Grub is a nice bootloader, but it has a lot of features that you don’t really need if you boot with EFI + Linux EFI stub
If you are going for dual boot, then I recommend Grub; I am using it and I love it; it's simple and yet good. If you are planning to install just Arch Linux, then go with systemd boot; it's fast and gets the job done.
I reainstalled the system and I'm running systemd boot now
Systemd or grub