From 2cab75ba821fb739129a524d15e3195506c803fa Mon Sep 17 00:00:00 2001 From: "RingOfStorms (Joshua Bell)" Date: Sun, 14 Dec 2025 15:36:30 -0600 Subject: [PATCH] try k session --- hosts/i001/hardware-mounts.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hosts/i001/hardware-mounts.nix b/hosts/i001/hardware-mounts.nix index 25aacd25..2126f5f5 100644 --- a/hosts/i001/hardware-mounts.nix +++ b/hosts/i001/hardware-mounts.nix @@ -127,7 +127,8 @@ in # but uses a key file from the USB stick instead of systemd-ask-password. script = '' echo "Using test password..." - echo "test" | ${pkgs.bcachefs-tools}/bin/bcachefs unlock "${PRIMARY}" + # keyctl link @u @s + echo "test" | ${pkgs.bcachefs-tools}/bin/bcachefs unlock -k session "${PRIMARY}" echo "bcachefs unlock successful for ${PRIMARY}" '';