[yocto] Encrypt Root FIle system as part of RPI sdcard image using cryptsetup.
Prakash Ks
prakashpks15 at gmail.com
Thu Apr 5 10:42:47 PDT 2018
Hi,
I wanted to encrypt the Root file system parttition for the RPI3 SDcard
image, it would be great if anybody have some suggestion on this.
Note: Below are the steps i am using to encrypt, same kind of steps i want
to do automate, when we issue dd command automatically it should create
encrypted RFS partition.
sudo cryptsetup -s 512 luksFormat /dev/sdb3 /home/tel/enc.key
sudo cryptsetup luksOpen -d /home/tel/enc.key /dev/sdb3 example
sudo mkfs.ext4 /dev/mapper/example
sudo mount -t ext4 /dev/mapper/example /mnt/block3
sudo mount -t ext4 /dev/sdb2 /mnt/block2
sudo cp -ax /mnt/block2/* /mnt/block3/
sudo umount /mnt/block3
sudo umount /mnt/block2
sudo cryptsetup luksClose example
Decryption part i have added as part of boot up process, working perfectly
fine. I need help in encrypting using cryptsetup.
Thanks!
Prakash
--
Thanks and Regards,
Prakash K S
+91 9620140303
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180405/31fc518d/attachment.html>
More information about the yocto
mailing list