From 01338fae05aef05b6b2d07604f2e2e021f9bfca4 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Fri, 12 Apr 2024 09:16:05 +0200 Subject: [PATCH] mirror: switch default policy to OFFLINE_INSTALL by default Automated installations and desktop installations will now switch to an offline installation by default. In this mode, only packages from the pool will be fetched. This should allow the installation to proceed when installing from a private network without external access to the internet. Signed-off-by: Olivier Gayot --- doc/reference/autoinstall-reference.rst | 2 +- subiquity/models/mirror.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/reference/autoinstall-reference.rst b/doc/reference/autoinstall-reference.rst index ad44ebb9..a855b866 100644 --- a/doc/reference/autoinstall-reference.rst +++ b/doc/reference/autoinstall-reference.rst @@ -327,7 +327,7 @@ fallback ^^^^^^^^ * **type:** string (enumeration) -* **default:** abort +* **default:** offline-install Controls what Subiquity does when no primary mirror is usable. Supported values are: diff --git a/subiquity/models/mirror.py b/subiquity/models/mirror.py index 7a9411ab..b0ff1938 100644 --- a/subiquity/models/mirror.py +++ b/subiquity/models/mirror.py @@ -269,7 +269,7 @@ class MirrorModel(object): self.default_mirror = LegacyPrimaryEntry.new_from_default(parent=self).uri # What to do if automatic mirror-selection fails. - self.fallback = MirrorSelectionFallback.ABORT + self.fallback = MirrorSelectionFallback.OFFLINE_INSTALL def _default_primary_entries(self) -> List[PrimaryEntry]: return [