try keyctl for real

This commit is contained in:
RingOfStorms (Joshua Bell) 2025-12-14 15:51:51 -06:00
parent a5a5a9b959
commit f0ea807221

View file

@ -89,6 +89,7 @@ in
# PRIMARY unencrypt
boot.initrd.systemd.enable = true;
boot.initrd.systemd.packages = [ pkgs.keyutils ];
boot.supportedFilesystems = [
"bcachefs"
"vfat"
@ -128,8 +129,7 @@ in
script = ''
echo "Using test password..."
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 "test" | ${pkgs.bcachefs-tools}/bin/bcachefs unlock -k session "${PRIMARY}"
echo "bcachefs unlock successful for ${PRIMARY}"
'';