Modification : vm_{host,hosted,remote} -> {host,local,remote}/ .
[lhc/ateliers.git] / host / part-root-umount
1 #!/bin/sh -eu
2 tool=$(readlink -e "${0%/*}/..")
3 . "$tool"/host/lib.sh
4
5 ! mountpoint -q /mnt/$vm_fqdn ||
6 sudo umount -v /mnt/$vm_fqdn
7 ! test -e /dev/mapper/${vm_lvm_lv}_root_deciphered ||
8 sudo cryptsetup luksClose ${vm_lvm_lv}_root_deciphered