Changeset 45714a7
- Timestamp:
- 08/23/2001 10:38:49 PM (23 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, 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, v3_0, v3_1, v3_2, v3_3, 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/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 05e6036
- Parents:
- b58a7eb
- Files:
-
- 40 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/bash-exp.xml
rb58a7eb r45714a7 17 17 execute the boot scripts without a shell for instance).</para> 18 18 19 <para><userinput>ln -s bash sh:</userinput> This command creates the sh19 <para><userinput>ln -sf bash sh:</userinput> This command creates the sh 20 20 symlink that points to bash. Most scripts run themselves via 'sh' 21 21 (invoked by the #!/bin/sh as the first line in the scripts) which -
chapter05/bash-inst.xml
rb58a7eb r45714a7 9 9 <userinput>make install &&</userinput> 10 10 <userinput>cd $LFS/bin &&</userinput> 11 <userinput>ln -s bash sh</userinput></screen></para>11 <userinput>ln -sf bash sh</userinput></screen></para> 12 12 13 13 <para>If the make install phase ends with something along the lines of</para> … … 29 29 chapter 6, so you can ignore it. You do, however, have to run the last 30 30 two commands manually (the <userinput>cd $LFS/bin</userinput> and 31 <userinput>ln -s bash sh</userinput> commands) because they won't be31 <userinput>ln -sf bash sh</userinput> commands) because they won't be 32 32 executed when the error occurs.</para> 33 33 -
chapter05/bzip2-exp.xml
rb58a7eb r45714a7 1 1 <sect2> 2 2 <title>Command explanations</title> 3 4 <!--5 <para><userinput>sed: </userinput> The sed command here searches for the6 string "$(CC) $(CFLAGS) -o" and replaces it by "$(CC) $(CFLAGS)7 $(LDFLAGS) -o" in the Makefile file. We make that modification so it8 will be easier to link bzip2 statically.</para>9 10 <para><userinput>...Makefile | make -f -:</userinput> Makefile11 is the last parameter of the sed command which indicates the file to12 search and replace in. Sed normally sends the modified file to stdout13 (standard output), which will be the console. With the construction we14 use, sed's output will be piped to the make program. Normally, when make15 is started, it tries to find a number of files like Makefile. But we have16 modified the Makefile file so we don't want make to use it. The "-f -"17 parameter tells make to read it's input from another file, or from stdin18 (standard input) which the dash (-) implies. This is one way to do it.19 Another way would be to have sed write the output to a different file20 and tell make with the -f parameter to read that alternate file.</para>21 22 <para><userinput>LDFLAGS=-static:</userinput> This is the second way we use to23 link a package statically. This is also the most common way.24 The -all-static value is only used with the binutils package and won't25 be used throughout the rest of this book.</para>26 27 I HAVEN'T REMOVED THIS AS WE MAY NEED TO COPY SOME OF IT TO A LATER28 PACKAGE. IS THIS THE CASE?29 30 -->31 3 32 4 <para><userinput>make CC="gcc -static": </userinput>This is the method -
chapter05/bzip2-inst.xml
rb58a7eb r45714a7 7 7 <userinput>make PREFIX=$LFS/usr install &&</userinput> 8 8 <userinput>cd $LFS/usr/bin &&</userinput> 9 <userinput>mv bzcat bunzip2 bzip2 bzip2recover $LFS/bin</userinput></screen></para>9 <userinput>mv -f bzcat bunzip2 bzip2 bzip2recover $LFS/bin</userinput></screen></para> 10 10 11 11 </sect2> -
chapter05/fileutils-exp.xml
rb58a7eb r45714a7 3 3 4 4 <para><screen><userinput>sed 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \</userinput> 5 <userinput> 5 <userinput> lib/Makefile.in > tmp &&</userinput> 6 6 <userinput>sed 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \</userinput> 7 <userinput> tmp > lib/Makefile.in : </userinput></screen> This is used8 to fix a problem with building fileutils statically on glibc 2.2.3 systems. If 9 this isn't done, then there is the possibility of all of the fileutils 10 programs causing segmentation faults once chroot is entered in chapter 11 6.</para>7 <userinput> tmp > lib/Makefile.in : </userinput></screen> This 8 is used to fix a problem with building fileutils statically on glibc 2.2.3 9 systems. If this isn't done, then there is the possibility of all of the 10 fileutils programs causing segmentation faults once chroot is entered 11 in chapter 6.</para> 12 12 13 13 <para><userinput>--libexecdir=$LFS/bin:</userinput> This configure option will -
chapter05/fileutils-inst.xml
rb58a7eb r45714a7 8 8 9 9 <screen><userinput>sed 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \</userinput> 10 <userinput> 10 <userinput> lib/Makefile.in > tmp &&</userinput> 11 11 <userinput>sed 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \</userinput> 12 <userinput> 12 <userinput> tmp > lib/Makefile.in</userinput></screen></para> 13 13 14 14 <para>Install fileutils by running the following commands: … … 18 18 <userinput>make install &&</userinput> 19 19 <userinput>cd $LFS/usr/bin &&</userinput> 20 <userinput>ln -s ../../bin/install</userinput></screen></para>20 <userinput>ln -sf ../../bin/install</userinput></screen></para> 21 21 22 22 <para>Once you have installed fileutils, you can test whether the -
chapter05/gcc-exp.xml
rb58a7eb r45714a7 17 17 the --enable-languages parameter can be omitted.</para> 18 18 19 <para><userinput>ln -s ../usr/bin/cpp:</userinput> This19 <para><userinput>ln -sf ../usr/bin/cpp:</userinput> This 20 20 creates the $LFS/lib/cpp symlink. Some packages explicitly try to find 21 21 cpp in /lib.</para> 22 22 23 <para><userinput>ln -s ../bin/cpp:</userinput> This23 <para><userinput>ln -sf ../bin/cpp:</userinput> This 24 24 creates the $LFS/usr/lib/cpp symlink as there are packages that expect 25 25 cpp to be in /usr/lib.</para> -
chapter05/gcc-inst.xml
rb58a7eb r45714a7 13 13 <userinput>make prefix=$LFS/usr install &&</userinput> 14 14 <userinput>cd $LFS/lib &&</userinput> 15 <userinput>ln -s ../usr/bin/cpp &&</userinput>15 <userinput>ln -sf ../usr/bin/cpp &&</userinput> 16 16 <userinput>cd $LFS/usr/lib &&</userinput> 17 <userinput>ln -s ../bin/cpp &&</userinput>17 <userinput>ln -sf ../bin/cpp &&</userinput> 18 18 <userinput>cd $LFS/usr/bin &&</userinput> 19 <userinput>ln -s gcc cc</userinput></screen></para>19 <userinput>ln -sf gcc cc</userinput></screen></para> 20 20 21 21 </sect2> -
chapter05/gzip-inst.xml
rb58a7eb r45714a7 9 9 <userinput>make LDFLAGS=-static &&</userinput> 10 10 <userinput>make install &&</userinput> 11 <userinput>cp $LFS/usr/bin/gunzip $LFS/usr/bin/gzip $LFS/bin &&</userinput>12 <userinput>rm $LFS/usr/bin/gunzip $LFS/usr/bin/gzip</userinput></screen></para>11 <userinput>cp -f $LFS/usr/bin/gunzip $LFS/usr/bin/gzip $LFS/bin &&</userinput> 12 <userinput>rm -f $LFS/usr/bin/gunzip $LFS/usr/bin/gzip</userinput></screen></para> 13 13 14 14 </sect2> -
chapter05/kernel-exp.xml
rb58a7eb r45714a7 21 21 needing later on.</para> 22 22 23 <para><userinput>cp -a ../src/linux/include/linux .</userinput> and24 <userinput>mkdir asm && cp -a ../src/linux/include/asm/* .</userinput>:23 <para><userinput>cp -af ../src/linux/include/linux .</userinput> and 24 <userinput>mkdir asm && cp -af ../src/linux/include/asm/* .</userinput>: 25 25 These commands copy the kernel headers in the 26 26 <filename>$LFS/usr/include</filename> directory.</para> 27 27 28 <para><userinput>chown root.root $LFS/usr/include/linux -R</userinput> and29 <userinput>chown root.root $LFS/usr/include/asm -R</userinput>:28 <para><userinput>chown -R root.root $LFS/usr/include/linux</userinput> and 29 <userinput>chown -R root.root $LFS/usr/include/asm</userinput>: 30 30 These commands change the ownership of the 31 31 <filename>$LFS/usr/include/linux</filename> and the -
chapter05/kernel-inst.xml
rb58a7eb r45714a7 15 15 <userinput>make dep &&</userinput> 16 16 <userinput>cd $LFS/usr/include &&</userinput> 17 <userinput>cp -a ../src/linux/include/linux . &&</userinput>17 <userinput>cp -af ../src/linux/include/linux . &&</userinput> 18 18 <userinput>chown -R root.root $LFS/usr/include/linux &&</userinput> 19 19 <userinput>mkdir asm &&</userinput> 20 <userinput>cp -a ../src/linux/include/asm/* asm &&</userinput>20 <userinput>cp -af ../src/linux/include/asm/* asm &&</userinput> 21 21 <userinput>chown -R root.root $LFS/usr/include/asm</userinput></screen></para> 22 22 -
chapter05/oldnsslib.xml
rb58a7eb r45714a7 14 14 distribution, copy the NSS library files by running:</para> 15 15 16 <para><screen><userinput>cp -a v /lib/libnss* $LFS/lib</userinput></screen></para>16 <para><screen><userinput>cp -afv /lib/libnss* $LFS/lib</userinput></screen></para> 17 17 18 18 </sect1> -
chapter05/shellutils-inst.xml
rb58a7eb r45714a7 10 10 <userinput>make install &&</userinput> 11 11 <userinput>cd $LFS/usr/bin &&</userinput> 12 <userinput>mv date echo false pwd stty $LFS/bin &&</userinput>13 <userinput>mv su true uname hostname $LFS/bin</userinput></screen></para>12 <userinput>mv -f date echo false pwd stty $LFS/bin &&</userinput> 13 <userinput>mv -f su true uname hostname $LFS/bin</userinput></screen></para> 14 14 15 15 </sect2> -
chapter05/textutils-inst.xml
rb58a7eb r45714a7 7 7 <userinput>make LDFLAGS=-static &&</userinput> 8 8 <userinput>make install &&</userinput> 9 <userinput>mv $LFS/usr/bin/cat $LFS/bin</userinput></screen></para>9 <userinput>mv -f $LFS/usr/bin/cat $LFS/bin</userinput></screen></para> 10 10 11 11 </sect2> -
chapter06/bash-inst.xml
rb58a7eb r45714a7 8 8 <userinput>make install &&</userinput> 9 9 <userinput>logout</userinput> 10 <userinput>mv $LFS/usr/bin/bash $LFS/usr/bin/bashbug $LFS/bin &&</userinput>10 <userinput>mv -f $LFS/usr/bin/bash $LFS/usr/bin/bashbug $LFS/bin &&</userinput> 11 11 &c6-chrootcmd;</screen></para> 12 12 -
chapter06/bzip2-inst.xml
rb58a7eb r45714a7 6 6 <para><screen><userinput>make -f Makefile-libbz2_so &&</userinput> 7 7 <userinput>make bzip2recover libbz2.a &&</userinput> 8 <userinput>cp bzip2-shared /bin/bzip2 &&</userinput>9 <userinput>cp bzip2recover /bin &&</userinput>10 <userinput>cp bzip2.1 /usr/share/man/man1 &&</userinput>11 <userinput>cp bzlib.h /usr/include &&</userinput>12 <userinput>cp -a libbz2.so* libbz2.a /lib &&</userinput>13 <userinput>rm /usr/lib/libbz2.a &&</userinput>8 <userinput>cp -f bzip2-shared /bin/bzip2 &&</userinput> 9 <userinput>cp -f bzip2recover /bin &&</userinput> 10 <userinput>cp -f bzip2.1 /usr/share/man/man1 &&</userinput> 11 <userinput>cp -f bzlib.h /usr/include &&</userinput> 12 <userinput>cp -af libbz2.so* libbz2.a /lib &&</userinput> 13 <userinput>rm -f /usr/lib/libbz2.a &&</userinput> 14 14 <userinput>cd /bin &&</userinput> 15 15 <userinput>ln -sf bzip2 bunzip2 &&</userinput> 16 16 <userinput>ln -sf bzip2 bzcat &&</userinput> 17 17 <userinput>cd /usr/share/man/man1 &&</userinput> 18 <userinput>ln -s bzip2.1 bunzip2.1 &&</userinput>19 <userinput>ln -s bzip2.1 bzcat.1 &&</userinput>20 <userinput>ln -s bzip2.1 bzip2recover.1</userinput></screen></para>18 <userinput>ln -sf bzip2.1 bunzip2.1 &&</userinput> 19 <userinput>ln -sf bzip2.1 bzcat.1 &&</userinput> 20 <userinput>ln -sf bzip2.1 bzip2recover.1</userinput></screen></para> 21 21 22 22 <para>Although it's not strictly a part of a basic LFS system it's worth -
chapter06/e2fsprogs-inst.xml
rb58a7eb r45714a7 12 12 <userinput>make install &&</userinput> 13 13 <userinput>make install-libs &&</userinput> 14 <userinput>mv /usr/sbin/mklost+found /sbin</userinput></screen></para>14 <userinput>mv -f /usr/sbin/mklost+found /sbin</userinput></screen></para> 15 15 16 16 </sect2> -
chapter06/ed-inst.xml
rb58a7eb r45714a7 12 12 <userinput>make &&</userinput> 13 13 <userinput>make install &&</userinput> 14 <userinput>mv /usr/bin/ed /usr/bin/red /bin</userinput></screen></para>14 <userinput>mv -f /usr/bin/ed /usr/bin/red /bin</userinput></screen></para> 15 15 16 16 </sect2> -
chapter06/flex-inst.xml
rb58a7eb r45714a7 8 8 <userinput>make install &&</userinput> 9 9 <userinput>cd /usr/bin &&</userinput> 10 <userinput>ln -s flex lex</userinput></screen></para>10 <userinput>ln -sf flex lex</userinput></screen></para> 11 11 12 12 </sect2> -
chapter06/glibc-exp.xml
rb58a7eb r45714a7 22 22 Glibc.</para> 23 23 24 <para><userinput>mv tmp~ ../glibc-&glibc-version;/malloc/Makefile:</userinput> The file24 <para><userinput>mv -f tmp~ ../glibc-&glibc-version;/malloc/Makefile:</userinput> The file 25 25 <filename>tmp~</filename> is now moved back to 26 26 <filename>../glibc-&glibc-version;/malloc/Makefile</filename>. We do this because … … 36 36 root with the id 0. </para> 37 37 38 <para><userinput>mv tmp~ ../glibc-&glibc-version;/login/Makefile:</userinput> Asabove, we are using a temporary file (<filename>tmp~</filename>) to store the38 <para><userinput>mv -f tmp~ ../glibc-&glibc-version;/login/Makefile:</userinput> Asabove, we are using a temporary file (<filename>tmp~</filename>) to store the 39 39 edited Makefile and then copying it back over the original.</para> 40 40 … … 53 53 hasn't been installed yet.</para> 54 54 55 <para><userinput>mv config.make~ config.make:</userinput> Again, we are moving55 <para><userinput>mv -f config.make~ config.make:</userinput> Again, we are moving 56 56 the temporary file over the original.</para> 57 57 -
chapter06/glibc-inst.xml
rb58a7eb r45714a7 15 15 <userinput>sed 's|$(PERL)|/usr/bin/perl|' \</userinput> 16 16 <userinput> ../glibc-&glibc-version;/malloc/Makefile > tmp~ &&</userinput> 17 <userinput>mv tmp~ ../glibc-&glibc-version;/malloc/Makefile &&</userinput>17 <userinput>mv -f tmp~ ../glibc-&glibc-version;/malloc/Makefile &&</userinput> 18 18 <userinput>sed 's/root/0/' ../glibc-&glibc-version;/login/Makefile > tmp~ &&</userinput> 19 <userinput>mv tmp~ ../glibc-&glibc-version;/login/Makefile &&</userinput>19 <userinput>mv -f tmp~ ../glibc-&glibc-version;/login/Makefile &&</userinput> 20 20 <userinput>../glibc-&glibc-version;/configure \</userinput> 21 21 <userinput> --prefix=/usr --enable-add-ons \</userinput> … … 23 23 <userinput>sed 's/cross-compiling = yes/cross-compiling = no/' \</userinput> 24 24 <userinput> config.make > config.make~ &&</userinput> 25 <userinput>mv config.make~ config.make &&</userinput>25 <userinput>mv -f config.make~ config.make &&</userinput> 26 26 <userinput>make &&</userinput> 27 27 <userinput>make install &&</userinput> -
chapter06/gzip-inst.xml
rb58a7eb r45714a7 8 8 <userinput>make install &&</userinput> 9 9 <userinput>cd /usr/bin &&</userinput> 10 <userinput>mv gzip /bin &&</userinput>11 <userinput>rm gunzip zcat &&</userinput>10 <userinput>mv -f gzip /bin &&</userinput> 11 <userinput>rm -f gunzip zcat &&</userinput> 12 12 <userinput>cd /bin &&</userinput> 13 13 <userinput>ln -sf gzip gunzip &&</userinput> 14 <userinput>ln -s gzip zcat &&</userinput>15 <userinput>ln -s gzip compress &&</userinput>16 <userinput>ln -s gunzip uncompress</userinput></screen></para>14 <userinput>ln -sf gzip zcat &&</userinput> 15 <userinput>ln -sf gzip compress &&</userinput> 16 <userinput>ln -sf gunzip uncompress</userinput></screen></para> 17 17 18 18 </sect2> -
chapter06/kbd-exp.xml
rb58a7eb r45714a7 6 6 the FHS suggests.</para> 7 7 8 <para><userinput>rm 8 <para><userinput>rm -f 9 9 /usr/share/kbd/keymaps/i386/qwerty/defkeymap.map.gz:</userinput> We 10 10 remove this file because we don't know which keymap you -
chapter06/kbd-inst.xml
rb58a7eb r45714a7 7 7 <userinput>make &&</userinput> 8 8 <userinput>make install &&</userinput> 9 <userinput>rm /usr/share/kbd/keymaps/i386/qwerty/defkeymap.map.gz</userinput></screen></para>9 <userinput>rm -f /usr/share/kbd/keymaps/i386/qwerty/defkeymap.map.gz</userinput></screen></para> 10 10 11 11 </sect2> -
chapter06/man-inst.xml
rb58a7eb r45714a7 6 6 <para><screen><userinput>for i in configure src/Makefile.in src/makewhatis.sh</userinput> 7 7 <userinput>do sed s/gawk/awk/g $i > $i.fixed</userinput> 8 <userinput>mv $i.fixed $i</userinput>8 <userinput>mv -f $i.fixed $i</userinput> 9 9 <userinput>done</userinput> 10 10 <userinput>chmod 700 configure &&</userinput> -
chapter06/mawk-inst.xml
rb58a7eb r45714a7 9 9 <userinput> MANDIR=/usr/share/man/man1 install &&</userinput> 10 10 <userinput>cd /usr/bin &&</userinput> 11 <userinput>ln -s mawk awk</userinput></screen></para>11 <userinput>ln -sf mawk awk</userinput></screen></para> 12 12 13 13 </sect2> -
chapter06/ncurses-inst.xml
rb58a7eb r45714a7 11 11 <userinput>mv libncurses.a libncurses_g.a libncurses++.a /usr/lib &&</userinput> 12 12 <userinput>cd /usr/lib &&</userinput> 13 <userinput>ln -s libncurses.a libcurses.a</userinput></screen></para>13 <userinput>ln -sf libncurses.a libcurses.a</userinput></screen></para> 14 14 </sect2> 15 15 -
chapter06/netkitbase-inst.xml
rb58a7eb r45714a7 8 8 <userinput>make install &&</userinput> 9 9 <userinput>cd etc.sample &&</userinput> 10 <userinput>cp services protocols /etc</userinput></screen></para>10 <userinput>cp -f services protocols /etc</userinput></screen></para> 11 11 12 12 <para>There are other files in the <filename -
chapter06/procps-inst.xml
rb58a7eb r45714a7 6 6 <para><screen><userinput>make &&</userinput> 7 7 <userinput>make XSCPT='' install &&</userinput> 8 <userinput>mv /usr/bin/kill /bin</userinput></screen></para>8 <userinput>mv -f /usr/bin/kill /bin</userinput></screen></para> 9 9 10 10 </sect2> -
chapter06/removeoldnss.xml
rb58a7eb r45714a7 6 6 them now by running:</para> 7 7 8 <para><screen><userinput>rm /lib/libnss*.so.1 /lib/libnss*2.0*</userinput></screen></para>8 <para><screen><userinput>rm -f /lib/libnss*.so.1 /lib/libnss*2.0*</userinput></screen></para> 9 9 10 10 </sect1> -
chapter06/shadowpwd-exp.xml
rb58a7eb r45714a7 7 7 defined.</para> 8 8 9 <para><userinput>cp limits login.access and others:</userinput> These files9 <para><userinput>cp -f limits login.access and others:</userinput> These files 10 10 were not installed during the installation of the package so we copy 11 11 them manually as those files are used to configure authentication -
chapter06/shadowpwd-inst.xml
rb58a7eb r45714a7 7 7 8 8 <para><screen><userinput>sed 's/\(.*\) (nflg || \(.*\))\(.*\)/\1\2\3/' \</userinput> 9 <userinput> 10 <userinput>mv useradd.c.temp src/useradd.c &&</userinput>9 <userinput> src/useradd.c > useradd.c.temp &&</userinput> 10 <userinput>mv -f useradd.c.temp src/useradd.c &&</userinput> 11 11 <userinput>./configure --prefix=/usr &&</userinput> 12 12 <userinput>make &&</userinput> 13 13 <userinput>make install &&</userinput> 14 14 <userinput>cd etc &&</userinput> 15 <userinput>cp limits login.access /etc &&</userinput>15 <userinput>cp -f limits login.access /etc &&</userinput> 16 16 <userinput>sed "s|/var/spool/mail|/var/mail|" login.defs.linux > /etc/login.defs</userinput></screen></para> 17 17 -
chapter06/shellutils-inst.xml
rb58a7eb r45714a7 8 8 <userinput>make install &&</userinput> 9 9 <userinput>cd /usr/bin &&</userinput> 10 <userinput>mv date echo false pwd stty /bin &&</userinput>11 <userinput>mv su true uname hostname /bin</userinput></screen></para>10 <userinput>mv -f date echo false pwd stty /bin &&</userinput> 11 <userinput>mv -f su true uname hostname /bin</userinput></screen></para> 12 12 13 13 </sect2> … … 23 23 <filename>/usr/bin</filename> directory:</para> 24 24 25 <para><screen><userinput>ln -s test [</userinput></screen></para>25 <para><screen><userinput>ln -sf test [</userinput></screen></para> 26 26 27 27 </sect2> -
chapter06/sysvinit-inst.xml
rb58a7eb r45714a7 16 16 <userinput> 's/\(.*\)\(Sending processes\)\(.*\)/\1\2 started by init\3/' \</userinput> 17 17 <userinput> src/init.c > init.c.temp &&</userinput> 18 <userinput>mv init.c.temp src/init.c &&</userinput>18 <userinput>mv -f init.c.temp src/init.c &&</userinput> 19 19 <userinput>make -C src &&</userinput> 20 20 <userinput>make -C src install</userinput></screen></para> -
chapter06/textutils-inst.xml
rb58a7eb r45714a7 7 7 <userinput>make &&</userinput> 8 8 <userinput>make install &&</userinput> 9 <userinput>mv /usr/bin/cat /bin</userinput></screen></para>9 <userinput>mv -f /usr/bin/cat /bin</userinput></screen></para> 10 10 11 11 </sect2> -
chapter06/utillinux-inst.xml
rb58a7eb r45714a7 8 8 <para><screen><userinput>sed 's|etc/adjtime|var/lib/hwclock/adjtime|' \</userinput> 9 9 <userinput> hwclock/hwclock.c > hwclock~ &&</userinput> 10 <userinput>mv hwclock~ hwclock/hwclock.c &&</userinput>10 <userinput>mv -f hwclock~ hwclock/hwclock.c &&</userinput> 11 11 <userinput>mkdir /var/lib/hwclock</userinput></screen></para> 12 12 -
chapter06/vim-inst.xml
rb58a7eb r45714a7 19 19 <userinput>make install &&</userinput> 20 20 <userinput>cd /usr/bin &&</userinput> 21 <userinput>ln -s vim vi</userinput></screen></para>21 <userinput>ln -sf vim vi</userinput></screen></para> 22 22 23 23 <para>If you plan on installing the X Window system on your LFS … … 43 43 <userinput>make install &&</userinput> 44 44 <userinput>cd /usr/bin &&</userinput> 45 <userinput>ln -s vim vi &&</userinput>45 <userinput>ln -sf vim vi &&</userinput> 46 46 <userinput>mkdir /var/lib/vim</userinput></screen></para> 47 47 -
chapter07/symperm.xml
rb58a7eb r45714a7 19 19 <userinput>chmod 754 localnet ethnet &&</userinput> 20 20 <userinput>cd ../rc0.d &&</userinput> 21 <userinput>ln -s ../init.d/ethnet K800ethnet &&</userinput>22 <userinput>ln -s ../init.d/sysklogd K900sysklogd &&</userinput>23 <userinput>ln -s ../init.d/sendsignals S800sendsignals &&</userinput>24 <userinput>ln -s ../init.d/mountfs S900mountfs &&</userinput>25 <userinput>ln -s ../init.d/halt S999halt &&</userinput>21 <userinput>ln -sf ../init.d/ethnet K800ethnet &&</userinput> 22 <userinput>ln -sf ../init.d/sysklogd K900sysklogd &&</userinput> 23 <userinput>ln -sf ../init.d/sendsignals S800sendsignals &&</userinput> 24 <userinput>ln -sf ../init.d/mountfs S900mountfs &&</userinput> 25 <userinput>ln -sf ../init.d/halt S999halt &&</userinput> 26 26 <userinput>cd ../rc6.d &&</userinput> 27 <userinput>ln -s ../init.d/ethnet K800ethnet &&</userinput>28 <userinput>ln -s ../init.d/sysklogd K900sysklogd &&</userinput>29 <userinput>ln -s ../init.d/sendsignals S800sendsignals &&</userinput>30 <userinput>ln -s ../init.d/mountfs S900mountfs &&</userinput>31 <userinput>ln -s ../init.d/reboot S999reboot &&</userinput>27 <userinput>ln -sf ../init.d/ethnet K800ethnet &&</userinput> 28 <userinput>ln -sf ../init.d/sysklogd K900sysklogd &&</userinput> 29 <userinput>ln -sf ../init.d/sendsignals S800sendsignals &&</userinput> 30 <userinput>ln -sf ../init.d/mountfs S900mountfs &&</userinput> 31 <userinput>ln -sf ../init.d/reboot S999reboot &&</userinput> 32 32 <userinput>cd ../rcS.d &&</userinput> 33 <userinput>ln -s ../init.d/localnet S100localnet &&</userinput>34 <userinput>ln -s ../init.d/checkfs S200checkfs &&</userinput>35 <userinput>ln -s ../init.d/mountfs S300mountfs &&</userinput>36 <userinput>ln -s ../init.d/setclock S400setclock &&</userinput>37 <userinput>ln -s ../init.d/loadkeys S500loadkeys &&</userinput>33 <userinput>ln -sf ../init.d/localnet S100localnet &&</userinput> 34 <userinput>ln -sf ../init.d/checkfs S200checkfs &&</userinput> 35 <userinput>ln -sf ../init.d/mountfs S300mountfs &&</userinput> 36 <userinput>ln -sf ../init.d/setclock S400setclock &&</userinput> 37 <userinput>ln -sf ../init.d/loadkeys S500loadkeys &&</userinput> 38 38 <userinput>cd ../rc1.d &&</userinput> 39 <userinput>ln -s ../init.d/ethnet K800ethnet &&</userinput>40 <userinput>ln -s ../init.d/sysklogd K900sysklogd &&</userinput>39 <userinput>ln -sf ../init.d/ethnet K800ethnet &&</userinput> 40 <userinput>ln -sf ../init.d/sysklogd K900sysklogd &&</userinput> 41 41 <userinput>cd ../rc2.d &&</userinput> 42 <userinput>ln -s ../init.d/sysklogd S100sysklogd &&</userinput>43 <userinput>ln -s ../init.d/ethnet K800ethnet &&</userinput>42 <userinput>ln -sf ../init.d/sysklogd S100sysklogd &&</userinput> 43 <userinput>ln -sf ../init.d/ethnet K800ethnet &&</userinput> 44 44 <userinput>cd ../rc3.d &&</userinput> 45 <userinput>ln -s ../init.d/sysklogd S100sysklogd &&</userinput>46 <userinput>ln -s ../init.d/ethnet S200ethnet &&</userinput>45 <userinput>ln -sf ../init.d/sysklogd S100sysklogd &&</userinput> 46 <userinput>ln -sf ../init.d/ethnet S200ethnet &&</userinput> 47 47 <userinput>cd ../rc4.d &&</userinput> 48 <userinput>ln -s ../init.d/sysklogd S100sysklogd &&</userinput>49 <userinput>ln -s ../init.d/ethnet S200ethnet &&</userinput>48 <userinput>ln -sf ../init.d/sysklogd S100sysklogd &&</userinput> 49 <userinput>ln -sf ../init.d/ethnet S200ethnet &&</userinput> 50 50 <userinput>cd ../rc5.d &&</userinput> 51 <userinput>ln -s ../init.d/sysklogd S100sysklogd &&</userinput>52 <userinput>ln -s ../init.d/ethnet S200ethnet</userinput></screen></para>51 <userinput>ln -sf ../init.d/sysklogd S100sysklogd &&</userinput> 52 <userinput>ln -sf ../init.d/ethnet S200ethnet</userinput></screen></para> 53 53 54 54 </sect1> -
chapter08/kernel.xml
rb58a7eb r45714a7 18 18 <userinput>make modules &&</userinput> 19 19 <userinput>make modules_install &&</userinput> 20 <userinput>cp arch/i386/boot/bzImage /boot/lfskernel &&</userinput>21 <userinput>cp System.map /boot</userinput></screen></para>20 <userinput>cp -f arch/i386/boot/bzImage /boot/lfskernel &&</userinput> 21 <userinput>cp -f System.map /boot</userinput></screen></para> 22 22 23 23 <para>Note: the arch/i386/boot/bzImage path may vary on -
chapter08/lilo.xml
rb58a7eb r45714a7 15 15 16 16 <para><screen><userinput>logout</userinput> 17 <userinput>cp $LFS/boot/lfskernel /boot</userinput></screen></para>17 <userinput>cp -f $LFS/boot/lfskernel /boot</userinput></screen></para> 18 18 19 19 <para>The next step is adding an entry to /etc/lilo.conf so that we can … … 37 37 LFS system:</para> 38 38 39 <para><screen><userinput>cp /etc/lilo.conf $LFS/etc &&</userinput>40 <userinput>cp <kernel images> $LFS/boot</userinput></screen></para>39 <para><screen><userinput>cp -f /etc/lilo.conf $LFS/etc &&</userinput> 40 <userinput>cp -f <kernel images> $LFS/boot</userinput></screen></para> 41 41 42 42 <para>To find out which kernel images files are being used, look at the
Note:
See TracChangeset
for help on using the changeset viewer.