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 <olivier.gayot@canonical.com>
This commit is contained in:
Olivier Gayot 2024-04-12 09:16:05 +02:00
parent 1b7fc279ec
commit 01338fae05
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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 [