Last partition encrypted with gen_luks.sh doesn't unlock on boot

Hi! I flashed my device with the nvme_rootfs_enc.xml, which created the rootfs and UAD encrypted. Afterward, I formatted the 16th partition (UAD) and created the 16th, 17th, 18th, 19th, 20th, 21st, and 22nd partitions with parted. Then, I formatted these partitions. In my next step, I encrypted the 16th, 17th, 18th, 19th, 20th, and 21st partitions with gen_luks.sh. I rebooted the machine to see if my partitions were correctly encrypted. These are the partitions:


This is my configuration files /opt/nvidia/cryptluks:

As you can see, the last partition is locked and doesn’t unlock after the device boots. Can you help me with this issue?

Hi apa,

Do you mean the UDA here?

It seems you create several custom partitions and encrypted them.
Please share the steps how you perform these.

Do you mean the Partition 22?
Please also share the full serial console log for further check.

Yes I means 22 and I mean UDA partition not UAD. The partition 22 is the only partition that doesnt open when I boot the OS after using the gen_luks.sh script.
Here are the step:

  1. I unmount the partition umount /dev/nvme0n1p16
  2. Used parted to delete the partition 16 (UDA) parted /dev/nvme0n1 rm 16
  3. After I create all my partitions. example: mkpart primary 43.9GB 49.1GB etc. 16 to 22
  4. I format the partition. Exemple: mkfs.ext4 /dev/nvme0n1p16 16 to 22
  5. After I naviguate to the directory cd /usr/sbin/
  6. I use gen_luks.sh. Exemple: sudo ./gen_luks.sh /dev/nvme0n1p16 PARTITION01 YES YES NO 16 to 22
  7. I reboot the machine
  8. After every partition are unlock except the last partition, partition 22. And I need this partition to be mount.

I tried to create a partition at the end (partition 23) to see if it’s the last partition that has this issue, but no. Both partitions are locked. It feels like there is a limit of 7 partitions that can be encrypted and unlocked at boot. Just a theory.