I have a question about disk encryption I need help with, I want to encrypt the rootfs on the emmc, but we also use the emmc to mount the ssd on a mount point using the emmc, is it possible to also encrypt that mount point let’s call it /etc/x.
It seems not valid case for disk encryption, which should be enabled during the flash.
If you want NVMe SSD to be encrypted, please specify the ROOTFS_ENC=1 during flash for the external NVMe SSD.
I think NVMe has enough space for you respecting to the internal eMMC.
If you want to boot from eMMC but also need the mounted NVMe to be encrypted, maybe you can try using the tool like VeraCrypt or LUKS for your case. But we haven’t verified this use case locally so far.
Might be out of the blue but while I was reading the disk_encryption_helper.func that is used by the flash.sh I noticed that when building the enc_rootfs_img, the script also use the gen_luks_passphrase.py to generate a passphrase with the dek, and that is passed to cryptsetup:
Thank you for the use case, but my question is about the LUKS for disk encryption, during the encryption we only give the passphrase that protect the master key, DEK is generated randomly by the cryptsetup right?