diff --git a/flake.lock b/flake.lock index 7664558..d20625a 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1780930886, - "narHash": "sha256-rppURzHviaQN131F+nLiLdGfcb0uCd9gGP0E5+iw9MI=", + "lastModified": 1794840529, + "narHash": "sha256-ySrWnmZB5UsZTYGHHnBjllT05O5iFjElCRS+mabtfP0=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "8c3cede7ddc26bd659d2d383b5610efbd2c7a16e", + "rev": "e21fec321d73511849707a7585e4ea155ee4bf40", "type": "github" }, "original": { diff --git a/lib/default.nix b/lib/default.nix index f1571fa..17ec5b4 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -671,7 +671,8 @@ let (pkgs.vmTools.override.__functionArgs or ( if lib.isFunction pkgs.vmTools.override then builtins.functionArgs pkgs.vmTools.override else { } ) - ) ? kernelModules; + ) + ? kernelModules; optionTypes = rec { filename = lib.mkOptionType { diff --git a/tests/bcachefs.nix b/tests/bcachefs.nix index 97cca3b..b671551 100644 --- a/tests/bcachefs.nix +++ b/tests/bcachefs.nix @@ -6,14 +6,14 @@ diskoLib.testLib.makeDiskoTest { inherit pkgs; name = "bcachefs"; disko-config = ../example/bcachefs.nix; - enableOCR = true; + # One unlock unit per mount point races on the shared filesystem, so the + # number and order of prompts varies: answer them until initrd-fs.target. bootCommands = '' - machine.wait_for_text("enter passphrase for /"); - machine.send_chars("secretsecret\n"); - machine.wait_for_text("enter passphrase for /home"); - machine.send_chars("secretsecret\n"); - machine.wait_for_text("enter passphrase for /nix"); - machine.send_chars("secretsecret\n"); + while True: + machine.wait_for_console_text("Starting password query on /dev/ttyS0|Reached target Initrd File Systems") + if "Reached target Initrd File Systems" in machine.get_console_log(): + break + machine.send_console("secretsecret\n") ''; extraInstallerConfig = { boot = {