nixos/tests/installer/lvm: use ext4 boot partition

This commit is contained in:
ajs124
2026-03-26 10:43:46 +01:00
parent 4c156745a1
commit b147b6bdcf
+6 -2
View File
@@ -1310,7 +1310,7 @@ in
};
# Create two physical LVM partitions combined into one volume group
# that contains the logical swap and root partitions.
# that contains the logical swap, boot and root partitions.
lvm = makeInstallerTest "lvm" {
createPartitions = ''
installer.succeed(
@@ -1323,11 +1323,15 @@ in
"pvcreate /dev/vda1 /dev/vda2",
"vgcreate MyVolGroup /dev/vda1 /dev/vda2",
"lvcreate --size 1G --name swap MyVolGroup",
"lvcreate --size 6G --name nixos MyVolGroup",
"lvcreate --size 1G --name boot MyVolGroup",
"lvcreate --size 5G --name nixos MyVolGroup",
"mkswap -f /dev/MyVolGroup/swap -L swap",
"swapon -L swap",
"mkfs.ext4 -L boot /dev/MyVolGroup/boot",
"mkfs.xfs -L nixos /dev/MyVolGroup/nixos",
"mount LABEL=nixos /mnt",
"mkdir /mnt/boot",
"mount LABEL=boot /mnt/boot",
)
'';
extraConfig = optionalString systemdStage1 ''