diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-05-02 02:38:06 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-05-02 02:38:06 +0400 |
commit | d8e5d55b4a1decf22f250545ddc375021a00022d (patch) | |
tree | 3b3b016efd0d7dbf84ea71010f7e9e5bdca81d94 | |
parent | ecfdcab2bcd1e155212fb65e16e31a0ec6044ce1 (diff) | |
download | live-d8e5d55b4a1decf22f250545ddc375021a00022d.tar.gz |
Append nodename to /etc/hosts2013-05-05/netinst
-rwxr-xr-x | install | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -785,6 +785,10 @@ def configure_nodename(): f = open(rootdir + '/etc/nodename', 'w') print(nodename, file=f) f.close() + # XXX See http://bugs.debian.org/247734 + f = open(rootdir + '/etc/hosts', 'a') + print('127.0.0.1\t'+nodename, file=f) + f.close() except: pass |