Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion IMG_SFX
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20250820t132717z-f42f41d13
20250910t092246z-f42f41d13
29 changes: 18 additions & 11 deletions base_images/fedora_base-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,6 @@ if ! ((CONTAINER)); then
# Be kind to humans, indicate where generated files came from
sourcemsg="### File generated during VM Image build by $(basename $SCRIPT_FILEPATH)"

if ((OS_RELEASE_VER<35)); then
echo "Overriding cloud-init service file"
# The packaged cloud-init.service unit has a dependency loop
# vs google-network-daemon.service. Fix this with a custom
# cloud-init service file.
CLOUD_SERVICE_PATH="systemd/system/cloud-init.service"
echo -e "$sourcemsg" | $SUDO tee /etc/$CLOUD_SERVICE_PATH
cat $SCRIPT_DIRPATH/fedora-cloud-init.service | \
$SUDO tee -a /etc/$CLOUD_SERVICE_PATH
fi

# The mechanism used by Cirrus-CI to execute tasks on the system is through an
# "agent" process launched as a GCP VM startup-script (from 'user-data').
# This agent is responsible for cloning the repository and executing all task
Expand All @@ -97,6 +86,24 @@ if ! ((CONTAINER)); then
echo "Setting GCP startup service (for Cirrus-CI agent) SELinux unconfined"
# ref: https://cloud.google.com/compute/docs/startupscript
METADATA_SERVICE_PATH=systemd/system/google-startup-scripts.service

# https://bugzilla.redhat.com/show_bug.cgi?id=2394063
# google-guest-agent is missing a script in its package
timebomb 20251101 "remove work around if bug was fixed"
$SUDO cat > /usr/bin/google_metadata_script_runner_adapt <<EOF
#!/bin/env bash
#
# This script wraps compatibility logic of guest agent's startup script
# runner. If compat manager is present run it, otherwise launch the
# known service binary.
#
if [ -e /usr/bin/gce_compat_metadata_script_runner ]; then
/usr/bin/gce_compat_metadata_script_runner startup
else
/usr/bin/google_metadata_script_runner startup
fi
EOF
$SUDO chmod 755 /usr/bin/google_metadata_script_runner_adapt
fi
echo "$sourcemsg" | $SUDO tee -a /etc/$METADATA_SERVICE_PATH
sed -r -e \
Expand Down
5 changes: 5 additions & 0 deletions cache_images/debian_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ if ! ((CONTAINER)); then
SEDCMD='s/^GRUB_CMDLINE_LINUX="(.*)"/GRUB_CMDLINE_LINUX="\1 cgroup_enable=memory swapaccount=1"/'
ooe.sh $SUDO sed -re "$SEDCMD" -i /etc/default/grub.d/*
ooe.sh $SUDO sed -re "$SEDCMD" -i /etc/default/grub
# https://github.com/containers/podman/pull/27030#issuecomment-3271357228
# Current 6.16.3 kernel here has a bad memory leak that causes a lot of failure sin podman CI.
# Work around by using the stock kernel from this image for now.
timebomb 20251001 "Remove kernel bug workaround"
ooe.sh $SUDO sed -i 's|GRUB_DEFAULT=0|GRUB_DEFAULT="Advanced options for Debian GNU/Linux>Debian GNU/Linux, with Linux 6.1.0-37-cloud-amd64"|' /etc/default/grub
ooe.sh $SUDO update-grub
fi

Expand Down