try k session

This commit is contained in:
RingOfStorms (Joshua Bell) 2025-12-14 15:36:30 -06:00
parent b333a27745
commit 2cab75ba82

View file

@ -127,7 +127,8 @@ in
# but uses a key file from the USB stick instead of systemd-ask-password. # but uses a key file from the USB stick instead of systemd-ask-password.
script = '' script = ''
echo "Using test password..." 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}" echo "bcachefs unlock successful for ${PRIMARY}"
''; '';