]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
mkosi: do not install base packages in extensions
authorLuca Boccassi <luca.boccassi@microsoft.com>
Tue, 19 Oct 2021 20:41:10 +0000 (21:41 +0100)
committerLuca Boccassi <luca.boccassi@microsoft.com>
Tue, 19 Oct 2021 20:41:19 +0000 (21:41 +0100)
mkosi/__init__.py

index 985fc55f160f597e0f31f3262dca6d75d9fa013a..5efc6900b79c24c8750e372021f24b1446e2c131 100644 (file)
@@ -6240,6 +6240,11 @@ def load_args(args: argparse.Namespace) -> CommandLineArguments:
     # always the same
     args.machine_id = uuid.uuid4().hex
 
+    # If we are building a sysext we don't want to add base packages to the
+    # extension image, as they will already be in the base image.
+    if args.base_image is not None and args.base_packages is None:
+        args.base_packages = False
+
     return CommandLineArguments(**vars(args))