When using disk encryption, the password is asked twice
When using disk encryption, the password is asked twice:
1. once by grub
2. a second time by the `encrypt` hooks in the `initcpio`
It would be nice if it wasn't the case. I know this is possible because the [Garuda](https://garudalinux.org/) Linux distribution does it.
(they use `dracut` for the `initramfs` so this may change some stuff)
My understanding is that they are copying `/etc/cryptab` and a `/crypto_keyfile.bin` file into the `initramfs`. But I don't know how they are generated. And I don't know if this is enough.
1 条评论