diff options
author | Gerard Beekmans <gerard@linuxfromscratch.org> | 2002-05-25 00:19:47 +0000 |
---|---|---|
committer | Gerard Beekmans <gerard@linuxfromscratch.org> | 2002-05-25 00:19:47 +0000 |
commit | 5e2cb652195321c7f63b5d22077e583b75118178 (patch) | |
tree | d64a6d22aa92dfd27bfd0df8a9b973c5068ab16a /chapter06 | |
parent | 1f61f4234c1bb6da0c31e9370d76dc78c975ebba (diff) |
first set of commits for keep-chap5-chap6-seperate
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1896 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06')
-rw-r--r-- | chapter06/bzip2-inst.xml | 2 | ||||
-rw-r--r-- | chapter06/changingowner.xml | 11 | ||||
-rw-r--r-- | chapter06/chapter06.xml | 26 | ||||
-rw-r--r-- | chapter06/chroot.xml | 8 | ||||
-rw-r--r-- | chapter06/chrootcmd.xml | 6 | ||||
-rw-r--r-- | chapter06/glibc-exp.xml | 10 | ||||
-rw-r--r-- | chapter06/glibc-inst.xml | 6 | ||||
-rw-r--r-- | chapter06/grep-inst.xml | 1 | ||||
-rw-r--r-- | chapter06/introduction.xml | 8 | ||||
-rw-r--r-- | chapter06/makedev-inst.xml | 3 | ||||
-rw-r--r-- | chapter06/man-inst.xml | 3 | ||||
-rw-r--r-- | chapter06/man.xml | 1 | ||||
-rw-r--r-- | chapter06/psmisc-inst.xml | 3 |
13 files changed, 43 insertions, 45 deletions
diff --git a/chapter06/bzip2-inst.xml b/chapter06/bzip2-inst.xml index 112b3fa63..8839c3a6d 100644 --- a/chapter06/bzip2-inst.xml +++ b/chapter06/bzip2-inst.xml @@ -5,14 +5,12 @@ <para><screen><userinput>make -f Makefile-libbz2_so && make && -rm /usr/bin/bz* && make PREFIX=/usr install && cp bzip2-shared /bin/bzip2 && ln -s libbz2.so.1.0 libbz2.so && cp -a libbz2.so* /lib && ln -sf ../../lib/libbz2.so /usr/lib&& rm /usr/bin/{bunzip2,bzcat,bzip2} && -rm /bin/{bzless,bzmore} && mv /usr/bin/{bzip2recover,bzless,bzmore} /bin && ln -sf bzip2 /bin/bunzip2 && ln -sf bzip2 /bin/bzcat</userinput></screen></para> diff --git a/chapter06/changingowner.xml b/chapter06/changingowner.xml index ed50198b7..94bac26ec 100644 --- a/chapter06/changingowner.xml +++ b/chapter06/changingowner.xml @@ -6,19 +6,16 @@ all files and directories that were installed in chapter 5 back to root. Run the following commands to do so:</para> -<para><screen><userinput>chown 0:0 / /proc && -chown -R 0:0 /{bin,boot,dev,etc,home,lib,mnt,opt,root,sbin,tmp,usr,var}</userinput></screen></para> +<para><screen><userinput>chown -R 0:0 /</userinput></screen></para> <para>Depending on the filesystem you created on the LFS partition, you may have a /lost+found directory. If so, run:</para> <para><screen><userinput>chown 0:0 /lost+found</userinput></screen></para> -<para>These commands will change the ownership of the root partition and -the <filename>/proc</filename> directory to root, plus everything under -the directories mentioned in the second line. In these commands, 0:0 is -used instead of the usual root:root, because the username root can't be -resolved because glibc is not yet installed.</para> +<para>These commands will change the ownership of the root partition to +root. In these commands, 0:0 is used instead of the usual root:root, because +the username root can't be resolved because glibc is not yet installed.</para> </sect1> diff --git a/chapter06/chapter06.xml b/chapter06/chapter06.xml index 5f0ce67bb..3ab34012e 100644 --- a/chapter06/chapter06.xml +++ b/chapter06/chapter06.xml @@ -4,42 +4,50 @@ &c6-introduction; &c6-aboutdebug; -&c6-bashprofile; &c6-chroot; &c6-changingowner; +&c6-creatingdirs; +&c6-pwdgroup; &c6-mtablink; +&c6-mountproc; +&c6-createfiles; +&c6-kernel; &c6-glibc; &c6-makedev; +&c6-gcc; &c6-manpages; &c6-findutils; &c6-gawk; &c6-ncurses; &c6-vim; -&c6-gcc; &c6-bison; &c6-less; &c6-groff; -&c6-man; +&c6-textutils; +&c6-sed; +&c6-flex; +&c6-binutils; +&c6-fileutils; +&c6-shellutils; +&c6-gettext; +&c6-nettools; &c6-perl; &c6-m4; &c6-texinfo; &c6-autoconf; &c6-automake; &c6-bash; -&c6-flex; &c6-file; &c6-libtool; &c6-bin86; -&c6-binutils; &c6-bzip2; &c6-ed; -&c6-gettext; &c6-kbd; &c6-diffutils; &c6-e2fsprogs; -&c6-fileutils; &c6-grep; &c6-gzip; +&c6-man; &c6-lilo; &c6-make; &c6-modutils; @@ -49,14 +57,10 @@ &c6-procps; &c6-psmisc; &c6-reiserfs; -&c6-sed; -&c6-shellutils; -&c6-nettools; &c6-shadowpwd; &c6-sysklogd; &c6-sysvinit; &c6-tar; -&c6-textutils; &c6-utillinux; &c6-bootscripts; &c6-configure; diff --git a/chapter06/chroot.xml b/chapter06/chroot.xml index 1bf864b03..0c0dfbf95 100644 --- a/chapter06/chroot.xml +++ b/chapter06/chroot.xml @@ -13,10 +13,10 @@ actually /mnt/lfs but the shell doesn't know that).</para> <para><screen>&c6-chrootcmd;</screen></para> <para>The -i option will clear all environment variables for as long as you -are in the chroot'ed environment and only the HOME and TERM variables -are set. The TERM=$TERM construction will set the TERM variable inside -chroot to the same value as outside chroot which is needed for programs -like vim and less to operate properly. If you need other variables +are in the chroot'ed environment and only the HOME, TERM, PS1 and PATH +variables are set. The TERM=$TERM construction will set the TERM variable +inside chroot to the same value as outside chroot which is needed for +programs like vim and less to operate properly. If you need other variables present, such as CFLAGS or CXXFLAGS, you need to set them again.</para> <para>Now that we are inside a chroot'ed environment, we can continue to diff --git a/chapter06/chrootcmd.xml b/chapter06/chrootcmd.xml index 358ef1b40..eefa87e5b 100644 --- a/chapter06/chrootcmd.xml +++ b/chapter06/chrootcmd.xml @@ -1,2 +1,4 @@ -<userinput>chroot $LFS /usr/bin/env -i HOME=/root \ - TERM=$TERM /bin/bash --login</userinput> +<userinput>chroot $LFS /static/bin/env -i HOME=/root TERM=$TERM \ + PS1='\u:\w\$ ' \ + PATH=/bin:/usr/bin:/sbin:/usr/sbin:/static/bin \ + /static/bin/bash --login</userinput> diff --git a/chapter06/glibc-exp.xml b/chapter06/glibc-exp.xml index db8657eff..db07d76ff 100644 --- a/chapter06/glibc-exp.xml +++ b/chapter06/glibc-exp.xml @@ -1,16 +1,6 @@ <sect2> <title>Command explanations</title> -<para><userinput>mknod -m 0666 /dev/null c 1 3:</userinput> Glibc needs a -null device to compile properly. All other devices will be created in the -next section.</para> - -<para><userinput>touch /etc/ld.so.conf</userinput> One of the final steps -of the Glibc installation is running ldconfig to update the dynamic loader -cache. If this file doesn't exist, the installation will abort with an error -that it can't read the file, so we simply create an empty file (the empty file -will have Glibc default to using /lib and /usr/lib which is fine).</para> - <para><userinput>sed 's%\$(PERL)%/usr/bin/perl%' malloc/Makefile.backup > malloc/Makefile:</userinput> This sed command searches through <filename>malloc/Makefile.backup</filename> and diff --git a/chapter06/glibc-inst.xml b/chapter06/glibc-inst.xml index ae8781b8b..7593b56ca 100644 --- a/chapter06/glibc-inst.xml +++ b/chapter06/glibc-inst.xml @@ -22,9 +22,7 @@ is putting your system at very high risk.</para> <para>Install Glibc by running the following commands:</para> -<para><screen><userinput>mknod -m 0666 /dev/null c 1 3 && -touch /etc/ld.so.conf && -cp malloc/Makefile malloc/Makefile.backup && +<para><screen><userinput>cp malloc/Makefile malloc/Makefile.backup && sed 's%\$(PERL)%/usr/bin/perl%' \ malloc/Makefile.backup > malloc/Makefile && cp login/Makefile login/Makefile.backup && @@ -37,7 +35,7 @@ echo "cross-compiling = no" > configparms && make && make install && make localedata/install-locales && -exec /bin/bash --login</userinput></screen></para> +exec /static/bin/bash --login</userinput></screen></para> <para>An alternative to running <userinput>make localedata/install-locales</userinput> is to only install those locales diff --git a/chapter06/grep-inst.xml b/chapter06/grep-inst.xml index 69a616a33..17885b7f5 100644 --- a/chapter06/grep-inst.xml +++ b/chapter06/grep-inst.xml @@ -5,7 +5,6 @@ <para><screen><userinput>./configure --prefix=/usr --bindir=/bin && make && -rm /bin/egrep /bin/fgrep && make install</userinput></screen></para> </sect2> diff --git a/chapter06/introduction.xml b/chapter06/introduction.xml index fc8f68e3b..2a59f604c 100644 --- a/chapter06/introduction.xml +++ b/chapter06/introduction.xml @@ -18,5 +18,13 @@ faster, but may also cause some compilation problems. If you run into problems after having used optimization, always try it without optimizing to see if the problem persists.</para> +<para>Please refrain from installing more than one package at a time, even +if it may safe you time (especially with dual CPU machines). If you install +the wrong package at the wrong time, it may hard-wire program paths to +<filename class="directory">$LFS/static</filename> which will cause the +programs to stop working once the static directory is removed. The order +packages are installed in this chapter have to be followed exactly to be +sure nothing is hard-wiring the static paths.</para> + </sect1> diff --git a/chapter06/makedev-inst.xml b/chapter06/makedev-inst.xml index d5b9c3b2d..6797a057d 100644 --- a/chapter06/makedev-inst.xml +++ b/chapter06/makedev-inst.xml @@ -6,7 +6,8 @@ won't create a directory for you to cd into.</para> <para>Create the device files by running the following commands:</para> -<para><screen><userinput>cp MAKEDEV-&makedev-version; /dev/MAKEDEV && +<para><screen><userinput>rm /dev/null && +cp MAKEDEV-&makedev-version; /dev/MAKEDEV && cd /dev && chmod 754 MAKEDEV</userinput></screen></para> diff --git a/chapter06/man-inst.xml b/chapter06/man-inst.xml index ac945c018..f67465b91 100644 --- a/chapter06/man-inst.xml +++ b/chapter06/man-inst.xml @@ -3,7 +3,8 @@ <para>Run the following commands to install man:</para> -<para><screen><userinput>./configure -default && +<para><screen><userinput>PATH=$PATH:/usr/bin:/bin \ + ./configure -default && make && make install && mv /usr/share/misc/man.conf /etc</userinput></screen></para> diff --git a/chapter06/man.xml b/chapter06/man.xml index c8a1e20ee..7e0edc3fd 100644 --- a/chapter06/man.xml +++ b/chapter06/man.xml @@ -6,6 +6,7 @@ Estimated required disk space: &man-compsize;</screen> &c6-man-inst; +&c6-man-exp; &aa-man-desc; &aa-man-dep; diff --git a/chapter06/psmisc-inst.xml b/chapter06/psmisc-inst.xml index 43dc13e58..32193ace9 100644 --- a/chapter06/psmisc-inst.xml +++ b/chapter06/psmisc-inst.xml @@ -3,8 +3,7 @@ <para>Install Psmisc by running the following commands:</para> -<para><screen><userinput>./configure --prefix=/usr \ - --exec-prefix=/ && +<para><screen><userinput>./configure --prefix=/usr --exec-prefix=/ && make && make install</userinput></screen></para> |