try keyctl

This commit is contained in:
RingOfStorms (Joshua Bell) 2025-12-14 15:41:11 -06:00
parent 2cab75ba82
commit a5a5a9b959

View file

@ -127,8 +127,9 @@ in
# but uses a key file from the USB stick instead of systemd-ask-password.
script = ''
echo "Using test password..."
# keyctl link @u @s
echo "test" | ${pkgs.bcachefs-tools}/bin/bcachefs unlock -k session "${PRIMARY}"
keyctl link @u @s
# echo "test" | ${pkgs.bcachefs-tools}/bin/bcachefs unlock -k session "${PRIMARY}"
echo "test" | ${pkgs.bcachefs-tools}/bin/bcachefs unlock "${PRIMARY}"
echo "bcachefs unlock successful for ${PRIMARY}"
'';