r1110 - trunk/BOOK/boot/common

chris at linuxfromscratch.org chris at linuxfromscratch.org
Mon Jan 30 11:07:13 PST 2006


Author: chris
Date: 2006-01-30 12:07:11 -0700 (Mon, 30 Jan 2006)
New Revision: 1110

Modified:
   trunk/BOOK/boot/common/changingowner.xml
   trunk/BOOK/boot/common/devices.xml
Log:
Moved note in boot section about running the rest of the book as root to populating LFS/dev since the devices must be created as root.

Modified: trunk/BOOK/boot/common/changingowner.xml
===================================================================
--- trunk/BOOK/boot/common/changingowner.xml	2006-01-30 17:35:31 UTC (rev 1109)
+++ trunk/BOOK/boot/common/changingowner.xml	2006-01-30 19:07:11 UTC (rev 1110)
@@ -10,20 +10,18 @@
 
   <title>Changing Ownership</title>
 
-  <note os="a">
-    <para>From now on, all commands in the rest of the book will be run as the <systemitem class="username">root</systemitem> user.</para>
-  </note>
-
-  <para os="b">Currently, the <filename class="directory">/tools</filename>
+  <para os="a">Currently, the <filename class="directory">/tools</filename>
   directory, <filename class="directory">/cross-tools</filename> directory, and
   <filename class="directory">$LFS</filename> directory are owned
   by the user <systemitem class="username">lfs</systemitem>,
-  a user that exists only on the host system. For security reasons, the $LFS root directory and all of it subdirectories should be owned by <systemitem class="username">root</systemitem>. Change the ownership for $LFS and its subdirectories by running these commands:</para>
+  a user that exists only on the host system. For security reasons, the
+  $LFS root directory and all of it subdirectories should be owned by
+  <systemitem class="username">root</systemitem>. Change the ownership for $LFS and its subdirectories by running these commands:</para>
 
 <screen><userinput>chown root:root ${LFS}
 chown -R root:root $LFS/{bin,boot,dev,etc,home,lib,media,mnt,opt,proc,root,sbin,srv,sys,tmp,usr,var}</userinput></screen>
 
-  <para os="c">The same issue also exists with <filename class="directory">/tools</filename> and <filename class="directory">/cross-tools</filename>. Although these directories can be deleted once the
+  <para os="b">The same issue also exists with <filename class="directory">/tools</filename> and <filename class="directory">/cross-tools</filename>. Although these directories can be deleted once the
   LFS system has been finished, they can be retained to build additional
   LFS systems. If the <filename class="directory">/tools</filename> and <filename class="directory">/cross-tools</filename>
   directories are kept as is, the files are owned by a user ID without a
@@ -32,7 +30,7 @@
   class="directory">/tools</filename> and <filename class="directory">/cross-tools</filename> directories and all the files therein,
   thus exposing these files to possible malicious manipulation.</para>
 
-  <para os="d">To avoid this issue, add the <systemitem
+  <para os="c">To avoid this issue, add the <systemitem
   class="username">lfs</systemitem> user to the new LFS system later when
   creating the <filename>/etc/passwd</filename> file, taking care to assign
   it the same user and group IDs as on the host system. Alternatively,

Modified: trunk/BOOK/boot/common/devices.xml
===================================================================
--- trunk/BOOK/boot/common/devices.xml	2006-01-30 17:35:31 UTC (rev 1109)
+++ trunk/BOOK/boot/common/devices.xml	2006-01-30 19:07:11 UTC (rev 1110)
@@ -17,7 +17,13 @@
   <sect2>
     <title>Creating Initial Device Nodes</title>
 
-    <para os="a">When the kernel boots the system, it requires the presence
+    <note os="a">
+      <para>The commands in the remainder of the book should be run as
+      the<systemitem class="username">root</systemitem> user. Also,
+      double-check that $LFS is set as root.</para>
+    </note>
+
+    <para os="b">When the kernel boots the system, it requires the presence
     of a few device nodes, in particular the <filename
     class="devicefile">console</filename> and <filename
     class="devicefile">null</filename> devices. The device nodes will




More information about the cross-lfs mailing list