X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=host%2Fpart-boot-format;fp=host%2Fpart-boot-format;h=c292f23003dc8ab0e1274347d1a15d014659b0f7;hp=0000000000000000000000000000000000000000;hb=3ad6118386977e346d81042e924e5db9c5f15b7d;hpb=22f04b9fac14adc3d3fc98273ba126c3a51792c3 diff --git a/host/part-boot-format b/host/part-boot-format new file mode 100755 index 0000000..c292f23 --- /dev/null +++ b/host/part-boot-format @@ -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