Skip to content

Commit

Permalink
🐛 fix shell exec err (#1572)
Browse files Browse the repository at this point in the history
Signed-off-by: acejilam <acejilam@gmail.com>
  • Loading branch information
ls-2018 authored Jul 22, 2024
1 parent 6fe9fa2 commit 7baa403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packer_templates/http/ubuntu/user-data
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7baa403

Please sign in to comment.