system: Fix the default /etc/hosts.

* gnu/system.scm (default-/etc/hosts): Fix the alias/address order.
  Add ::1.
master
Ludovic Courtès 2014-09-12 09:52:05 +02:00
parent 5dae0186de
commit 7d6a52c0dc
1 changed files with 2 additions and 2 deletions

View File

@ -268,8 +268,8 @@ This is the GNU system. Welcome.\n")
(define (default-/etc/hosts host-name)
"Return the default /etc/hosts file."
(text-file "hosts"
(string-append "localhost 127.0.0.1\n"
host-name " 127.0.0.1\n")))
(string-append "127.0.0.1 localhost " host-name "\n"
"::1 localhost " host-name "\n")))
(define* (etc-directory #:key
(locale "C") (timezone "Europe/Paris")