r1947 - in profiles/LFS/branches/cross-lfs: . bootscripts config

thomasp at linuxfromscratch.org thomasp at linuxfromscratch.org
Sat Jul 16 12:32:38 PDT 2005


Author: thomasp
Date: 2005-07-16 13:32:37 -0600 (Sat, 16 Jul 2005)
New Revision: 1947

Added:
   profiles/LFS/branches/cross-lfs/bootscripts/
   profiles/LFS/branches/cross-lfs/bootscripts/bootscripts.xml
   profiles/LFS/branches/cross-lfs/bootscripts/hostname.xml
   profiles/LFS/branches/cross-lfs/bootscripts/hosts.xml
   profiles/LFS/branches/cross-lfs/bootscripts/inputrc.xml
   profiles/LFS/branches/cross-lfs/bootscripts/network.xml
   profiles/LFS/branches/cross-lfs/bootscripts/profile.xml
   profiles/LFS/branches/cross-lfs/bootscripts/setclock.xml
   profiles/LFS/branches/cross-lfs/config/console.xml
Modified:
   profiles/LFS/branches/cross-lfs/LFS.xml
Log:
bootscripts section

Modified: profiles/LFS/branches/cross-lfs/LFS.xml
===================================================================
--- profiles/LFS/branches/cross-lfs/LFS.xml	2005-07-16 19:06:43 UTC (rev 1946)
+++ profiles/LFS/branches/cross-lfs/LFS.xml	2005-07-16 19:32:37 UTC (rev 1947)
@@ -204,6 +204,26 @@
       <xi:include href="final-system/iana-etc.xml" />
       <xi:include href="final-system/grub.xml" />
     </stage>
+    <stage name="Setting Up System Bootscripts">
+      <stageinfo>
+	<root>&LFS;</root>
+	<environment>
+	  <variable name="HOME">/root</variable>
+	  <variable name="TERM">&TERM;</variable>
+	  <variable name="PATH">/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin</variable>
+	  <variable name="CFLAGS" />
+	  <variable name="CXXFLAGS" />
+	</environment>
+      </stageinfo>
+      <xi:include href="bootscripts/bootscripts.xml" />
+      <xi:include href="bootscripts/setclock.xml" />
+      <xi:include href="config/console.xml" />
+      <xi:include href="bootscripts/inputrc.xml" />
+      <xi:include href="bootscripts/profile.xml" />
+      <xi:include href="bootscripts/hostname.xml" />
+      <xi:include href="bootscripts/hosts.xml" />
+      <xi:include href="bootscripts/network.xml" />
+    </stage>
   </stage>
 </alfs>
 

Copied: profiles/LFS/branches/cross-lfs/bootscripts/bootscripts.xml (from rev 1946, profiles/LFS/trunk/chapter07/bootscripts.xml)
===================================================================
--- profiles/LFS/trunk/chapter07/bootscripts.xml	2005-07-16 19:06:43 UTC (rev 1946)
+++ profiles/LFS/branches/cross-lfs/bootscripts/bootscripts.xml	2005-07-16 19:32:37 UTC (rev 1947)
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % package_entities SYSTEM "../config/package.ent">
+<!ENTITY % config_entities SYSTEM "../config/config.ent">
+
+%general_entities;
+%package_entities;
+%config_entities;
+]>
+<alfs>
+  <package name="bootscripts" version="&lfs-bootscripts-version;">
+    <stage name="Unpacking">
+      <unpack>
+        <digest>&lfs-bootscripts-md5;</digest>
+        <archive>&packages_dir;/&lfs-bootscripts-package;</archive>
+        <destination>&build_dir;</destination>
+      </unpack>
+    </stage>
+    <stage name="Installing">
+      <stageinfo>
+        <base>&build_dir;/&lfs-bootscripts-directory;</base>
+      </stageinfo>
+      <make>
+        <param>install</param>
+      </make>
+    </stage>
+    <stage name="Cleanup">
+      <remove>&build_dir;/&lfs-bootscripts-directory;</remove>
+    </stage>
+  </package>
+</alfs>

Copied: profiles/LFS/branches/cross-lfs/bootscripts/hostname.xml (from rev 1946, profiles/LFS/trunk/chapter07/hostname.xml)
===================================================================
--- profiles/LFS/trunk/chapter07/hostname.xml	2005-07-16 19:06:43 UTC (rev 1946)
+++ profiles/LFS/branches/cross-lfs/bootscripts/hostname.xml	2005-07-16 19:32:37 UTC (rev 1947)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % config_entities SYSTEM "../config/config.ent">
+
+%general_entities;
+%config_entities;
+]>
+<alfs>
+  <stage name="Configuring the localnet Script">
+    <copy>
+      <source>&skeleton_dir;/etc/sysconfig/network</source>
+      <destination>/etc/sysconfig</destination>
+    </copy>
+  </stage>
+</alfs>

Copied: profiles/LFS/branches/cross-lfs/bootscripts/hosts.xml (from rev 1946, profiles/LFS/trunk/chapter07/hosts.xml)
===================================================================
--- profiles/LFS/trunk/chapter07/hosts.xml	2005-07-16 19:06:43 UTC (rev 1946)
+++ profiles/LFS/branches/cross-lfs/bootscripts/hosts.xml	2005-07-16 19:32:37 UTC (rev 1947)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % config_entities SYSTEM "../config/config.ent">
+
+%general_entities;
+%config_entities;
+]>
+<alfs>
+  <stage name="Creating the /etc/hosts File">
+    <copy>
+      <source>&skeleton_dir;/etc/hosts</source>
+      <destination>/etc</destination>
+    </copy>
+  </stage>
+</alfs>

Copied: profiles/LFS/branches/cross-lfs/bootscripts/inputrc.xml (from rev 1946, profiles/LFS/trunk/chapter07/inputrc.xml)
===================================================================
--- profiles/LFS/trunk/chapter07/inputrc.xml	2005-07-16 19:06:43 UTC (rev 1946)
+++ profiles/LFS/branches/cross-lfs/bootscripts/inputrc.xml	2005-07-16 19:32:37 UTC (rev 1947)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % config_entities SYSTEM "../config/config.ent">
+
+%general_entities;
+%config_entities;
+]>
+<alfs>
+  <stage name="Creating the /etc/inputrc File">
+    <copy>
+      <source>&skeleton_dir;/etc/inputrc</source>
+      <destination>/etc</destination>
+    </copy>
+  </stage>
+</alfs>

Copied: profiles/LFS/branches/cross-lfs/bootscripts/network.xml (from rev 1946, profiles/LFS/trunk/chapter07/network.xml)
===================================================================
--- profiles/LFS/trunk/chapter07/network.xml	2005-07-16 19:06:43 UTC (rev 1946)
+++ profiles/LFS/branches/cross-lfs/bootscripts/network.xml	2005-07-16 19:32:37 UTC (rev 1947)
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % config_entities SYSTEM "../config/config.ent">
+
+%general_entities;
+%config_entities;
+]>
+<alfs>
+  <stage name="Configuring the network Script">
+    <mkdir>
+      <option>parents</option>
+      <name>/etc/sysconfig/network-devices/ifconfig.eth0</name>
+    </mkdir>
+    <copy>
+      <source>&skeleton_dir;/etc/sysconfig/network-devices/ifconfig.eth0/ipv4</source>
+      <destination>/etc/sysconfig/network-devices/ifconfig.eth0</destination>
+    </copy>
+    <copy>
+      <source>&skeleton_dir;/etc/resolv.conf</source>
+      <destination>/etc</destination>
+    </copy>
+  </stage>
+</alfs>

Copied: profiles/LFS/branches/cross-lfs/bootscripts/profile.xml (from rev 1946, profiles/LFS/trunk/chapter07/profile.xml)
===================================================================
--- profiles/LFS/trunk/chapter07/profile.xml	2005-07-16 19:06:43 UTC (rev 1946)
+++ profiles/LFS/branches/cross-lfs/bootscripts/profile.xml	2005-07-16 19:32:37 UTC (rev 1947)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % config_entities SYSTEM "../config/config.ent">
+
+%general_entities;
+%config_entities;
+]>
+<alfs>
+  <stage name="The Bash Shell Startup Files">
+    <copy>
+      <source>&skeleton_dir;/etc/profile</source>
+      <destination>/etc</destination>
+    </copy>
+  </stage>
+</alfs>

Copied: profiles/LFS/branches/cross-lfs/bootscripts/setclock.xml (from rev 1946, profiles/LFS/trunk/chapter07/setclock.xml)
===================================================================
--- profiles/LFS/trunk/chapter07/setclock.xml	2005-07-16 19:06:43 UTC (rev 1946)
+++ profiles/LFS/branches/cross-lfs/bootscripts/setclock.xml	2005-07-16 19:32:37 UTC (rev 1947)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % config_entities SYSTEM "../config/config.ent">
+
+%general_entities;
+%config_entities;
+]>
+<alfs>
+  <stage name="Configuring the setclock Script">
+    <copy>
+      <source>&skeleton_dir;/etc/sysconfig/clock</source>
+      <destination>/etc/sysconfig</destination>
+    </copy>
+  </stage>
+</alfs>

Copied: profiles/LFS/branches/cross-lfs/config/console.xml (from rev 1946, profiles/LFS/trunk/config/console.xml)
===================================================================
--- profiles/LFS/trunk/config/console.xml	2005-07-16 19:06:43 UTC (rev 1946)
+++ profiles/LFS/branches/cross-lfs/config/console.xml	2005-07-16 19:32:37 UTC (rev 1947)
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd"
+[
+<!ENTITY % general_entities SYSTEM "../config/general.ent">
+<!ENTITY % config_entities SYSTEM "../config/config.ent">
+
+%general_entities;
+%config_entities;
+]>
+<alfs>
+  <stage name="Configuring the Linux Console">
+    <!--
+      The console script uses the /etc/sysconfig/console as a configuration file. You need to decide which keymap
+      and screen font you will use. The language-specific HOWTO can help you. In the future releases of
+      LFS-Bootscripts, there will be a pre-made /etc/sysconfig/console file with known good settings for several
+      countries, and you will just have to uncomment the relevant section. If still in doubt, look into /usr/share/kbd
+      for valid keymaps and screen fonts. Then read the loadkeys and setfont manual pages and figure out the correct
+      arguments for these programs. Once you decided, create the configuration file with the following commands
+    -->
+    <!--
+    <mkdir>
+      <option>parents</option>
+      <name>/etc/sysconfig</name>
+    </mkdir>
+    <copy>
+      <source>&skeleton_dir;/etc/sysconfig/console</source>
+      <destination>/etc/sysconfig</destination>
+    </copy>
+    -->
+    <!--
+      In some keymaps, the Backspace and Delete keys send characters different from ones in the default keymap
+      built into the kernel. This confuses some applications, e.g. Emacs displays its help (instead of erasing the
+      character before the cursor) when you press Backspace. To check if your keymap is affected (this works only for
+      i386 keymaps)
+    -->
+    <!--
+    <mkdir>
+      <option>parents</option>
+      <name>/etc/kbd</name>
+    </mkdir>
+    <copy>
+      <source>&skeleton_dir;/etc/kbd/bs-sends-del</source>
+      <destination>/etc/kbd</destination>
+    </copy>
+    <textdump mode="append">
+      <file>/etc/sysconfig/console</file>
+      <content>
+      =KEYMAP_CORRECTION="/etc/kbd/bs-sends-del"
+      </content>
+    </textdump>
+    -->
+  </stage>
+</alfs>




More information about the alfs-log mailing list