decrypt_keyctl dont work with swap

Josef Wolf jw at raven.inka.de
Sun Dec 28 13:02:27 UTC 2025


Hello all,

I have put decrypt_keyctl into my /etc/crypttab like this:

  # grep . /etc/crypttab
  cr-boot-1 UUID=b5654e43-070f-4ffb-8b0b-af16da05df12 none luks,keyscript=decrypt_keyctl
  cr-boot-2 UUID=093d9e3d-20c3-4cdf-aaf9-98bcc623f5a8 none luks,keyscript=decrypt_keyctl
  cr-root-1 UUID=e4b8ffd3-36f8-44e2-88d2-4a3024085a34 none luks,keyscript=decrypt_keyctl
  cr-root-2 UUID=9f053a07-3454-4828-8753-01c4d90631de none luks,keyscript=decrypt_keyctl
  cr-swap   UUID=1d184b52-efbb-4dae-8b99-3a7b3d391514 none luks,keyscript=decrypt_keyctl
  cr-m      UUID=b7c6f9d2-836a-4bb0-b4d6-245129065443 none luks,keyscript=decrypt_keyctl

This works fine for most of the volumes, the provided password is cached when
entered for the first volume to decrypt.

But it does NOT work for the swap partition.

Any ideas why caching fails for the swap partition?

-- 
Josef Wolf
jw at raven.inka.de



More information about the ubuntu-users mailing list