blob: 75c6e9e6251362a84b3b2dcf538497696bad97b4 [file] [log] [blame]
Matthias Andreas Benkard05e482e2026-11-04 11:05:51 +01001#!/bin/sh
2# Unmounts (but keeps) the PV's ZFS dataset. Runs in the host's mount
3# namespace; see setup.sh.
4set -eu
5
6while getopts "m:s:p:" opt
7do
8 case $opt in
9 p)
10 absolutePath=$OPTARG
11 ;;
12 s)
13 sizeInBytes=$OPTARG
14 ;;
15 m)
16 volMode=$OPTARG
17 ;;
18 esac
19done
20
21nsenter -t 1 -m -- zfs set mountpoint=none "rpool${absolutePath}"