Encrypted persistence not working


I am a new Kaisen linux user and I have been unable to configure encrypted persistence in a live USB.
I am using a 16GB drive and I have managed to add a third primary partition to the drive after using dd to copy the kaisen iso to it.
I used this command:
du -bcm kaisenlinuxrolling2.1-amd64-SR.iso | tail -
to check where the partition should start and then I used parted as follows:
mkpart primary 2418MiB 14GB

Then I followed the instructions on the Kaisen website about creating the encrypted filesystem and I labeled the partition “persistence”.
I also added the persistance.conf file with /union in it.

Here are the commands I used:
sudo cryptsetup --verbose --verify-passphrase luksFormat /dev/sdx3
sudo cryptsetup luksOpen /dev/sdx3 kaisen
sudo mkfs.ext4 -L persistence /dev/mapper/kaisen
sudo e2label /dev/mapper/kaisen persistence
sudo mount /dev/mapper/kaisen /mnt/
echo “/ union” | sudo tee /mnt/kaisen/persistence.conf
sudo umount /dev/mapper/kaisen
sudo cryptsetup luksClose /dev/mapper/kaisen

However, when I boot the USB and select encrypted persistence, I am not prompted for the password and changes made to the live system do not persist after reboot.

I was hoping I could get some help to point out what I am doing wrong.

Thank you

Hello and welcome on board,

The problem does not come from your manipulations. The encrypted persistence seems not to work in this case. I will test on another ISO image to see if the problem is the same on all lives.
If this feature does not work anymore, I will debug it for the next versions.

Thanks for your feedback!