unlocking an rootfs encrypted with luks through a usb drive when booting

Asked by 陈伟琪

Hi, I wrote a sh script to scan USB drive and unlcok the rootfs encrypted with luks when booting.
I want to add that script to cryptsetup. So everyone who need that feature can configure ` /etc/crypttab` like this

```
sda3_crypt UUID=7aa5541d-4ea2-481c-9b89-234fcadbe049 7aa5541d-4ea2-481c-9b89-234fcadbe049.luks luks,discard,keyscript=decrypt_usbdrive
```

 and use that script...

That script path is `/lib/cryptsetup/scripts/decrypt_usbdrive`.

But I don't know where files that in `/lib/cryptsetup/scripts/`, like *decrypt_keyctl*,*decrypt_ssl*, are come from. I can't find them in [Gitlab](https://github.com/mbroz/cryptsetup)...

So I don't know where to "commit" the USB drive unlocking script..

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu cryptsetup Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
陈伟琪 (gameboy709494-d) said :
#1
Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Open' state without activity for the last 15 days.