I've got a working Legacy/UEFI boot stick with Xubuntu focal. All is well with it. Now I'm creating clones, and for that purpose, I've changed stuff on each:
- hostname
- UUIDs of partitions
- UUIDs listed in /etc/fstab for those partitions.
These sticks will not boot because the UUIDs in GRUB have not changed, and I'm fairly baffled by the way GRUB records them, and regard updating them myself as too error-prone to try.
So since I can mount those sticks on a running system, I'd like to chroot into the stick and run update-grub in the chroot process. The examples I've seen don't allow the process to access devices and such, and I don't know how to properly set that up. I'm guessing I want access to at least /dev and maybe /sys and or /proc while in the chroot. All three are sort of "fake" in the original process, not part of the filesystem on any drive.
Any pointers? Is there a different approach to getting these clones to boot?
Anyone know how to make it boot when GRUB goes into it's emergency mode?