debconf-selections: work around grub2 bug until it is fixed

Currently, installations of Ubuntu Server and Ubuntu Desktop both fail
on UEFI-based systems because of a grub2 bug. This is a workaround to
avoid failing installs until grub2 migrates to the release pocket.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
This commit is contained in:
Olivier Gayot 2024-03-06 13:03:00 +01:00
parent 2fd9c68571
commit cffce32305
1 changed files with 6 additions and 0 deletions

View File

@ -161,6 +161,12 @@ class DebconfSelectionsModel:
return {}
def get_apt_config(self, final: bool, has_network: bool) -> Dict[str, Any]:
# Workaround for LP: #2055294
# TODO remove when the bug is fixed
if not self.selections:
grub2_selection = "grub-pc grub-efi/cloud_style_installation boolean false"
return {"debconf_selections": {"subiquity": grub2_selection}}
return {"debconf_selections": {"subiquity": self.selections}}