nixosTests.systemd-initrd-luks-fido2: don't rely on autoFormat

b5611f96b6 dropped the patch that originally made this work,
fix the test in the same way as what was done in b13891782f.
This commit is contained in:
r-vdp 2026-06-07 14:44:10 +03:00
commit 2787b87460
No known key found for this signature in database

View file

@ -38,7 +38,6 @@
};
};
virtualisation.rootDevice = "/dev/mapper/cryptroot";
virtualisation.fileSystems."/".autoFormat = true;
};
};
@ -52,6 +51,8 @@
# Create encrypted volume
machine.wait_for_unit("multi-user.target")
machine.succeed("echo -n supersecret | cryptsetup luksFormat -q --iter-time=1 /dev/vdb -")
machine.succeed("echo -n supersecret | cryptsetup luksOpen -q /dev/vdb cryptroot")
machine.succeed("mkfs.ext4 /dev/mapper/cryptroot")
machine.succeed("PASSWORD=supersecret SYSTEMD_LOG_LEVEL=debug systemd-cryptenroll --fido2-device=auto /dev/vdb |& systemd-cat")
# Boot from the encrypted disk