Skip to content

Commit 372deb4

Browse files
author
Gemini CLI
committed
Fix 01-repos.sh to fail on distro-sync errors and update devcontainer to fedora:latest
1 parent fd2b899 commit 372deb4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM fedora:41
1+
FROM fedora:latest
22

33
# 1. Install MiOS Toolchain + System Components (FHS & Build Stack)
44
RUN dnf install -y just podman podman-compose buildah skopeo bootc bootupd ostree rpm-ostree jq yq rsync git nodejs npm sudo zsh findutils grep sed gawk policycoreutils util-linux authselect openssl qemu-img attr diffutils && dnf clean all

automation/01-repos.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ $DNF_BIN "${DNF_SETOPT[@]}" upgrade -y --allowerasing --best \
8080
echo "[01-repos] Phase 2: Distro-upgrade and userspace alignment..."
8181
# We use 'upgrade --refresh' to ensure we have fresh metadata and catch latest
8282
# userspace patches, followed by 'distro-sync' to align the remainder with F44.
83-
$DNF_BIN "${DNF_SETOPT[@]}" --setopt=excludepkgs="shim-*,kernel*" upgrade --refresh -y || true
84-
$DNF_BIN "${DNF_SETOPT[@]}" --setopt=excludepkgs="shim-*,kernel*" distro-sync -y --best --allowerasing || {
83+
$DNF_BIN "${DNF_SETOPT[@]}" --setopt=excludepkgs="shim-*,kernel*" upgrade --refresh -y
84+
$DNF_BIN "${DNF_SETOPT[@]}" --setopt=excludepkgs="shim-*,kernel*" distro-sync -y --best --allowerasing || { echo "FATAL: distro-sync failed"; exit 1; }
8585
echo "[01-repos] WARNING: Distro-sync to Fedora 44 failed. Repository might be unreachable."
8686
echo "[01-repos] Continuing with base image packages..."
8787
}

0 commit comments

Comments
 (0)