]> git.proxmox.com Git - mirror_zfs.git/commit
initramfs: fix zpool get argument order
authorq66 <daniel@octaforge.org>
Tue, 7 Mar 2023 01:07:01 +0000 (02:07 +0100)
committerGitHub <noreply@github.com>
Tue, 7 Mar 2023 01:07:01 +0000 (17:07 -0800)
commit4628bb9c6059f997dcf9aba9478843aba1596026
tree9af5fcc72a0d198f18b1bf5ceb1a344bac70e197
parent84a1c48c86775c21649ce42b3c512ca3070f8c2d
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
contrib/initramfs/scripts/zfs