Skip to content

Commit

Permalink
Workaround broken package update
Browse files Browse the repository at this point in the history
After spending days debugging, it was determined that upgrading
cloud-init results in a failure to add/update OSLogin users
(and ssh keys) upon reboot (after resetting the system).
The exact cause is unknown and further/deeper debugging
isn't worth the effort.  Workaround the problem by
blocking the update for now
  • Loading branch information
cevich committed Oct 8, 2021
1 parent 98ca4c6 commit dddbb22
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions base_images/ubuntu_base-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ PKGS=( \
)

$SUDO apt-get -qq -y update

# At the time of this commit, upgrading past the stock
# cloud-init (21.3-1-g6803368d-0ubuntu1~21.04.3) causes
# failure of login w/ new ssh key after reset + reboot.
if ! ((CONTAINER)); then
$SUDO apt-mark hold cloud-init
fi

$SUDO apt-get -qq -y upgrade
$SUDO apt-get -qq -y install "${PKGS[@]}"

Expand Down

0 comments on commit dddbb22

Please sign in to comment.