This worked for me with 18.04 and 20.04 on an encrypted flash drive.
https://askubuntu.com/questions/1086309/how-to-make-bios-uefi-flash-drive-with-full-disk-encryption