nixosTests.limine.secureBoot: fix secure boot check
An easier way to check if secureBoot is enabled is by running mokutil --sb-state We have to do this way now because on systemd v258 `bootctl status` returns non 0 value if systemd-boot is not properly installed, which is to be expected when using Limine.
This commit is contained in:
@@ -26,10 +26,12 @@
|
|||||||
boot.loader.limine.secureBoot.enable = true;
|
boot.loader.limine.secureBoot.enable = true;
|
||||||
boot.loader.limine.secureBoot.createAndEnrollKeys = true;
|
boot.loader.limine.secureBoot.createAndEnrollKeys = true;
|
||||||
boot.loader.timeout = 0;
|
boot.loader.timeout = 0;
|
||||||
|
|
||||||
|
environment.systemPackages = [ pkgs.mokutil ];
|
||||||
};
|
};
|
||||||
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
machine.start()
|
machine.start()
|
||||||
assert "Secure Boot: enabled (user)" in machine.succeed("bootctl status")
|
assert "SecureBoot enabled" in machine.succeed("mokutil --sb-state")
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user