nixos/tests/initrd-luks-empty-passphrase: Explicitly set 'boot.initrd.systemd.enable'
This commit is contained in:
@@ -769,7 +769,10 @@ in
|
||||
};
|
||||
influxdb = runTest ./influxdb.nix;
|
||||
influxdb2 = runTest ./influxdb2.nix;
|
||||
initrd-luks-empty-passphrase = runTest ./initrd-luks-empty-passphrase.nix;
|
||||
initrd-luks-empty-passphrase = runTest {
|
||||
imports = [ ./initrd-luks-empty-passphrase.nix ];
|
||||
_module.args.systemdStage1 = false;
|
||||
};
|
||||
initrd-network-openvpn = handleTestOn [ "x86_64-linux" "i686-linux" ] ./initrd-network-openvpn { };
|
||||
initrd-network-ssh = handleTest ./initrd-network-ssh { };
|
||||
initrd-secrets = handleTest ./initrd-secrets.nix { };
|
||||
|
||||
@@ -14,8 +14,6 @@ in
|
||||
{
|
||||
name = "initrd-luks-empty-passphrase";
|
||||
|
||||
_module.args.systemdStage1 = lib.mkDefault false;
|
||||
|
||||
nodes.machine =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
@@ -31,9 +29,9 @@ in
|
||||
};
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.initrd.systemd = lib.mkIf systemdStage1 {
|
||||
enable = true;
|
||||
emergencyAccess = true;
|
||||
boot.initrd.systemd = {
|
||||
enable = systemdStage1;
|
||||
emergencyAccess = lib.mkIf systemdStage1 true;
|
||||
};
|
||||
environment.systemPackages = with pkgs; [ cryptsetup ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user