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