Modification : vm_{host,hosted,remote} -> {host,local,remote}/ .
[lhc/ateliers.git] / host / part-lvm-umount
1 #!/bin/sh -eu
2 tool=$(readlink -e "${0%/*}/..")
3 . "$tool"/host/lib.sh
4
5 case $vm_use_lvm in
6 (yes)
7 "$tool"/host/part-root-umount
8 "$tool"/host/part-var-umount
9 "$tool"/host/part-home-umount
10 ! sudo vgs | grep -q "^ $vm_lvm_vg " ||
11 sudo vgchange -a n $vm_lvm_vg
12 ;;
13 (*) exit 1;;
14 esac