Skip to content

Commit e067116

Browse files
committed
fix(ubuntu): this sed fails on u20 and u22, so make it succeed
Signed-off-by: Douglas J Hunley <[email protected]>
1 parent 23a8abb commit e067116

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packer_templates/http/ubuntu/user-data

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ autoinstall:
1313
install-server: yes
1414
allow-pw: yes
1515
late-commands:
16+
# add || true until we stop building u20/22
1617
- |
1718
if [ -f /target/etc/netplan/00-installer-config.yaml ]; then
18-
'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
1920
fi
2021
- echo 'vagrant ALL=(ALL) NOPASSWD:ALL' > /target/etc/sudoers.d/vagrant
2122
# Enable hyper-v daemons only if using hyper-v virtualization

0 commit comments

Comments
 (0)