diff --git a/autoinstall-schema.json b/autoinstall-schema.json index 4d5ef498..00644b6e 100644 --- a/autoinstall-schema.json +++ b/autoinstall-schema.json @@ -576,6 +576,7 @@ "updates": { "type": "string", "enum": [ + "none", "security", "all" ] diff --git a/doc/reference/autoinstall-reference.rst b/doc/reference/autoinstall-reference.rst index e07ed99a..73a74968 100644 --- a/doc/reference/autoinstall-reference.rst +++ b/doc/reference/autoinstall-reference.rst @@ -1321,6 +1321,7 @@ The type of updates that will be downloaded and installed after the system insta * ``security``: download and install updates from the ``-security`` pocket. * ``all``: also download and install updates from the ``-updates`` pocket. +* ``none``: don't download any updates, just continue with the install. Examples: diff --git a/subiquity/server/controllers/install.py b/subiquity/server/controllers/install.py index b952df64..fdf3e5e6 100644 --- a/subiquity/server/controllers/install.py +++ b/subiquity/server/controllers/install.py @@ -890,6 +890,8 @@ class InstallController(SubiquityController): apt_conf_contents = uu_apt_conf if policy == "all": apt_conf_contents += uu_apt_conf_update_all + elif policy == "none": + return else: apt_conf_contents += uu_apt_conf_update_security apt_conf_path = Path(aptdir) / "zzzz-temp-installer-unattended-upgrade" diff --git a/subiquity/server/controllers/updates.py b/subiquity/server/controllers/updates.py index 4a75a2ce..b7b69438 100644 --- a/subiquity/server/controllers/updates.py +++ b/subiquity/server/controllers/updates.py @@ -24,7 +24,7 @@ log = logging.getLogger("subiquity.server.controllers.updates") class UpdatesController(SubiquityController): endpoint = API.updates - possible = ["security", "all"] + possible = ["security", "all", "none"] autoinstall_key = model_name = "updates" autoinstall_schema = {