HomeFreeBSD

i-t: fix root=zfs:AUTO

Description

i-t: fix root=zfs:AUTO

IFS= would break loops in import_pool(), which would fault
any automatic import

Additionally $ZFS_BOOTFS from cmdline would interfere with find_rootfs()

If many pools were present, same thing could happen across multiple
find_rootfs() runs, so bail out early and clean up in error path

Suggested-by: @nachtgeist
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #11278
Closes #11838

Details

Provenance
наб <nabijaczleweli@nabijaczleweli.xyz>Authored on Apr 3 2021, 4:18 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Apr 7 2021, 8:28 PM
Parents
rG1bb4b5a5aee3: zfs get -p only outputs 3 columns if "clones" property is empty
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG46aec6d43948: i-t: fix root=zfs:AUTO (authored by наб <nabijaczleweli@nabijaczleweli.xyz>).Apr 7 2021, 8:28 PM