diff options
author | Lars Wirzenius <liw@liw.fi> | 2023-05-03 18:29:57 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2023-05-03 18:29:57 +0300 |
commit | 27a7ca28b1b23c18a7f8bd0f1d61f847c730eea3 (patch) | |
tree | 974b16b3aa7d839f078a35d23d2341035a1f24e1 /v-i | |
parent | 4f453499d56fb380cded1b5c3d9cdb27a1556883 (diff) | |
download | v-i-27a7ca28b1b23c18a7f8bd0f1d61f847c730eea3.tar.gz |
feat: allow spec file to specify / file system type
Sponsored-by: author
Diffstat (limited to 'v-i')
-rwxr-xr-x | v-i | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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) |