I want to build a dual boot environment of CentOS 7 and 8 on a UEFI/GPT machine.
But, I encountered a EFI bootloader problem;
Both CentOS 7 and 8 installers put their bootloaders in the same place: \EFI\centos.
So, the previous one will be overwritten by after one.
To avoid this conflict, I tried the following workaround:
- Install CentOS 7
- Install CentOS 8 without bootloader (ESP not modified),
- Boot CentOS 7 and make boot menu entries using
grub2-mkconfigandos-prober.
This looks succeeded but also looks weird. If there is a way to put the bootloaders in ESP separately and list those by the EFI boot manager, I think that's better than above.
So my questions are:
- Is there a way to put the bootloaders in ESP separately?
- If no, the workaround I wrote above is correct?
Thank you
P.S. I know I can build individual virtual environments using VirtualBox etc, but I actually need a dual boot environment now for some reason.