Skip to content

Commit

Permalink
Bump to Fedora 39
Browse files Browse the repository at this point in the history
Signed-off-by: Ed Santiago <[email protected]>
  • Loading branch information
edsantiago committed Sep 28, 2023
1 parent ea2dc8b commit 80f5d3f
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 7 deletions.
2 changes: 1 addition & 1 deletion IMG_SFX
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20230926t165419z-f38f37d13
20230928t004553z-f39f38d13
2 changes: 1 addition & 1 deletion IMPORT_IMG_SFX
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20230816t191121z-f38f37d13
20230921t135305z-f39f38d13
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ if_ci_else = $(if $(findstring true,$(CI)),$(1),$(2))

export CENTOS_STREAM_RELEASE = 8

export FEDORA_RELEASE = 38
export PRIOR_FEDORA_RELEASE = 37
export FEDORA_RELEASE = 39
export PRIOR_FEDORA_RELEASE = 38

# This should always be one-greater than $FEDORA_RELEASE (assuming it's actually the latest)
export RAWHIDE_RELEASE = 39
export RAWHIDE_RELEASE = 40

# See import_images/README.md
export FEDORA_IMPORT_IMG_SFX = $(_IMPORT_IMG_SFX)
Expand Down
2 changes: 1 addition & 1 deletion base_images/fedora_base-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if ! ((CONTAINER)); then
if ((OS_RELEASE_VER<35)); then
PKGS+=(google-compute-engine-tools)
else
PKGS+=(google-compute-engine-guest-configs)
PKGS+=(google-compute-engine-guest-configs google-guest-agent)
fi
fi
fi
Expand Down
23 changes: 23 additions & 0 deletions cache_images/fedora_packaging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,29 @@ DOWNLOAD_PACKAGES=(\
msg "Installing general build/test dependencies"
bigto $SUDO dnf install -y $EXARG "${INSTALL_PACKAGES[@]}"

# FIXME: 2023-09-26: emergency upgrade to fix chmod-symlink bug
if [[ $(date +%Y%m) -gt 202309 ]]; then
echo ""
echo "FATAL FATAL FATAL: REMOVE THIS TEMPORARY WORKAROUND"
echo
exit 1
fi
source /etc/os-release
# shellcheck disable=SC2154
if [[ $VERSION_ID -ge 38 ]]; then
arch=$(uname -m)
crunrpm=https://kojipkgs.fedoraproject.org//packages/crun/1.9.2/1.fc${VERSION_ID}/${arch}/crun-1.9.2-1.fc${VERSION_ID}.${arch}.rpm
msg "FIXME-2023-09-26: installing $crunrpm"
bigto $SUDO dnf -y install $crunrpm ${crunrpm/crun-/crun-wasm-}
fi
# FIXME FIXME FIXME: https://bugzilla.redhat.com/show_bug.cgi?id=2238149
# shellcheck disable=SC2154
if [[ $VERSION_ID -eq 39 ]] && [[ $(uname -m) == "x86_64" ]]; then
msg "FIXME-2023-09-27: installing pandoc-3.1.3-25"
bigto $SUDO dnf -y install https://kojipkgs.fedoraproject.org//work/tasks/7301/106797301/pandoc-3.1.3-25.fc40.x86_64.rpm \
https://kojipkgs.fedoraproject.org//work/tasks/7301/106797301/pandoc-common-3.1.3-25.fc40.noarch.rpm
fi

msg "Downloading packages for optional installation at runtime, as needed."
$SUDO mkdir -p "$PACKAGE_DOWNLOAD_DIR"
cd "$PACKAGE_DOWNLOAD_DIR"
Expand Down
2 changes: 1 addition & 1 deletion cache_images/rawhide_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ source "$REPO_DIRPATH/lib.sh"
req_env_vars PACKER_BUILD_NAME

# Going from F38 -> rawhide requires some special handling WRT DNF upgrade to DNF5
if [[ "$OS_RELEASE_VER" -eq 38 ]]; then
if [[ "$OS_RELEASE_VER" -ge 38 ]]; then
warn "Upgrading dnf -> dnf5"
showrun $SUDO dnf update -y dnf
showrun $SUDO dnf install -y dnf5
Expand Down

0 comments on commit 80f5d3f

Please sign in to comment.