From 70fcd3ebf6d112a8053a0ea8c5afeffe77a1cab5 Mon Sep 17 00:00:00 2001 From: Arthur Gautier Date: Mon, 3 Jun 2024 20:45:53 -0700 Subject: [PATCH] nixosTests.lvm2: stage1 tests use xfs --- nixos/tests/lvm2/systemd-stage-1.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/nixos/tests/lvm2/systemd-stage-1.nix b/nixos/tests/lvm2/systemd-stage-1.nix index 7f106e1b0dd6..fe57a615a955 100644 --- a/nixos/tests/lvm2/systemd-stage-1.nix +++ b/nixos/tests/lvm2/systemd-stage-1.nix @@ -81,7 +81,17 @@ in import ../make-test-python.nix ({ pkgs, lib, ... }: { kernelPackages = lib.mkIf (kernelPackages != null) kernelPackages; }; - specialisation.boot-lvm.configuration.virtualisation.rootDevice = "/dev/test_vg/test_lv"; + specialisation.boot-lvm.configuration.virtualisation = { + useDefaultFilesystems = false; + fileSystems = { + "/" = { + device = "/dev/test_vg/test_lv"; + fsType = "xfs"; + }; + }; + + rootDevice = "/dev/test_vg/test_lv"; + }; }; testScript = '' @@ -99,7 +109,7 @@ in import ../make-test-python.nix ({ pkgs, lib, ... }: { # Ensure we have successfully booted from LVM assert "(initrd)" in machine.succeed("systemd-analyze") # booted with systemd in stage 1 - assert "/dev/mapper/test_vg-test_lv on / type ext4" in machine.succeed("mount") + assert "/dev/mapper/test_vg-test_lv on / type xfs" in machine.succeed("mount") assert "hello" in machine.succeed("cat /test") ${extraCheck} '';