cvs commit: LFS/BOOK/chapter06 chroot.xml creatingdirs.xml kernel-exp.xml mountproc.xml

markh at markh at
Sat May 25 18:07:46 PDT 2002

markh       02/05/25 18:07:46

  Modified:    BOOK/chapter01 changelog.xml
               BOOK/chapter06 chroot.xml creatingdirs.xml kernel-exp.xml
  some fixes related to  removal from ch6
  Revision  Changes    Path
  1.289     +4 -0      LFS/BOOK/chapter01/changelog.xml
  Index: changelog.xml
  RCS file: /home/cvsroot/LFS/BOOK/chapter01/changelog.xml,v
  retrieving revision 1.288
  retrieving revision 1.289
  diff -u -r1.288 -r1.289
  --- changelog.xml	25 May 2002 00:19:46 -0000	1.288
  +++ changelog.xml	26 May 2002 01:07:46 -0000	1.289
  @@ -27,6 +27,10 @@
  +<listitem><para>May 25th, 2002 [markh]: Chapter 6 - Some minor
  +corrections dealing with removing the $LFS variable where it isn't
   <listitem><para>May 23rd, 2002 [gerard]: Implemented the
   keep_chap5_and_chap6_sep lfs-hint. Highlights of the change: added
   findutils and util-linux to chapter 5, installed everything from chapter 5
  1.23      +2 -2      LFS/BOOK/chapter06/chroot.xml
  Index: chroot.xml
  RCS file: /home/cvsroot/LFS/BOOK/chapter06/chroot.xml,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- chroot.xml	25 May 2002 00:19:47 -0000	1.22
  +++ chroot.xml	26 May 2002 01:07:46 -0000	1.23
  @@ -23,8 +23,8 @@
   install all the basic system software. You have to make sure all the
   following commands in this and following chapters are run from within the 
   chroot'ed environment. If you ever leave this environment for any reason
  -(when rebooting for example) please remember to mount $LFS/proc 
  -again and re-enter chroot before continuing with the
  +(when rebooting for example) you must remember to enter chroot and mount 
  +$LFS/proc again (as will be discussed later) before continuing with the
   <para>Note that the bash prompt will contain "I have no name!" This is
  1.2       +2 -2      LFS/BOOK/chapter06/creatingdirs.xml
  Index: creatingdirs.xml
  RCS file: /home/cvsroot/LFS/BOOK/chapter06/creatingdirs.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- creatingdirs.xml	25 May 2002 00:21:12 -0000	1.1
  +++ creatingdirs.xml	26 May 2002 01:07:46 -0000	1.2
  @@ -25,14 +25,14 @@
   <para>Normally, directories are created with permission mode 755, which isn't
   desired for all directories. The first change is a mode 0750 for the 
  -$LFS/root directory. This is to make sure that not just everybody can 
  +/root directory. This is to make sure that not just everybody can 
   enter the /root directory (the same a user would do with /home/username 
   directories). The second change is a mode 1777 for the tmp 
   directories. This way, any user can write data to the /tmp or /var/tmp 
   directory but cannot remove another user's files (the latter is caused 
   by the so-called "sticky bit" - bit 1 of the 1777 bit mask).</para>
  -<para><screen><userinput>cd $LFS &&
  +<para><screen><userinput>cd / &&
   chmod 0750 root &&
   chmod 1777 tmp var/tmp</userinput></screen></para>
  1.2       +6 -6      LFS/BOOK/chapter06/kernel-exp.xml
  Index: kernel-exp.xml
  RCS file: /home/cvsroot/LFS/BOOK/chapter06/kernel-exp.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- kernel-exp.xml	25 May 2002 00:21:12 -0000	1.1
  +++ kernel-exp.xml	26 May 2002 01:07:46 -0000	1.2
  @@ -17,16 +17,16 @@
   <filename>include/linux/version.h</filename>, as well as the <filename
   class="symlink">include/asm</filename> symlink.</para>
  -<para><userinput>mkdir $LFS/usr/include/asm</userinput>
  -and <userinput>cp include/asm/* $LFS/usr/include/asm</userinput>:
  +<para><userinput>mkdir /usr/include/asm</userinput>
  +and <userinput>cp include/asm/* /usr/include/asm</userinput>:
   This copies the platform-specific assembler kernel header files to
  -<para><userinput>cp -R include/linux $LFS/usr/include</userinput>:
  +<para><userinput>cp -R include/linux /usr/include</userinput>:
   This command copies the cross-platform kernel header files to
  -<para><userinput>touch $LFS/usr/include/linux/autoconf.h</userinput>: Some
  +<para><userinput>touch /usr/include/linux/autoconf.h</userinput>: Some
   kernel header files include this <filename>autoconf.h</filename> file, but
   outside the Linux source tree, that file has no meaning so we just create
   an empty one so we don't get compile errors whenever it happens to be a
  1.2       +2 -7      LFS/BOOK/chapter06/mountproc.xml
  Index: mountproc.xml
  RCS file: /home/cvsroot/LFS/BOOK/chapter06/mountproc.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- mountproc.xml	25 May 2002 00:21:12 -0000	1.1
  +++ mountproc.xml	26 May 2002 01:07:46 -0000	1.2
  @@ -7,14 +7,9 @@
   as well. It's not a problem to mount the proc file system (or any other
   file system for that matter) twice or even more than that.</para>
  -<para>If you're still logged in as user "lfs", you should log out and log
  -in again as user root. The reason for this is simple: only root is allowed
  -to mount filesystems and to run chroot.</para>
   <para>The proc file system is mounted under $LFS/proc by running the
  -following command. We'll also chown it to user root/group root while we're
  -at it (the rest of the filesystem is chown'ed to root:root in a minute when
  -we start with chapter 6).</para>
  +following command.  Note that we don't use the $LFS variable because we
  +are now in chroot.</para>
   <para><screen><userinput>mount proc /proc -t proc</userinput></screen></para>
Unsubscribe: send email to listar at
and put 'unsubscribe lfs-book' in the subject header of the message

More information about the lfs-book mailing list