Skip to content

Commit 41cd206

Browse files
committed
rpm: Set pkgverify_level to digest
This was changed to all in rpm 6.0.0, which means that rpm is checking for signatures from dnf/zypper repos that have gpgcheck=0. dnf5 was updated to deal with this but for some reason the fix isn't working in Arch and zypper doesn't deal with this at all, so revert back to the previous level until package managers can actually deal with this.
1 parent 86fe0f4 commit 41cd206

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mkosi/installer/rpm.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ def setup_rpm(
9191
if dbbackend:
9292
(confdir / "macros.db_backend").write_text(f"%_db_backend {dbbackend}")
9393

94+
# TODO: Drop when zypper and dnf5 correctly disable signature checks for gpgcheck=0 repositories.
95+
if not (confdir / "macros.pkgverify_level").exists():
96+
(confdir / "macros.pkgverify_level").write_text("%_pkgverify_level digest")
97+
9498
if context.config.distribution == Distribution.opensuse or (
9599
context.config.distribution.is_centos_variant() and context.config.release == "9"
96100
):

0 commit comments

Comments
 (0)