From: Daan De Meyer Date: Fri, 19 Jan 2024 11:21:47 +0000 (+0100) Subject: Implement RepositoryKeyCheck= for apt X-Git-Tag: v20.2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=33421f2497d88e87567bcffc986252d07277f190;p=thirdparty%2Fmkosi.git Implement RepositoryKeyCheck= for apt --- diff --git a/mkosi/installer/apt.py b/mkosi/installer/apt.py index ebfb7a7a0..44a7b509b 100644 --- a/mkosi/installer/apt.py +++ b/mkosi/installer/apt.py @@ -81,6 +81,13 @@ def apt_cmd(context: Context, command: str) -> list[PathString]: "-o", "pkgCacheGen::ForceEssential=,", ] + if not context.config.repository_key_check: + cmdline += [ + "-o", "Acquire::AllowInsecureRepositories=true", + "-o", "Acquire::AllowDowngradeToInsecureRepositories=true", + "-o", "APT::Get::AllowUnauthenticated=true", + ] + if not context.config.with_docs: cmdline += [ "-o", "DPkg::Options::=--path-exclude=/usr/share/doc/*",