mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-07 21:41:19 +02:00
fix(coreos-base/oem-gce): Silence bogus /etc/hosts error
On first boot /etc/hosts doesn't exist yet, causing an error to be logged. This is a bit misleading
This commit is contained in:
parent
776e786ed2
commit
e418b65c76
@ -2,7 +2,7 @@
|
||||
|
||||
entry="169.254.169.254 metadata"
|
||||
|
||||
grep -q "${entry}" /etc/hosts
|
||||
grep -qs "${entry}" /etc/hosts
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo ${entry} >> /etc/hosts
|
||||
|
@ -1 +0,0 @@
|
||||
oem-gce-0.0.1.ebuild
|
Loading…
x
Reference in New Issue
Block a user