HomeFreeBSD

initramfs: fix zpool get argument order

Description

initramfs: fix zpool get argument order

When using the zfs initramfs scripts on my system, I get various
errors at initramfs stage, such as:

cannot open '-o': name must begin with a letter

My zfs binaries are compiled with musl libc, which may be why
this happens. In any case, fix the argument order to make the
zpool binary happy, and to match its --help output.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Signed-off-by: Daniel Kolesa <daniel@octaforge.org>
Closes #14572

Details

Provenance
daniel_octaforge.orgAuthored on Mar 7 2023, 1:07 AM
GitHub <noreply@github.com>Committed on Mar 7 2023, 1:07 AM
Parents
rG84a1c48c8677: Fix detection of IBM Power8 machines (ISA 2.07)
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG4628bb9c6059: initramfs: fix zpool get argument order (authored by q66 <daniel@octaforge.org>).Mar 7 2023, 1:07 AM