Skip to content

Commit

Permalink
firmware: fix import listing for one ZFS pool
Browse files Browse the repository at this point in the history
(cherry picked from commit dd5f357)
  • Loading branch information
fichtner committed Jan 25, 2022
1 parent da35e7f commit 6c90170
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/sbin/opnsense-importer
@@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6c90170

Please sign in to comment.