]> git.ipfire.org Git - thirdparty/dracut.git/commit
dracut-systemd/dracut-cmdline.sh: Don't error out if there is no root= argument. 128/head
authorAlexander Kurtz <alexander@kurtz.be>
Fri, 6 May 2016 15:25:37 +0000 (17:25 +0200)
committerAlexander Kurtz <alexander@kurtz.be>
Fri, 6 May 2016 15:53:36 +0000 (17:53 +0200)
commit016613c774baf3d30c6425a65ead05d8b55d6279
treef997056bf54cbdbb1fb4b205a8505cf0576bd696
parenta365b67db0e388f192f3a083863a8657a78c2940
dracut-systemd/dracut-cmdline.sh: Don't error out if there is no root= argument.

Thanks to systemd's gpt-auto-generator [0] (which implements the Discoverable
Partitions Specification [1]), it is no longer necessary to always specify the
root= argument.

However, dracut would still refuse to boot if there was no root= argument (or
if it was set to the special value "gpt-auto" [2]). This commit stops dracut
from aborting the boot process in these cases and simply lets systemd do its
magic.

[0] https://github.com/systemd/systemd/blob/v229/src/gpt-auto-generator
[1] https://www.freedesktop.org/wiki/Specifications/DiscoverablePartitionsSpec/
[2] https://github.com/systemd/systemd/blob/v229/src/gpt-auto-generator/gpt-auto-generator.c#L928
modules.d/98dracut-systemd/dracut-cmdline.sh