X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=host%2Fpart-var-umount;fp=host%2Fpart-var-umount;h=fe9f34a6d70bb43ce43851dff20038e310d0d875;hp=0000000000000000000000000000000000000000;hb=3ad6118386977e346d81042e924e5db9c5f15b7d;hpb=22f04b9fac14adc3d3fc98273ba126c3a51792c3 diff --git a/host/part-var-umount b/host/part-var-umount new file mode 100755 index 0000000..fe9f34a --- /dev/null +++ b/host/part-var-umount @@ -0,0 +1,7 @@ +#!/bin/sh -eu +tool=$(readlink -e "${0%/*}/..") +. "$tool"/host/lib.sh + +! mountpoint -q /mnt/$vm_fqdn/var || +sudo umount -v /mnt/$vm_fqdn/var +"$tool"/host/part-luks-umount var