From b147b6bdcff549941935cfa3cc3739ce701a4dc7 Mon Sep 17 00:00:00 2001 From: ajs124 Date: Thu, 26 Mar 2026 10:38:16 +0100 Subject: [PATCH] nixos/tests/installer/lvm: use ext4 boot partition --- nixos/tests/installer.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/nixos/tests/installer.nix b/nixos/tests/installer.nix index 892c066c568b..5e54b9f02634 100644 --- a/nixos/tests/installer.nix +++ b/nixos/tests/installer.nix @@ -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 ''