diff --git a/root/usr/local/lib/wrapper_script.sh b/root/usr/local/lib/wrapper_script.sh
index c500923eedc837ac70b71c2f0298455a6992f0b5..1c7688c56c06c2ec8b872f406e26852bce80c245 100755
--- a/root/usr/local/lib/wrapper_script.sh
+++ b/root/usr/local/lib/wrapper_script.sh
@@ -9,4 +9,6 @@ if [ "$2" ]; then
     export PASSWORD=$2
 fi
 
+echo "$(hostname -I | cut -f2 -d' ') $HOSTNAME" >> /etc/hosts
+
 exec /init