diff --git a/patches/systemvm/debian/config/etc/init.d/cloud-early-config b/patches/systemvm/debian/config/etc/init.d/cloud-early-config index f1c487dd47a..11380b4105d 100755 --- a/patches/systemvm/debian/config/etc/init.d/cloud-early-config +++ b/patches/systemvm/debian/config/etc/init.d/cloud-early-config @@ -598,8 +598,7 @@ setup_vpcrouter() { fi if [ -f /etc/hosts ]; then - host=`hostname -s`; - grep -q $host /etc/hosts || echo "127.0.0.1 $host" >> /etc/hosts; + grep -q $NAME /etc/hosts || echo "127.0.0.1 $NAME" >> /etc/hosts; fi cat > /etc/network/interfaces << EOF