Yes, that's more-or-less exactly what the code in sdmcryptfs does for you when you run it in the initramfs.I've seen various methods on t'internet. I've just stumbled across a note I made which is about the easiest from the command line..You'll get the passphrase prompt at luksOpen. Seems I didn't make a note of how it was created. It must be in the crypsetup man page somewhere.Code:
#sudo cryptsetup luksDump /dev/sde#sudo cryptsetup luksOpen /dev/sde fred#sudo mount /dev/mapper/fred /mnt/tmp#sudo umount /mnt/tmp#sudo cryptsetup luksClose fred
The secret sauce that sdm adds to this is not encryption itself. That's well-understood.
Rather sdm-s secret sauce is doing it mostly automatically, and the bit that isn't automated is as simple as possible. Plus, it saves you from the annoyace and time-consuming effort of having to go search the web for a how-to page that is up to date, is complete, and actually works.
Statistics: Posted by bls — Sun Jan 21, 2024 11:39 pm