Merge pull request #23 from nix-community/test-sd-stage1
lanzaboot: test systemd stage 1
This commit is contained in:
commit
c3e0e73b82
18
flake.nix
18
flake.nix
|
@ -170,10 +170,22 @@
|
||||||
lanzaboote-boot = mkSecureBootTest {
|
lanzaboote-boot = mkSecureBootTest {
|
||||||
name = "signed-files-boot-under-secureboot";
|
name = "signed-files-boot-under-secureboot";
|
||||||
testScript = ''
|
testScript = ''
|
||||||
machine.start()
|
machine.start()
|
||||||
assert "Secure Boot: enabled (user)" in machine.succeed("bootctl status")
|
assert "Secure Boot: enabled (user)" in machine.succeed("bootctl status")
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
lanzaboote-boot-under-sd-stage1 = mkSecureBootTest {
|
||||||
|
name = "signed-files-boot-under-secureboot-systemd-stage-1";
|
||||||
|
machine = { ... }: {
|
||||||
|
boot.initrd.systemd.enable = true;
|
||||||
|
};
|
||||||
|
testScript = ''
|
||||||
|
machine.start()
|
||||||
|
assert "Secure Boot: enabled (user)" in machine.succeed("bootctl status")
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
# So, this is the responsibility of the lanzatool install
|
# So, this is the responsibility of the lanzatool install
|
||||||
# to run the append-initrd-secret script
|
# to run the append-initrd-secret script
|
||||||
# This test assert that lanzatool still do the right thing
|
# This test assert that lanzatool still do the right thing
|
||||||
|
|
Loading…
Reference in New Issue