From afc942f709e7593e6a0a677882c278d0ca729fdd Mon Sep 17 00:00:00 2001 From: bors <26634292+bors@users.noreply.github.com> Date: Thu, 19 Nov 2026 06:51:21 +0000 Subject: [PATCH 1/3] [create-pull-request] automated change --- flake.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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": { From f363468964b434f2d65cecc7d3f72562231947a6 Mon Sep 17 00:00:00 2001 From: lassulus Date: Fri, 20 Nov 2026 10:49:13 +0100 Subject: [PATCH 2/3] lib: reformat with nixfmt 1.5.0 --- lib/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { From 480756f887bb960584776f78855daa628a28cf1c Mon Sep 17 00:00:00 2001 From: lassulus Date: Fri, 20 Nov 2026 10:49:13 +0100 Subject: [PATCH 3/3] tests/bcachefs: handle systemd initrd unlock prompts nixpkgs dropped the scripted stage 1 for bcachefs (8cadc5ac03), so the systemd initrd is always used. It starts one unlock-bcachefs- unit per mount point; /, /home and /nix share one encrypted filesystem, so the units race on the device (EBUSY) and the number and order of passphrase prompts varies (1-3, any order). The fixed OCR sequence then waited for a /home prompt that never came. Answer every password query on the serial console until the initrd reaches initrd-fs.target, which pending queries block. OCR is no longer needed. --- tests/bcachefs.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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 = {