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:
Michael Marineau 2014-04-10 21:48:11 -07:00
parent 776e786ed2
commit e418b65c76
3 changed files with 1 additions and 2 deletions

View File

@ -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