pentoo / pentoo-historical

read-only historical backup of pentoo from googlecode
https://code.google.com/p/pentoo/
2 stars 1 forks source link

[livecd] add /etc/hosts file #236

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Xorg is very slow to start
2.
3.

we need a proper "hosts" file so "pentoo" hostname can be resolved.

I simple line as below would do it:
127.0.0.1       pentoo.network    pentoo      localhost

Original issue reported on code.google.com by blshkv on 17 Feb 2014 at 9:07

GoogleCodeExporter commented 8 years ago
ozzie fsscripts # svn diff
Index: fsscript-livecd-stage2.sh
===================================================================
--- fsscript-livecd-stage2.sh   (revision 5900)
+++ fsscript-livecd-stage2.sh   (working copy)
@@ -350,6 +350,8 @@

 #set the hostname properly
 sed -i 's/livecd/pentoo/' /etc/conf.d/hostname
+#set the hostname in /etc/hosts too (bug #236)
+sed -i 's/livecd/pentoo/g' /etc/hosts

 #forcibly remove binary driver files, unmerge isn't good enough it seems
 rm -rf /lib/modules/$(uname -r)/video
ozzie fsscripts # svn commit -m "set hostname in hosts, fix for bug #236"
Sending        fsscript-livecd-stage2.sh
Transmitting file data .
Committed revision 5907.

Original comment by sidhayn on 29 Aug 2014 at 7:31