From 1f85779d7cafdc1f8c2959c96945fd312971f915 Mon Sep 17 00:00:00 2001 From: kmk1971 Date: Sat, 1 Aug 2026 16:00:21 +0400 Subject: [PATCH] Disable repos with missing GPG keys in image (unblocks ISO depsolve) Co-Authored-By: Claude Fable 5 --- build_files/build.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/build_files/build.sh b/build_files/build.sh index 9b8fb97..559bea5 100644 --- a/build_files/build.sh +++ b/build_files/build.sh @@ -52,7 +52,21 @@ chmod +x /usr/libexec/kamos-install-flatpaks systemctl enable kamos-flatpaks.service ### --------------------------------------------------------------- -### 6. System defaults +### 6. Disable repos with missing GPG keys (breaks ISO depsolve; +### harmless for users — OS updates come via the container image) +### --------------------------------------------------------------- +for repo in /etc/yum.repos.d/*.repo; do + for key in $(grep -oP "(?<=gpgkey=file://)\S+" "$repo" 2>/dev/null || true); do + if [ ! -f "$key" ]; then + echo "Disabling $repo (missing GPG key $key)" + sed -i "s/^enabled=1/enabled=0/" "$repo" + break + fi + done +done + +### --------------------------------------------------------------- +### 7. System defaults ### --------------------------------------------------------------- # Enable weekly automatic OS updates (staged, applied on reboot) systemctl enable rpm-ostreed-automatic.timer || true