From: Antonio Alvarez Feijoo Date: Mon, 27 Jan 2025 13:30:31 +0000 (+0100) Subject: zypper: pass --releasever option X-Git-Tag: v25.3~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea9f03eb01e937cf81868fc22dd52c4eef6cd9c0;p=thirdparty%2Fmkosi.git zypper: pass --releasever option zypper allows to use the `$releasever` variable in repo URLs (see zypper(8) man page). When mkosi uses zypper repos from the host instead of the default ones, this variable needs to be replaced with the host's `VERSION_ID`, otherwise repo URLs are incomplete. --- diff --git a/mkosi/installer/zypper.py b/mkosi/installer/zypper.py index fc5625f76..b39377e28 100644 --- a/mkosi/installer/zypper.py +++ b/mkosi/installer/zypper.py @@ -109,6 +109,7 @@ class Zypper(PackageManager): "--cache-dir=/var/cache/zypp", "--non-interactive", "--no-refresh", + f"--releasever={context.config.release}", *(["--gpg-auto-import-keys"] if context.config.repository_key_fetch else []), *(["--no-gpg-checks"] if not context.config.repository_key_check else []), *([f"--plus-content={repo}" for repo in context.config.repositories]),