mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
firmware: fix import listing for one ZFS pool
This commit is contained in:
parent
84a41ab1e0
commit
dd5f357f17
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user