From: DaanDeMeyer Date: Thu, 17 Jul 2025 10:42:37 +0000 (+0200) Subject: opensuse: Install OpenSUSE-release if another release package is not installed X-Git-Tag: v26~176 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1865be628eae69c196d85cf937008b49467c1541;p=thirdparty%2Fmkosi.git opensuse: Install OpenSUSE-release if another release package is not installed Fixes #3782 --- diff --git a/mkosi/distributions/opensuse.py b/mkosi/distributions/opensuse.py index 099e19d47..3f0e3cfc2 100644 --- a/mkosi/distributions/opensuse.py +++ b/mkosi/distributions/opensuse.py @@ -53,7 +53,11 @@ class Installer(DistributionInstaller): @classmethod def install(cls, context: Context) -> None: - cls.package_manager(context.config).install(context, ["filesystem"], apivfs=False) + packages = ["filesystem"] + if not any(p.endswith("-release") for p in context.config.packages): + packages += ["openSUSE-release"] + + cls.package_manager(context.config).install(context, packages, apivfs=False) @classmethod def repositories(cls, context: Context) -> Iterable[RpmRepository]: