-
Notifications
You must be signed in to change notification settings - Fork 400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
auto detect root device according to Discoverable Partitions Specification (DPS) (boot without root=
and without /etc/fstab
)
#2590
Comments
Thanks for raising this issue.
Do you have a pointer for this for more information ? I understand that dracut is not only used with systemd-boot, but it would be great to understand what is the current situation with systemd-boot regardless. If systemd-boot already discovers partitions, wouldn't systemd-boot already correctly set the root= command line argument ? |
My knowledge on systemd-boot is limited to curiosity, preliminary research. https://www.freedesktop.org/software/systemd/man/latest/systemd-boot.html mentions
Quote DPS:
Quote https://wiki.archlinux.org/title/systemd-boot
From that I take that Therefore I conclude, if dracut wanted to be compatible with DPS it would need to support boot without systemd-boot isn't signed yet for compatibility with Secure Boot... Or is it? |
@adrelanos what is it that does not work for you right now? In Debian, with dracut 060+5-1, I can boot without |
I had no idea that dracut works with systemd-boot and can boot without |
According to https://github.com/dracutdevs/dracut/blob/master/modules.d/99base/init.sh#L129 root= argument is mandatory (when systemd is not used). At very least this is inconsistent. @paravoid can you perhaps share more about your setup ? What is the value of /proc/cmdline ? Is the root perhaps set in the kernel itself CONFIG_CMDLINE Would be useful to understand in what conditions this works. |
The decision of what to mount in the Linux kernel has to be made before it examines the initramfs contents, so It seems it is expected that If
without
missing If we want to keep this discussion going, we should probably restate the problem to 'handle |
what about uki , dracut seems to not supporting passing to systemd to automount partitions , i dont use bootloaders , i boot the uki with a uefi entery that i create |
what about uki , dracut seems to not supporting passing to systemd to automount partitions , i dont use bootloaders , i boot the uki with a uefi entery that i create
i try root=gpt-auto , it shutdown automaticlly , gentoowiki says : Some tools may become confused if there is no root= parameter on the kernel command line at all. To placate such tools add root=/dev/gpt-auto-root to the kernel command line. This trick is also usefull if a swapfile on the root partition is used instead of a swap partition for hibernation, i.e. one may specify the resume target on the kernel command line as resume=/dev/gpt-auto-root resume_offset=xxxxxxxxx. |
By supporting the Discoverable Partitions Specification (DPS) the following things would be possible:
root=
) on the kernel command line, and/etc/fstab
.The benefit for the user would be that corner cases such as changed disk uuids after backup/restore no longer result in a broken boot with a dracut rescue shell.
It could also simplify operating system build scripts and installers.
DPS is also supported by systemd-boot.
history:
related but non-duplicate:
root=
device is misconfigured or missing #2589 (because that would auto-detect legacy systems as well as prompt the user. This ticket however is about supporting DPS.)The text was updated successfully, but these errors were encountered: