- Timestamp:
- 05/26/2002 01:07:46 AM (22 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, v4_0, v4_1, v5_0, v5_1, v5_1_1, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- a358a47
- Parents:
- cb4481b
- Location:
- chapter06
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/chroot.xml
rcb4481b r24bb7622 24 24 following commands in this and following chapters are run from within the 25 25 chroot'ed environment. If you ever leave this environment for any reason 26 (when rebooting for example) please remember to mount $LFS/proc27 again and re-enter chrootbefore continuing with the26 (when rebooting for example) you must remember to enter chroot and mount 27 $LFS/proc again (as will be discussed later) before continuing with the 28 28 book.</para> 29 29 -
chapter06/creatingdirs.xml
rcb4481b r24bb7622 26 26 <para>Normally, directories are created with permission mode 755, which isn't 27 27 desired for all directories. The first change is a mode 0750 for the 28 $LFS/root directory. This is to make sure that not just everybody can28 /root directory. This is to make sure that not just everybody can 29 29 enter the /root directory (the same a user would do with /home/username 30 30 directories). The second change is a mode 1777 for the tmp … … 33 33 by the so-called "sticky bit" - bit 1 of the 1777 bit mask).</para> 34 34 35 <para><screen><userinput>cd $LFS&&35 <para><screen><userinput>cd / && 36 36 chmod 0750 root && 37 37 chmod 1777 tmp var/tmp</userinput></screen></para> -
chapter06/kernel-exp.xml
rcb4481b r24bb7622 18 18 class="symlink">include/asm</filename> symlink.</para> 19 19 20 <para><userinput>mkdir $LFS/usr/include/asm</userinput>21 and <userinput>cp include/asm/* $LFS/usr/include/asm</userinput>:20 <para><userinput>mkdir /usr/include/asm</userinput> 21 and <userinput>cp include/asm/* /usr/include/asm</userinput>: 22 22 This copies the platform-specific assembler kernel header files to 23 <filename> $LFS/usr/include/asm</filename></para>23 <filename>/usr/include/asm</filename></para> 24 24 25 <para><userinput>cp -R include/linux $LFS/usr/include</userinput>:25 <para><userinput>cp -R include/linux /usr/include</userinput>: 26 26 This command copies the cross-platform kernel header files to 27 <filename> $LFS/usr/include</filename></para>27 <filename>/usr/include</filename></para> 28 28 29 <para><userinput>touch $LFS/usr/include/linux/autoconf.h</userinput>: Some29 <para><userinput>touch /usr/include/linux/autoconf.h</userinput>: Some 30 30 kernel header files include this <filename>autoconf.h</filename> file, but 31 31 outside the Linux source tree, that file has no meaning so we just create -
chapter06/mountproc.xml
rcb4481b r24bb7622 8 8 file system for that matter) twice or even more than that.</para> 9 9 10 <para>If you're still logged in as user "lfs", you should log out and log11 in again as user root. The reason for this is simple: only root is allowed12 to mount filesystems and to run chroot.</para>13 14 10 <para>The proc file system is mounted under $LFS/proc by running the 15 following command. We'll also chown it to user root/group root while we're 16 at it (the rest of the filesystem is chown'ed to root:root in a minute when 17 we start with chapter 6).</para> 11 following command. Note that we don't use the $LFS variable because we 12 are now in chroot.</para> 18 13 19 14 <para><screen><userinput>mount proc /proc -t proc</userinput></screen></para>
Note:
See TracChangeset
for help on using the changeset viewer.