Loading nixos/tests/installer.nix +8 −3 Original line number Diff line number Diff line Loading @@ -749,10 +749,15 @@ in { environment.systemPackages = with pkgs; [ keyutils ]; }; # We don't want to use the normal way of unlocking bcachefs defined in tasks/filesystems/bcachefs.nix. # So, override initrd.postDeviceCommands completely and simply unlock with the predefined password. extraConfig = '' boot.initrd.postDeviceCommands = lib.mkForce "echo password | bcachefs unlock /dev/vda3"; boot.kernelParams = lib.mkAfter [ "console=tty0" ]; ''; enableOCR = true; preBootCommands = '' machine.start() machine.wait_for_text("enter passphrase for ") machine.send_chars("password\n") ''; createPartitions = '' Loading Loading
nixos/tests/installer.nix +8 −3 Original line number Diff line number Diff line Loading @@ -749,10 +749,15 @@ in { environment.systemPackages = with pkgs; [ keyutils ]; }; # We don't want to use the normal way of unlocking bcachefs defined in tasks/filesystems/bcachefs.nix. # So, override initrd.postDeviceCommands completely and simply unlock with the predefined password. extraConfig = '' boot.initrd.postDeviceCommands = lib.mkForce "echo password | bcachefs unlock /dev/vda3"; boot.kernelParams = lib.mkAfter [ "console=tty0" ]; ''; enableOCR = true; preBootCommands = '' machine.start() machine.wait_for_text("enter passphrase for ") machine.send_chars("password\n") ''; createPartitions = '' Loading