Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add apt hold for shim-signed on Jammy #289

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
6 changes: 6 additions & 0 deletions setup/ubuntu/ami_init_script
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@

systemctl --quiet disable apt-daily-upgrade.timer apt-daily.timer

# TODO(betsymcphail): Workaround needed for Jammy only.
# Remove if/when new Jammy unprovisioned base is created
if [[ "$(lsb_release -cs)" == "jammy" ]]; then
apt-mark hold shim-signed
fi

apt-get update -o APT::Acquire::Retries=4 -qq \
|| (sleep 15; apt-get update -o APT::Acquire::Retries=4 -qq)
trap 'set +x; rm -rf /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin /var/lib/apt/lists/* /var/log/apt/*; set -x' EXIT
Expand Down