diff options
| author | Greg Steuck <blackgnezdo@gmail.com> | 2018-12-02 01:53:06 -0800 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-12-02 09:53:06 +0000 |
| commit | e0d8c853f6c076c991406ce107a8242529eb3b3a (patch) | |
| tree | 8f541883d2d5a54e46371e08f3b04fa3615c1d4f /tools/create-openbsd-gce-ci.sh | |
| parent | 5a58167323289751602879a986a1b9f95531a31b (diff) | |
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
Diffstat (limited to 'tools/create-openbsd-gce-ci.sh')
| -rwxr-xr-x | tools/create-openbsd-gce-ci.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/create-openbsd-gce-ci.sh b/tools/create-openbsd-gce-ci.sh index e3ebfecdd..cc7d9c76a 100755 --- a/tools/create-openbsd-gce-ci.sh +++ b/tools/create-openbsd-gce-ci.sh @@ -48,6 +48,12 @@ EOF cat >etc/rc.local <<EOF ( + /usr/local/bin/curl -H "Metadata-Flavor: Google" \ + "http://metadata.google.internal/computeMetadata/v1/instance/hostname" \ + > /etc/myname.gce \ + && echo >> /etc/myname.gce \ + && mv /etc/myname{.gce,} \ + && hostname \$(cat /etc/myname) set -eux echo "starting syz-ci" |
