Disable repos with missing GPG keys in image (unblocks ISO depsolve)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
e3c142aebe
commit
1f85779d7c
1 changed files with 15 additions and 1 deletions
|
|
@ -52,7 +52,21 @@ chmod +x /usr/libexec/kamos-install-flatpaks
|
||||||
systemctl enable kamos-flatpaks.service
|
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)
|
# Enable weekly automatic OS updates (staged, applied on reboot)
|
||||||
systemctl enable rpm-ostreed-automatic.timer || true
|
systemctl enable rpm-ostreed-automatic.timer || true
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue