Skip to content

systemd-boot is so simple

I started using Arch with GRUB, then moved to EFISTUB and stayed there for a long time. Recently I saw a post about booster and try systemd-boot. I'm impressed, it is so much easier compared to GRUB. If you [are using GRUB and] have never used it, give it a try, [it is installed by default].

Edited 28 Feb 2021. We only hold this version.

302 points153 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
302 · 95% up
Kind
Text
ID
lucc66

Author

17
posts
789
comments
1
media
View profile

159 comments

Yes. I really appreciated the simplicity of systemd-boot after migrating from grub. I realized that boot loaders need to be as simple as possible.

94 points

So what is the difference in practice? I mean, I spend about 2 seconds a month in the bootloader on average, so why should I bother installing another one? (I'm not trying to be snarky here, just curious)

33 points

In my experience, the difference isn’t in using the bootloader, but rather in configuring it. Setting up the bootloader on a new computer with systemd-boot normally takes me about a minute (5 minutes max), and it’s extremely simple. In my experience with grub, though, it takes much longer and requires reading much more documentation to understand exactly how it’s supposed to be configured. I haven’t used grub extensively, though, so take my opinion with a grain of salt.

25 points
2 more replies

Almost anything is better than GRUB; however, I'm confused what the benefit would be over EFISTUB, which cuts out the middle man, and is fairly easier to set up even with encryption.

You noted you switched from EFISTUB, so what benefits are there for you personally over it?

65 points

Some devices don't work with EFISTUB, for example my Dell XPS 17 9700.

Their UEFI implementation doesn't save the kernel arguments, so I need to have a boot manager that I can launch without arguments, that then can launch my kernel with arguments

36 points

Sure, but that's a given; if your firmware's UEFI implementation isn't feature complete, you can't use it anyway. This is becoming less of an issue as more and more UEFI implementations are feature complete.

The OP was using EFISTUB, therefore that's not the case here; their hardware does use it. Hence asking what benefit for their situation.

10 points
12 more replies

I also switched from EFISTUB to systemd-boot because I tend to experiment with my installation and found editing systemd-boot's entries easier than remembering efibootmgr commands. With the right alpm hooks, there's basically nothing that needs to be done to keep it up to date!

26 points

Ok if you're experimenting a lot, it can make some sense to have something slightly easier to edit the entries.

6 points
3 more replies

Editing kernel parameters is easier on systemd-boot. You don't have to go through the pain of recreating an EFI entry.

16 points

but how often do you edit parameters? If you're editing them frequently, like /u/ludwhe suggests they are, absolutely; but the average user, hell the average 'super user' I highly doubt edits them frequently.

I think I've edited them twice in 5 years or so; one was to add the updated microcode patches, because intel is bad; which is a good reason. The other was adding a parameter for newer kernel to emulate a set old kernel calls for a Docker container I was testing that was based an old CentOS distro.

3 points

For dual booting or setting up fallback boot options, it's way easier than efistub.

12 points

I meant if people are using GRUB, they should give systemd-boot a try because it is already installed by default.

The main reason I switched is for experience. I want to have real experience with the ecosystem so when my friends ask me I can give more rational advices. The VM gives me distorted experience (usually negative), so I always try on my real hardware.

The first benefit I found after the switch is the config, it is nicer to edit and I can have multiple boot option for the same root partition*. I usually change my boot option so it looks attractive to me. I have used Arch for more than a year but there are just too many things for me to break learn.

* Sometimes some of my boot entries disappear if they share the same root partition, don't know exactly why though. Aside from that, EFISTUB works perfectly.

7 points

good set of reasons for you; makes sense for your use cases. Cheers.

6 points
3 more replies

I am about to switch back to GRUB, since GRUB supports encrypted /boot (so that basically everything apart from the bootloader itself is encrypted) ... I don't think systemd-boot supports that.

4 points

Real question: why would you even want to encrypt /boot

do you keep anything sensitive in there? all that's in mine is my kernel and initram images.

4 points
3 more replies

My MoBo likes to duplicate boot entries when I try to edit something. I have to use the clear-CMOS jumper to remove them. Of course then I have to recreate the required entries using a boot stick.

3 points

Does EFISTUB allow for editing kernel parameters at boot? Sometimes appending 'single' is all you need to fix a problem.

Of course, allowing the editing at all may not be appropriate for everyone's threat model, but it's not something I'm worried about on my home desktop PC.

1 points

to my knowledge that is down to the bootloader natively included with your motherboard.

I doubt most will, as they just execute the EFISTUB as is.

1 points

It's often a bit awkward to pass arguments to EFI executables. systemd-boot makes it easy (because systemd-boot itself takes no arguments) and gives you some extras like multiple boot configurations.

1 points

I switched from efistub too. Systems-boot is much more simple overall.

1 points

Almost anything is not nearly as feature-rich as grub. Most of alternative bootloaders are indeed a lot less complicated for those unfamiliar with grub and may be a better choice for (new) simple setups. Still, advertising them as "better" is a big overstatement. It's same as "Grub is better than anything since it can handle my zfs on root setup" - sounds pretty lame

1 points

Almost anything is better than GRUB;

Whoops, I missed the memo, I guess. When was this?

0 points
unknown author

Deleted before we saved it.

1 points

The only thing that keeps me from switching is GRUB splash screen which I put some weeb wallpaper in ¯\_(ツ)_/¯

53 points

I don't see the screen long enough to appreciate any splash images

34 points

I use dual boot extensively, so I see it quite a lot. I like it for the same reason as u/tuankiet65, I use the wallpaper and really appreacite having the nice theme options. It really blends well with my boot animation as well.

1 points

sbupdate-git allows splash screen with its signed efi boot image.

6 points

rEFInd gang.

31 points

I tried migrating to rEFInd from systemd-boot recently because I thought it was supposed to be simple and themes sounded cool. For whatever reason, it didn't want to work for me at all and I also thought about the fact that I only look at my bootloader screen for 3 seconds max so what's the point of a theme.

12 points

Yup. This is the answer especially if you are dual booting.

Grub is legacy bios and not really necessary for UEFI machines. Don't know why it persists.

1 points

Just got on reFind for the first time, damn it looks sexy

1 points

Started using very recently on my dual boot laptop. Had previously always relied on grub. But this has been easier to configure and use. And the UI is much better.

1 points

I'm a bit confused about some of the discussions on boot loaders. Why would I change the boot loader? I don't know why I decided to use grub, but it worked when I installed arch three years ago. Since then, I admired a few rices with refind, but I see the grub screen only a few seconds on each boot and then I don't see it again until I restart a few weeks later. And I don't have to configure anything, again.

So what exactly do you gain from using systemd-boot? Which parts of the bootloader do you regularly configure that it matters?

29 points

If it's working for you then don't change anything. I myself prefer the direct configuration and simplicity of systemd-boot over grub. If you are installing a new system, maybe check it out then.

35 points

Well for one, rEFInd allows you to boot from a USB right from the boot menu. All you need to do is configure it to search for other bootable media and you're off to the races. I find this feature to be very useful especially if I want to quickly boot into a system from USB, either to do repairs or just try out a new distro, rEFInd makes the experience easy as plug-n-play.

Also because I dual-boot with Windows, rEFInd presents me with the recovery partition for Windows right from the boot menu as well, so I can easily boot into that if I wanted to fix anything Windows related.

As far as I recall, GRUB doesn't have any of these features.

3 points

In my case, it was speed. I don't see the need for a second stage bootloader. The EFI firmware can load the kernel as an EFI binary straight up. Beautiful manufacturer logo straight to tty login

1 points

I tried it but for some reason I could never manage to get my arch listed on the systemd-boot menu. Same problem with refind :( i wish i could make it work

12 points
unknown author

Deleted before we saved it.

27 points

Look at the refind documentation page explaining how refind identifies Linux distros. You have multiple ways of indicating it where / what is your kernel and partition.

14 points

Use the correct UUID and name the loader entry file according to the name you gave it in loader.conf, easy as that.

6 points

Try adding: quiet splash rd.systemd.show_status=auto libahci.ignore_sss=1 loglevel=3 rd.udev.log_priority=3

to your boot entry options and: sd-plymouth

to your /etc/mkinitcpio.conf, reconf mkinitcpio and update bootctl. I hope you already know how to install plymouth and pick theme of your choice.

Also, have you disabled your dm services (lightdm/gdm/sddm/lxdm) and enable {your-dm-name}-plymouth.service (lightdm-plymouth.service/sddm-plymouth.service)?

Search for "arch-plymouthize" and install from AUR it's a very helpful GUi program that helps you find, chooses and set plymouth themes with the click of your mouse.

I guess that's the few things that plymouth requires really. Hope it helps.

1 points
unknown author

Deleted before we saved it.

1 points

There must be a reason for most people to use GRUB, right?

11 points

GRUB has been the default in most distros for a long time, I didn't even know systemd-boot was an option until very recently.

Also, systemd-boot is not compatible with BIOS-only devices, requiring UEFI, which my desktop doesn't have because it's ancient.

15 points

Because the user base keeps keeps insisting that grub is very simple, straight forward, and feature rich to new users. It is pure delusion. We have to break the cycle of abuse 🙂

14 points

Most people? no. But if you know what you're doing then there's nothing that can be compared to it in features and ease of use.
Show me a bootloader that can:

  • Can be scripted.
  • Dynamically create menu entries during runtime.
  • Give me the drive+partition path of where the EFI binary was executed from so I script filesystem UUID extraction and use it as a kernel parameter.
  • Load variables from a text file to have all the per system settings in a dedicated config file and keep the rest of the bootloader generic.
11 points

This isn't a "most people" answer but there are some valid scenarios where GRUB's additional features are useful/needed.

My dual-boot setup is a little weird due to adding more drives over time and my Linux's /boot is a different partition than the ESP where Windows' bootloader and GRUB are installed. GRUB can handle enumerating more drives to find kernels elsewhere but systemd-boot can only boot stuff on the same ESP.

Next time I shuffle drives around I'll see if I can grow the main ESP to use for /boot and switch everything over to systemd-boot, but for now my GRUB setup works and I don't gain much by migrating.

8 points

And being able to see if everything is ok using bootctl is priceless.

Tried recently rEFInd and if it didn't detect my systemd-boot configuration I would have been left out of my installation, because I couldn't find a way to check my configuration before rebooting.

10 points

While systemd-boot is easy, EFISTUB is easier. It's literally a one-liner to set up a boot entry and using efibootmgr, deleting entries is easy as heck.

For single boot systems, this is perfect. I recently had to set up dual boot with Windows after only using Arch for years, because I wanted to test my software on Windows outside of a VM. I have a little script that's called by a desktop file in GNOME that modifies the bootnext EFI entry and reboots to Windows one time.

So even for dual boot, this is a viable solution.

Why would I add a boot loader if it's just a possible error source and it even adds a couple microseconds to my boot time?

7 points

I meant if people are using GRUB, they should give systemd-boot a try. Edited the post to clarify that. The reason I posted this is because I saw GRUB mentioned so many times, it makes me feel GRUB has a large userbase.

3 points

efistub is fast. But keep the systemd-boot as a backup. I wiped my efistub entries in the bios by mistake. You can also mess up the bios entries with incorrect efibootmanager config. Then you will land up in non bootable situation.

3 points

Does it work well in Dual booting, with windows and Arch (Both are UEFI on the same SSD)

3 points

What are the benefits over EFISTUB?

3 points

Easier to change kernel flags and---depending on how robust your motherboard's EFI selection screen is---systemd-boot can provide a configurable boot selection menu. That's about it. EFISTUB remains simpler and faster if you don't change your kernel flags often.

3 points

I was inspired by this post but I borked my system. I don't fully understand why but I think it's because I have separate /eft and /boot partitions. So I ended up copying files from /boot to /efi and it works. I couldn't make it work with this:

sudo bootctl --esp-path=/efi --boot-path=/boot install
File system "/dev/block/8:3" has wrong type for extended boot loader partition.

So I'm not sure what to do next.

2 points
unknown author2 hidden

If using the xbootldr method then verify that the partition types and filesystems for /efi and /boot are correct.

2 points

Yup, I also really like it. Especially one of its features (which I'm not sure any other bootloader has) is appealing to me: password caching. When mounting luks-encrypted drives via crypttab, if you have several of them and they all use the same password, systemd-boot will only ask you once and reuse the same password to all mounted drives. I know it's not uber-safe to use the same password for several things and you could always use file as decryption key, but this way is safe enough for me and really convenient.

2 points

Can it also have a boot menu for my dual-boot setup and a cool theme like rEFInd (wall of text in particular)?

2 points

What exactly do you consider difficult and/or complicated with GRUB that's easier with systemd-boot?

(I'm not advocating for GRUB, just curious.)

2 points

I'd be happy to use something other than GRUB, but, please correct me if I am wrong, no other one has the option to boot into BTRFS snapshots. I have found that extremely useful personally.

2 points

FUCK GRUB 'love systemd-boot' I'm gonna give you an award with the coins I have..... you are awesome

1 points

Grub has been a pile of nonsense since the new version. bootd's simplicity feels more like original grub to me and I have not had any problems with it.

0 points

What does it do that the BIOS doesn't?
You don't need another tool to pick an EFI option from a list. Every BIOS does this already.

1 points

UEFI does do this, but it doesn't give you a list automatically. The UEFI will just boot the first entry in the list, and that's it. You won't get a boot menu every boot. Fine if you only have a one distro, but it's a problem if you use dual-boot often, like I do.

2 points

I had systemd-boot on my old system, and now tried grub on my new one.

both work, both are very easy to setup :shrug:

1 points
unknown author

Deleted before we saved it.

1 points

It's too simple, maybe. On one of my laptops1, it stops working after the first keystroke in the boot menu. Others don't do that. I rarely need to use the boot menu (I always wanted 2 separate dicks for my operating systems, so I just use the UEFI stub bootloader) so I've not bothered changing it since setting up the system. I check every few years out of curiosity whether the issue is still there, and it's still there after ~5 years. The Github issue was closed for inactivity, and I've never bothered debugging it myself.

​

1: It's a gaming laptop, and they're usually a clusterfuck of Linux [in]compatibility issues. So, I don't really hold it against systemd-boot.

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.