try keyctl
This commit is contained in:
parent
2cab75ba82
commit
a5a5a9b959
1 changed files with 3 additions and 2 deletions
|
|
@ -127,8 +127,9 @@ 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..."
|
||||||
# keyctl link @u @s
|
keyctl link @u @s
|
||||||
echo "test" | ${pkgs.bcachefs-tools}/bin/bcachefs unlock -k session "${PRIMARY}"
|
# 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}"
|
echo "bcachefs unlock successful for ${PRIMARY}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue