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.
About this post
- Posted
- Archived
- Score
- 14 · 100% up
- Kind
- Text
- ID
- efbton
7 comments
Your
initramfsincludes thesystemdhook, right?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.
Actually no. I guess that is the issue. Thank you!
It's not possible. The intention of systemd-boot is to be simple. Either the
rootflag 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.Thank you for the clarification!
You definetly need the root partition. I set a label for it so I don’t have to to type the UUID.
Thank you! I was just curious why it didn't work even though it was mentioned.