Modification : vm_{host,hosted,remote} -> {host,local,remote}/ .
[lhc/ateliers.git] / host / part-boot-umount
diff --git a/host/part-boot-umount b/host/part-boot-umount
new file mode 100755 (executable)
index 0000000..bc09e4d
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh -eu
+tool=$(readlink -e "${0%/*}/..")
+. "$tool"/host/lib.sh
+
+! mountpoint -q /mnt/$vm_fqdn/boot ||
+sudo umount -v  /mnt/$vm_fqdn/boot