We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23a8abb commit e067116Copy full SHA for e067116
packer_templates/http/ubuntu/user-data
@@ -13,9 +13,10 @@ autoinstall:
13
install-server: yes
14
allow-pw: yes
15
late-commands:
16
+ # add || true until we stop building u20/22
17
- |
18
if [ -f /target/etc/netplan/00-installer-config.yaml ]; then
- 'sed -i "s/dhcp4: true/&\n dhcp-identifier: mac/" /target/etc/netplan/00-installer-config.yaml'
19
+ 'sed -i "s/dhcp4: true/&\n dhcp-identifier: mac/" /target/etc/netplan/00-installer-config.yaml' || true
20
fi
21
- echo 'vagrant ALL=(ALL) NOPASSWD:ALL' > /target/etc/sudoers.d/vagrant
22
# Enable hyper-v daemons only if using hyper-v virtualization
0 commit comments