Skip to content
Snippets Groups Projects
Commit 6bd12129 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Handle two ways that zfs can fail.

parent 3e4984df
Loading
......@@ -23,9 +23,10 @@ trap "rm -f $FILESYSTEMS $ZPOOLS" 0
# FIXME: We need a check_zpool command, that checks the status of the pool,
# and the capacity of the root zfs of that pool, and maybe also recursively
# checks all child zfs.
if [ -f /usr/sbin/zpool ]
if [ -f /usr/sbin/zpool ] && [ -L /dev/zfs ]
then
/usr/sbin/zpool list -H -o name \
| grep -v 'no pools available' \
| tee $ZPOOLS \
| awk '{
print "command[check-zfs-" $1 "]='$prefix'/libexec/check_zfs " $1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment