We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de42bb9 commit 7e8f918Copy full SHA for 7e8f918
packer/http/oem-preseed.cfg
@@ -62,6 +62,7 @@ ubiquity ubiquity/success_command string svcfile="/target/etc/systemd/system/ssh
62
echo "After=network-online.target" >> "$svcfile"; \
63
echo "Requires=network-online.target" >> "$svcfile"; \
64
echo "[Service]" >> "$svcfile"; \
65
+ echo "ExecStartPre=/bin/bash -c 'echo nameserver 8.8.8.8 > /etc/resolv.conf'" >> "$svcfile"; \
66
echo "ExecStartPre=/usr/bin/apt-get update" >> "$svcfile"; \
67
echo "ExecStart=/usr/bin/apt-get -y install openssh-server" >> "$svcfile"; \
68
echo "ExecStartPost=/bin/systemctl disable ssh-install.service" >> "$svcfile"; \
0 commit comments