I am attempting to boot Ubuntu on a LUKS encrypted device - In a prior life, I specified the UUID as a kernel cmdline option and then the initramfs opened up that device with the credentials I provided.
From all the documentation I am seeing, it appears to me that I must build the initramfs with the device I want to unlock beforehand.
So, let's say I have 3 USB devices that I want to boot to. Instead of keeping all of the contents identical and tweaking the kernel cmdline, I would keep everything the same, BUT change the initramfs for each one to reference the device properly? The problem with that for me is that how do I easily generate the initramfs when my root FS is a squashfs image?