From e0d8c853f6c076c991406ce107a8242529eb3b3a Mon Sep 17 00:00:00 2001 From: Greg Steuck Date: Sun, 2 Dec 2018 01:53:06 -0800 Subject: tools: set openbsd hostname to instance name for serviceability * openbsd images: set hostname to instance name for serviceability * openbsd startup scripts insist on EOL characters --- tools/create-openbsd-vmm-worker.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tools/create-openbsd-vmm-worker.sh') diff --git a/tools/create-openbsd-vmm-worker.sh b/tools/create-openbsd-vmm-worker.sh index 1baa3c687..c5619183b 100755 --- a/tools/create-openbsd-vmm-worker.sh +++ b/tools/create-openbsd-vmm-worker.sh @@ -49,6 +49,17 @@ cat >etc/installurl <etc/rc.local < /etc/myname.gce \ + && echo >> /etc/myname.gce \ + && mv /etc/myname{.gce,} \ + && hostname \$(cat /etc/myname) +) +EOF + chmod +x install.site cat >etc/rc.conf.local <