Currently, when the system is installed using, say, legacy boot, and a user subsequently changes to UEFI for booting a new install media, the choice to upgrade the installed system is still offered, even though it will not work, and will possibly not be detected until late post-installation phase.
Similarly, and possibly more likely, if a backup exists, which can date from before a voluntary switch from legacy to UEFI, it will be offered with similar consequences.
It should be doable to record the boot-type in /etc/xensource-inventory so we can avoid early such situations. Another option (or fallback option) could be to rely on the /etc/fstab contents to check for an /boot/efi entry.
Does it look like something that could be accepted ?
Currently, when the system is installed using, say, legacy boot, and a user subsequently changes to UEFI for booting a new install media, the choice to upgrade the installed system is still offered, even though it will not work, and will possibly not be detected until late post-installation phase.
Similarly, and possibly more likely, if a backup exists, which can date from before a voluntary switch from legacy to UEFI, it will be offered with similar consequences.
It should be doable to record the boot-type in
/etc/xensource-inventoryso we can avoid early such situations. Another option (or fallback option) could be to rely on the/etc/fstabcontents to check for an/boot/efientry.Does it look like something that could be accepted ?