Skip to content
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
5 changes: 5 additions & 0 deletions tools/baseimage/pkg/gce/scripts/create_base_image_main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ sudo chroot /mnt/image /usr/bin/apt upgrade -y
# in /tmp by default.
sudo chroot /mnt/image /usr/bin/systemctl mask tmp.mount

# Enable socket-activated SSH so port 22 is available early during boot
# without waiting for guest-agent and other multi-user services to finish.
sudo chroot /mnt/image /usr/bin/systemctl disable ssh.service
sudo chroot /mnt/image /usr/bin/systemctl enable ssh.socket

# Avoid automatic updates during tests.
# https://manpages.debian.org/trixie/unattended-upgrades/unattended-upgrade.8.en.html
sudo chroot /mnt/image /usr/bin/apt purge -y unattended-upgrades
Expand Down
Loading