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