Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix the versions for local google guest VM services so that they do not
upgrade to versions that are known to have boot-time issues for the
following combination:

- building image using Packer on a build VM without local NVME devices
- final image used on a VM with local NVME devices

In this combination, network configurations persist that do not match
the final naming conventions of the network interfaces because of
differing PCI bus layout.
  • Loading branch information
tpdownes committed Jul 17, 2024
1 parent f60056b commit bc974c8
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,17 @@ deployment_groups:
# if you follow this rule, any module which supports DKMS will be
# properly configured at the end of image building (gVNIC, NVIDIA, ...)
- type: shell
destination: disable_unattended_upgrades.sh
destination: prevent_unintentional_upgrades.sh
content: |
#!/bin/bash
set -e -o pipefail
systemctl stop unattended-upgrades.service
systemctl disable unattended-upgrades.service
systemctl mask unattended-upgrades.service
apt-mark hold google-compute-engine
apt-mark hold google-compute-engine-oslogin
apt-mark hold google-guest-agent
apt-mark hold google-osconfig-agent
- type: ansible-local
destination: install_headers_archive.yml
content: |
Expand Down

0 comments on commit bc974c8

Please sign in to comment.