Skip to content

Commit

Permalink
New VMs: we need netavark 1.10.2-1.fc40
Browse files Browse the repository at this point in the history
Also, add "rpm -qa" (fedora) and "dpkg -l" (debian) so Ed's
package-version script can get better data. It would be nice
if we could save those to an artifact file, but we can't.

Signed-off-by: Ed Santiago <[email protected]>
  • Loading branch information
edsantiago committed Feb 6, 2024
1 parent 5dfa6ae commit 11593ef
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion IMG_SFX
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20240201t143038z-f39f38d13
20240206t195200z-f39f38d13
13 changes: 13 additions & 0 deletions cache_images/fedora_packaging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,19 @@ DOWNLOAD_PACKAGES=(\
msg "Installing general build/test dependencies"
bigto $SUDO dnf install -y "${INSTALL_PACKAGES[@]}"

timebomb 20240210 "Gaaaaaaaaah! Kludge to emergency-get netavark"
arch=$(uname -m)
fedoraversion=$(awk -F= '$1 == "VERSION_ID" { print $2 }' </etc/os-release)
want=
case $fedoraversion in
38) want=1 ;;
39) want=1 ;;
esac
if [[ -n "$want" ]]; then
bigto $SUDO dnf install -y https://kojipkgs.fedoraproject.org//packages/netavark/1.10.2/1.fc${fedoraversion}/${arch}/netavark-1.10.2-1.fc${fedoraversion}.${arch}.rpm
fi
timebomb 20240210 "^^^^^^^^ delete everything above here"

msg "Downloading packages for optional installation at runtime, as needed."
$SUDO mkdir -p "$PACKAGE_DOWNLOAD_DIR"
cd "$PACKAGE_DOWNLOAD_DIR"
Expand Down
10 changes: 8 additions & 2 deletions lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,10 @@ rh_finalize() {
# Packaging cache is preserved across builds of container images
$SUDO rm -f /etc/udev/rules.d/*-persistent-*.rules
$SUDO touch /.unconfigured # force firstboot to run
common_finalize

echo
echo "# PACKAGE LIST"
rpm -qa | sort
}

# Called during VM Image setup, not intended for general use.
Expand All @@ -369,7 +372,8 @@ debian_finalize() {
fi
set -x
# Packaging cache is preserved across builds of container images
common_finalize
echo "# PACKAGE LIST"
dpkg -l
}

finalize() {
Expand All @@ -382,4 +386,6 @@ finalize() {
else
die "Unknown/Unsupported Distro '$OS_RELEASE_ID'"
fi

common_finalize
}

0 comments on commit 11593ef

Please sign in to comment.