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
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Mar 7 2023, 10:07 PM
Parents
rG576d34cb1124: Turn default_bs and default_ibs into ZFS_MODULE_PARAMs
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG050be02c02f1: initramfs: fix zpool get argument order (authored by q66 <daniel@octaforge.org>).Mar 7 2023, 10:07 PM