firmware: fix import listing for one ZFS pool

This commit is contained in:
Franco Fichtner 2022-01-25 10:28:08 +01:00
parent 84a41ab1e0
commit dd5f357f17

View File

@ -1,6 +1,6 @@
#!/bin/sh
# Copyright (c) 2014-2021 Franco Fichtner <franco@opnsense.org>
# Copyright (c) 2014-2022 Franco Fichtner <franco@opnsense.org>
# Copyright (c) 2004-2009 Scott Ullrich <sullrich@gmail.com>
#
# Redistribution and use in source and binary forms, with or without
@ -225,7 +225,10 @@ fi
DEVS=$(
camcontrol devlist
echo -n "${POOLS}" | while read ZPOOL ZGUID ZSIZE ZMORE; do
echo "${POOLS}" | while read ZPOOL ZGUID ZSIZE ZMORE; do
if [ -z "${ZPOOL}" ]; then
continue
fi
printf "%-35s%s\n" "<${ZGUID} ${ZSIZE}>" \
"ZFS pool (${ZPOOL})"
done