summaryrefslogtreecommitdiffstats
path: root/client/shared/lib/os-probes/10zvol-test
blob: cdbe7a5fe30557d2c60c24ac2ddf4602e917b3c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
# Sub-test to exclude ZVOLs
set -e
partition="$1"

. /usr/share/os-prober/common.sh

if [ "$(stat -L -c %t "$partition")" = "e6" ] ; then
	debug "$1 is a ZVOL; skipping"
	exit 0
fi

# No ZVOLs found
exit 1