diff --git a/packer_templates/http/ubuntu/user-data b/packer_templates/http/ubuntu/user-data index f1b517f1b..c8d22760d 100644 --- a/packer_templates/http/ubuntu/user-data +++ b/packer_templates/http/ubuntu/user-data @@ -15,7 +15,7 @@ autoinstall: late-commands: - | 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' + sed -i "s/dhcp4: true/&\n dhcp-identifier: mac/" /target/etc/netplan/00-installer-config.yaml fi - echo 'vagrant ALL=(ALL) NOPASSWD:ALL' > /target/etc/sudoers.d/vagrant # Enable hyper-v daemons only if using hyper-v virtualization