blob: 75c6e9e6251362a84b3b2dcf538497696bad97b4 [file] [log] [blame]
#!/bin/sh
# Unmounts (but keeps) the PV's ZFS dataset. Runs in the host's mount
# namespace; see setup.sh.
set -eu
while getopts "m:s:p:" opt
do
case $opt in
p)
absolutePath=$OPTARG
;;
s)
sizeInBytes=$OPTARG
;;
m)
volMode=$OPTARG
;;
esac
done
nsenter -t 1 -m -- zfs set mountpoint=none "rpool${absolutePath}"