mirror of
https://github.com/coreos/fedora-coreos-config.git
synced 2026-02-05 09:45:30 +01:00
ci: Workaround for base-files dpkg error when adding 'testing' repo
Refer to https://github.com/coreos/bootupd/pull/1029
This commit is contained in:
committed by
Joel Capitao
parent
3b118af3e7
commit
58b31ebde9
8
.github/workflows/container-native.yml
vendored
8
.github/workflows/container-native.yml
vendored
@@ -20,7 +20,15 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
set -xeuo pipefail
|
set -xeuo pipefail
|
||||||
echo 'deb [trusted=yes] https://ftp.debian.org/debian/ testing main' | sudo tee /etc/apt/sources.list.d/testing.list
|
echo 'deb [trusted=yes] https://ftp.debian.org/debian/ testing main' | sudo tee /etc/apt/sources.list.d/testing.list
|
||||||
|
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6ED0E7B82643E131 78DBA3BC47EF2265
|
||||||
sudo apt update
|
sudo apt update
|
||||||
|
DIVERSION_PATHS="lib32 libo32 lib64"
|
||||||
|
for PATH_NAME in $DIVERSION_PATHS; do
|
||||||
|
sudo dpkg-divert --remove --package base-files --divert /$PATH_NAME.usr-is-merged /$PATH_NAME || true
|
||||||
|
sudo dpkg-divert --remove --package base-files --divert /.$PATH_NAME.usr-is-merged /$PATH_NAME || true
|
||||||
|
done
|
||||||
|
sudo dpkg --configure -a
|
||||||
|
sudo apt --fix-broken install
|
||||||
sudo apt install -y crun/testing podman/testing skopeo/testing
|
sudo apt install -y crun/testing podman/testing skopeo/testing
|
||||||
# Something is confused in latest GHA here
|
# Something is confused in latest GHA here
|
||||||
sudo rm /var/lib/containers -rf
|
sudo rm /var/lib/containers -rf
|
||||||
|
|||||||
Reference in New Issue
Block a user