diff options
| author | Samuel Littley <samuel.littley@toastwaffle.com> | 2021-01-24 16:28:47 +0000 |
|---|---|---|
| committer | Samuel Littley <samuel.littley@toastwaffle.com> | 2021-01-24 16:28:47 +0000 |
| commit | e90af6d0f357cad70800a457ff6f1a6fcbf3a061 (patch) | |
| tree | cdc80b40d65fdf08a9b6a8f4a64b11ccf526d0a2 /google_set_hostname.patch | |
| parent | e572c2f30f7696169a202231c33b06758b7ff6d8 (diff) | |
| download | google-compute-engine-e90af6d0f357cad70800a457ff6f1a6fcbf3a061.tar.xz | |
Update to v20210113.00-2 - add hostname patch
Diffstat (limited to 'google_set_hostname.patch')
| -rw-r--r-- | google_set_hostname.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/google_set_hostname.patch b/google_set_hostname.patch new file mode 100644 index 0000000..8aee980 --- /dev/null +++ b/google_set_hostname.patch @@ -0,0 +1,12 @@ +diff --unified --recursive --text guest-configs-20210113.00.orig/src/usr/bin/google_set_hostname guest-configs-20210113.00/src/usr/bin/google_set_hostname +--- guest-configs-20210113.00.orig/src/usr/bin/google_set_hostname 2021-01-24 16:23:33.145413281 +0000 ++++ guest-configs-20210113.00/src/usr/bin/google_set_hostname 2021-01-24 16:20:26.670408935 +0000 +@@ -37,7 +37,7 @@ + # unqualified domain name. + + if [ -n "$new_host_name" ]; then +- hostname "${new_host_name%%.*}" ++ hostnamectl set-hostname "${new_host_name%%.*}" + + # If NetworkManager is installed set the hostname with nmcli. + # to resolve issues with NetworkManager resetting the hostname |
