Skip to content

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.

95 points93 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
95 · 96% up
Kind
Text
ID
139awly

Author

25
posts
62
comments
1
media
View profile

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.

96 points

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

5 points

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.

8 points

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.

3 points

u/thomas-rousseau

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

One thing to keep in mind is that systemd-boot doesn't play as nicely with BTRFS

No.

. . . .

systemd-boot operates on the EFI System Partition (ESP) only. Configuration file fragments, kernels, initrds, other EFI images need to reside on the ESP. Linux kernels need to be built with CONFIG_EFI_STUB to be able to be directly executed as an EFI image.

systemd-boot reads simple and entirely generic boot loader configuration files; one file per boot loader entry to select from. All files need to reside on the ESP.

. . .

www.freedesktop.org

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 /boot or update the fstab with any new subvolumes you added/renamed.

That needs to be done before rebooting the system.

​

Note: /boot is on my root (/) subvolume.

3 points

Use whatever. Grub is most common. It works. I use systemd boot thingy

75 points

Here's one vote for systemd.

Have no idea why, but I have always found systemd-boot easier to install, use and maintain.

10 points

Refind is good to go

55 points

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.

18 points

Does it support easy setup for addition OS, like os-prober?

4 points

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.

21 points

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.

2 points

Bootloaders are bloat! UEFI can boot the kernel directly: https://wiki.archlinux.org/title/EFISTUB

42 points

I use this too and I'm very happy with it

10 points

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.

7 points

Keep in mind that some bioses are buggy, so they need unified kernel image instead.

7 points

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.

4 points
unknown author1 hidden

what about dualboot?

2 points

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.

2 points

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 mkinitcpio to build my kernel images but you also can use dracut.

20 points

Can it boot off btrfs snapshots? That's the one capability of grub that I miss after switching to systemd-boot

2 points

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.

11 points

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.

7 points

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.

6 points

I use refind but if you need to look up how to do anything the instructions will almost always use grub.

6 points

If you're on arch and use systemd anyway, use systemd-boot instead of grub.

5 points

None, create a unified kernel image in ESP/EFI/Boot/BOOTx64.efi and the UEFI firmware will auto boot it.

5 points

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.

5 points

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.

4 points

I've always liked systemd-boot. Its much more simple and reliable than grub imo

4 points

use efibootmgr directly, no need for a bootloader

3 points

How would I edit kernel parameters this way?

2 points
efibootmgr --create --disk /dev/sdX --part Y --loader /vmlinuz-linux --unicode 'root=block_device_identifier  kernelparamblabla=blabla rw initrd=\initramfs-linux.img'```
4 points

I have a UEFI system and I use GRUB, no problems with it honestly. It just takes some set-up

3 points

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.

3 points
unknown author

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

3 points

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.

2 points

I reainstalled the system and I'm running systemd boot now

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.