Skip to content

systemd-boot and discoverable partitions

Hi! I am trying out systemd-boot on a new machine and considering to switch from grub. After reading the wiki page I think that it is possible to omit the root option to the kernel if

  • The root partition has correct GUID.
  • The root partition is on the same disk as the EFI partition.

However I failed to boot the system without the root option. I assigned "Linux root (x86-64)" type to the root partition using fdisk, and the entry file is

title    Arch Linux
linux    /vmlinuz-linux
initrd   /intel-ucode.img
initrd   /initramfs-linux.img
options  rw quiet

and the loader.conf file is

default arch-linux
timeout 0
editor no

I wonder if I have missed something? Thanks in advance.

14 points7 comments
Open on Reddit
About this post
Posted
Archived
Score
14 · 100% up
Kind
Text
ID
efbton

Author

1
posts
5
comments
0
media
View profile

7 comments

Your initramfs includes the systemd hook, right?

5 points

This was the issue when I first tried to get this working. In hindsight its obvious but none of the docs seemed to mention that systemd had to be managing the initramfs.

2 points

Actually no. I guess that is the issue. Thank you!

2 points

It's not possible. The intention of systemd-boot is to be simple. Either the root flag is part of your options, or one of the hooks in mkinitcpio adds it. If you don't know if it does that, it certainty doesn't do that.

3 points

You definetly need the root partition. I set a label for it so I don’t have to to type the UUID.

1 points

Thank you! I was just curious why it didn't work even though it was mentioned.

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.