Disable repos with missing GPG keys in image (unblocks ISO depsolve)
All checks were successful
Build KAMOS images / Build kamos (push) Successful in 4m8s
Build KAMOS images / Build kamos-nvidia (push) Successful in 4m13s

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
kmk1971 2026-08-01 16:00:21 +04:00
parent e3c142aebe
commit 1f85779d7c

View file

@ -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