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
-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to