From 5397f9515f8b5910e969d2b5c3b7b26be29ea90b Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sat, 9 Jul 2011 17:26:14 +0200 Subject: [PATCH] [scripts] inner_chroot_script: make sure to setup "sabayon" host in /etc/hosts --- scripts/inner_chroot_script.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/inner_chroot_script.sh b/scripts/inner_chroot_script.sh index d9b31dd..7583277 100755 --- a/scripts/inner_chroot_script.sh +++ b/scripts/inner_chroot_script.sh @@ -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