diff options
author | Samuel Littley | 2022-03-15 20:15:00 +0000 |
---|---|---|
committer | Samuel Littley | 2022-03-15 20:15:00 +0000 |
commit | b9d0bfd7dee560d465e6172c1fd5c80903e30f0c (patch) | |
tree | 7981cb81bfa837680a4168e8d7a105b24f8cb697 /google_set_hostname.patch | |
parent | e90af6d0f357cad70800a457ff6f1a6fcbf3a061 (diff) | |
download | aur-b9d0bfd7dee560d465e6172c1fd5c80903e30f0c.tar.gz |
Update to 20220211.00
Diffstat (limited to 'google_set_hostname.patch')
-rw-r--r-- | google_set_hostname.patch | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/google_set_hostname.patch b/google_set_hostname.patch index 8aee98076069..a3200e53e221 100644 --- a/google_set_hostname.patch +++ b/google_set_hostname.patch @@ -1,10 +1,10 @@ -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 @@ +diff --unified --recursive --text guest-configs-20220211.00.orig/src/usr/bin/google_set_hostname guest-configs-20220211.00/src/usr/bin/google_set_hostname +--- guest-configs-20220211.00.orig/src/usr/bin/google_set_hostname 2021-01-24 16:23:33.145413281 +0000 ++++ guest-configs-20220211.00/src/usr/bin/google_set_hostname 2021-01-24 16:20:26.670408935 +0000 +@@ -43,7 +43,7 @@ # unqualified domain name. - if [ -n "$new_host_name" ]; then + if [ -n "$new_host_name" ] && ! echo "$new_host_name" | grep -iq "metadata.google.internal"; then - hostname "${new_host_name%%.*}" + hostnamectl set-hostname "${new_host_name%%.*}" |