From 27a7ca28b1b23c18a7f8bd0f1d61f847c730eea3 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 3 May 2023 18:29:57 +0300 Subject: feat: allow spec file to specify / file system type Sponsored-by: author --- v-i | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'v-i') diff --git a/v-i b/v-i index 192d70d..7fa7142 100755 --- a/v-i +++ b/v-i @@ -301,10 +301,8 @@ def vmdb_spec(system, ansible_vars): # Create a 20 gigabyte LV for the root file system. That's big # enough for a desktop system. lvcreate("vg0", "root", "20G"), - # format the root file system. This gets a fair bit of use, so - # ext4 seems like a safe choice. If you wanted another file - # system, sorry. - mkfs("root", "btrfs"), + # format the root file system. + mkfs("root", system.root_fstype), # Mount the root file system. mount("root"), # Mount /boot on top of the root file system. @@ -394,6 +392,7 @@ class SystemSpec: "ansible_vars_files": [], "luks": "", "debian_release": "bullseye", + "root_fstype": "ext4", } with open(filename) as f: obj = yaml.safe_load(f) -- cgit v1.2.1