From: Luca Boccassi Date: Thu, 23 Feb 2023 13:07:10 +0000 (+0000) Subject: ubuntu: security repo is different from !x86 X-Git-Tag: v15~317 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bbb31eed90d8e5e6685e38a8e7b10fa4493c1b3;p=thirdparty%2Fmkosi.git ubuntu: security repo is different from !x86 --- diff --git a/mkosi/distributions/ubuntu.py b/mkosi/distributions/ubuntu.py index 8bd59c8a3..852f32cd2 100644 --- a/mkosi/distributions/ubuntu.py +++ b/mkosi/distributions/ubuntu.py @@ -22,8 +22,11 @@ class UbuntuInstaller(DebianInstaller): updates = f"deb {state.config.mirror} {state.config.release}-updates {' '.join(repos)}" state.root.joinpath(f"etc/apt/sources.list.d/{state.config.release}-updates.list").write_text(f"{updates}\n") - # Security updates repos are never mirrored - security = f"deb http://security.ubuntu.com/ubuntu/ {state.config.release}-security {' '.join(repos)}" + # Security updates repos are never mirrored. But !x86 are on the ports server. + if state.config.architecture in ["x86", "x86_64"]: + security = f"deb http://security.ubuntu.com/ubuntu/ {state.config.release}-security {' '.join(repos)}" + else: + security = f"deb http://ports.ubuntu.com/ {state.config.release}-security {' '.join(repos)}" state.root.joinpath(f"etc/apt/sources.list.d/{state.config.release}-security.list").write_text(f"{security}\n")