summaryrefslogtreecommitdiff
path: root/v-i
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-05-03 18:29:57 +0300
committerLars Wirzenius <liw@liw.fi>2023-05-03 18:29:57 +0300
commit27a7ca28b1b23c18a7f8bd0f1d61f847c730eea3 (patch)
tree974b16b3aa7d839f078a35d23d2341035a1f24e1 /v-i
parent4f453499d56fb380cded1b5c3d9cdb27a1556883 (diff)
downloadv-i-27a7ca28b1b23c18a7f8bd0f1d61f847c730eea3.tar.gz
feat: allow spec file to specify / file system type
Sponsored-by: author
Diffstat (limited to 'v-i')
-rwxr-xr-xv-i7
1 files changed, 3 insertions, 4 deletions
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)