Modification : vm_{host,hosted,remote} -> {host,local,remote}/ .
[lhc/ateliers.git] / host / part-boot-format
diff --git a/host/part-boot-format b/host/part-boot-format
new file mode 100755 (executable)
index 0000000..c292f23
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh -eu
+tool=$(readlink -e "${0%/*}/..")
+. "$tool"/host/lib.sh
+
+mount | grep -q "^$vm_dev_disk_boot " ||
+sudo mke2fs -t ext2 -c -c -m 5 -T small \
+ -E resize=1G${vm_e2fs_extended_options} \
+ -L ${vm_lvm_lv}_boot $vm_dev_disk_boot