server10: fix microvm-zfs-datasets@.service
This commit is contained in:
parent
5390bacd5b
commit
9fc5921a1e
|
@ -41,9 +41,11 @@
|
|||
for d in current/share/microvm/virtiofs/*; do
|
||||
SOURCE=$(cat $d/source)
|
||||
TAG=$(basename $d)
|
||||
MNT=$(pwd)$SOURCE
|
||||
zfsExists $BASE/$NAME/$TAG || \
|
||||
zfs create -o mountpoint=$MNT $BASE/$NAME/$TAG
|
||||
MNT=$SOURCE
|
||||
if [[ "$MNT" == /var/lib/microvms/$NAME/* ]]; then
|
||||
zfsExists $BASE/$NAME/$TAG || \
|
||||
zfs create -o mountpoint=$MNT $BASE/$NAME/$TAG
|
||||
fi
|
||||
done
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue