]> git.ipfire.org Git - thirdparty/dracut.git/commit
dracut-systemd/dracut-cmdline.sh: Don't error out if there is no root= argument.
authorAlexander Kurtz <alexander@kurtz.be>
Fri, 6 May 2016 15:25:37 +0000 (17:25 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 1 Jul 2016 10:29:15 +0000 (12:29 +0200)
commit9aa224cc19989807b6e34b72af01e0a12072940c
tree58cc2da656f90057b460beb6d9e2a5ee6a33e63b
parent13264563a9471844102113b7062534466d20ce38
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

(cherry picked from commit 016613c774baf3d30c6425a65ead05d8b55d6279)
modules.d/98systemd/dracut-cmdline.sh