HomeFreeBSD

contrib; dracut: centralise root= parsing, actually support root=s

Description

contrib; dracut: centralise root= parsing, actually support root=s

So far, everything parsed root= manually, which meant that while
zfs-parse.sh was updated, and supposedly supported + -> ' ' conversion,
it meant nothing

Instead, centralise parsing, and allow:

root=
root=zfs
root=zfs:
root=zfs:AUTO

root=ZFS=data/set
root=zfs:data/set
root=zfs:ZFS=data/set (as a side-effect; allowed but undocumented)

rootfstype=zfs AND root=data/set <=> root=data/set
rootfstype=zfs AND root=         <=> root=zfs:AUTO

So rootfstype=zfs /also/ behaves as expected, and + decoding works

Upstream-commit: 245529d85fb807bfc4525b3b1858896d2860995b
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13291

Details

Provenance
наб <nabijaczleweli@nabijaczleweli.xyz>Authored on Apr 4 2022, 8:45 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on May 6 2022, 7:01 PM
Parents
rGb551725df453: contrib: dracut: parse-zfs: stop pretending we support FILESYSTEM=
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG0864c29e7ca6: contrib; dracut: centralise root= parsing, actually support root=s (authored by наб <nabijaczleweli@nabijaczleweli.xyz>).May 6 2022, 7:01 PM