When installing on the new ubuntu 20.X and 22.X on UEFI based systems, the code for creating a default partition sets the grub_device: tag on the device, and not a partition:
elif self.bootloader == Bootloader.UEFI:
for esp in self._all(type='partition', grub_device=True):
if esp.fs() and esp.fs().mount():
if esp.fs().mount().path == '/boot/efi':
return False
return True
changing the code in pre.ubuntu.subiquity to this:
When installing on the new ubuntu 20.X and 22.X on UEFI based systems, the code for creating a default partition sets the
grub_device:
tag on the device, and not a partition:https://github.com/xcat2/xcat-core/blob/master/xCAT-server/share/xcat/install/scripts/pre.ubuntu.subiquity#L224
Which makes this code fail: https://github.com/canonical/subiquity/blob/main/subiquity/models/filesystem.py#L1565
changing the code in
pre.ubuntu.subiquity
to this:Seems to solve the problem.
References: https://github.com/xcat2/xcat-core/issues/6681