I am making a custom Ubuntu (22.04) distribution and Live USB using Cubic. After installation, I would like to make the original live USB iso be installed on the hard drive and bootable from the Grub menu (similar in concept to a recovery partition). I think I have figured out how to make Grub have this menu entry and boot from the iso file, but I am having trouble figuring out how to make the installer copy the iso into the /boot folder (where Grub points to). I realize I could just manually copy it into there after installation, but that does not solve the problem for other users.
Of course, I could create the iso then make another version of it in Cubic which has the iso in the /boot directory, but this means making the iso twice and seems like a weird workaround.
What method would you suggest for making this happen?
persistent-path
in GRUB. See: https://askubuntu.com/q/850319/43926 for what it is worth. If you get it working please answer your own question here. I will follow this question. – C.S.Cameron May 13 '23 at 11:33