r1763 - in profiles/LFS/trunk: chapter07 config skeleton/etc

kpfleming at linuxfromscratch.org kpfleming at linuxfromscratch.org
Sat Feb 12 09:20:44 PST 2005


Author: kpfleming
Date: 2005-02-12 10:20:43 -0700 (Sat, 12 Feb 2005)
New Revision: 1763

Added:
   profiles/LFS/trunk/skeleton/etc/hosts
Modified:
   profiles/LFS/trunk/chapter07/hosts.xml
   profiles/LFS/trunk/config/general.ent
Log:
move etc/hosts to skeleton



Modified: profiles/LFS/trunk/chapter07/hosts.xml
===================================================================
--- profiles/LFS/trunk/chapter07/hosts.xml	2005-02-12 17:18:34 UTC (rev 1762)
+++ profiles/LFS/trunk/chapter07/hosts.xml	2005-02-12 17:20:43 UTC (rev 1763)
@@ -7,16 +7,9 @@
 ]>
 <alfs>
   <stage name="Creating the /etc/hosts File">
-    <textdump>
-      <file>/etc/hosts</file>
-      <content>
-	=# Begin /etc/hosts (network card version) 
-	= 
-	=127.0.0.1 localhost 
-	=&IP; &hostname;.&domain; &hostname; 
-	= 
-	=# End /etc/hosts (network card version)
-      </content>
-    </textdump>
+    <copy>
+      <source>&skeleton_dir;/etc/hosts</source>
+      <destination>/etc</destination>
+    </copy>
   </stage>
 </alfs>

Modified: profiles/LFS/trunk/config/general.ent
===================================================================
--- profiles/LFS/trunk/config/general.ent	2005-02-12 17:18:34 UTC (rev 1762)
+++ profiles/LFS/trunk/config/general.ent	2005-02-12 17:20:43 UTC (rev 1763)
@@ -45,17 +45,6 @@
      -->
 <!ENTITY swap_partition "/dev/hda3">
 
-<!-- Name of your machine.
-     This entity is used to create the files /etc/hosts
-     and /etc/sysconfig/network
-     -->
-<!ENTITY hostname "yourhost">
-
-<!-- Domain of your machine. 
-     This entity is used to create the files /etc/hosts
-     -->
-<!ENTITY domain "your.domain">
-
 <!-- Timezone file
      This entity will be used as the target of the link
      /etc/localtime

Added: profiles/LFS/trunk/skeleton/etc/hosts
===================================================================
--- profiles/LFS/trunk/skeleton/etc/hosts	2005-02-12 17:18:34 UTC (rev 1762)
+++ profiles/LFS/trunk/skeleton/etc/hosts	2005-02-12 17:20:43 UTC (rev 1763)
@@ -0,0 +1,6 @@
+# Begin /etc/hosts (network card version) 
+
+127.0.0.1 localhost 
+172.16.1.22 yourhost.your.domain yourhost
+
+# End /etc/hosts (network card version)




More information about the alfs-log mailing list