[scripts] inner_chroot_script: make sure to setup "sabayon" host in /etc/hosts

This commit is contained in:
Fabio Erculiani 2011-07-09 17:26:14 +02:00
parent 8e02cdf8da
commit 5397f9515f

View File

@ -29,6 +29,10 @@ echo "inet_interfaces = localhost" >> /etc/postfix/main.cf
# turn bashlogin shells to actual login shells
sed -i 's:exec -l /bin/bash:exec -l /bin/bash -l:' /bin/bashlogin
# setup /etc/hosts, add sabayon as default hostname (required by XFCE)
sed -i "/^127.0.0.1/ s/localhost/localhost sabayon/" /etc/hosts
sed -i "/^::1/ s/localhost/localhost sabayon/" /etc/hosts
# setup postfix local mail aliases
newaliases