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.
About this post
- Posted
- Archived
- Edited
- Score
- 302 · 95% up
- Kind
- Text
- ID
- lucc66
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.
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)
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.
Systemd-boot is the best!
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?
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
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.
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!
Ok if you're experimenting a lot, it can make some sense to have something slightly easier to edit the entries.
Editing kernel parameters is easier on systemd-boot. You don't have to go through the pain of recreating an EFI entry.
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.
For dual booting or setting up fallback boot options, it's way easier than efistub.
I meant if people are using GRUB, they should give
systemd-boota 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
breaklearn.* 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.
good set of reasons for you; makes sense for your use cases. Cheers.
You can set up fallback or recovery options.
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.
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.
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.
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.
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.
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.
I switched from efistub too. Systems-boot is much more simple overall.
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
Whoops, I missed the memo, I guess. When was this?
Deleted before we saved it.
The only thing that keeps me from switching is GRUB splash screen which I put some weeb wallpaper in ¯\_(ツ)_/¯
I don't see the screen long enough to appreciate any splash images
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.
I wish sd-boot could keep firmware framebuffer when it does not show any menus.
sbupdate-git allows splash screen with its signed efi boot image.
rEFInd gang.
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.
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.
Just got on reFind for the first time, damn it looks sexy
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.
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?
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.
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.
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
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
Deleted before we saved it.
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.
Use the correct UUID and name the loader entry file according to the name you gave it in loader.conf, easy as that.
I spent an hour troubleshooting mine, all because I wrote
opitonsinstead ofoptionsTry 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.
Deleted before we saved it.
refind is good you can do it
There must be a reason for most people to use GRUB, right?
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.
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 🙂
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:
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.
I run Arch on ZFS root with pacman-linked snapshoting. The only bootloader than supports what I need is GRUB.
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.
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?
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.
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.
How well does it work with uefi secure boot and custom uefi secure boot keys?
Does it work well in Dual booting, with windows and Arch (Both are UEFI on the same SSD)
Yes, that's exactly what I am using: two OS on the same SSD, the EFI System Partition is shared between them.
What are the benefits over EFISTUB?
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.
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:
So I'm not sure what to do next.
If using the xbootldr method then verify that the partition types and filesystems for /efi and /boot are correct.
Try REFInd. It looks beautiful and like an os.
Can even customize it witha. Custom theme and background
yeah so can grub
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.
Can it also have a boot menu for my dual-boot setup and a cool theme like rEFInd (wall of text in particular)?
easy to do what ?
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.)
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.
FUCK GRUB 'love systemd-boot' I'm gonna give you an award with the coins I have..... you are awesome
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.
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.
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.
did you mean this booster?
https://github.com/anatol/booster
https://wiki.archlinux.org/index.php/Booster#systemd-boot
Yes.
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:
Deleted before we saved it.
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.