- Timestamp:
- Jul 1, 2006, 11:52:01 PM (18 years ago)
- Children:
- 6ea30c8
- Parents:
- b18d234
- Location:
- boot
- Files:
-
- 51 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/alpha/aboot-build.xml
rb18d234 rf1fd69a 33 33 <para>Install the package:</para> 34 34 35 <screen><userinput>make root="${ LFS}" bindir=/cross-tools/bin install</userinput></screen>35 <screen><userinput>make root="${CLFS}" bindir=/cross-tools/bin install</userinput></screen> 36 36 37 37 </sect2> -
boot/alpha/aboot.xml
rb18d234 rf1fd69a 21 21 <screen><userinput>cat > /etc/aboot.conf << "EOF" 22 22 <literal># Begin /etc/aboot.conf 23 0:1/boot/ lfskernel-&linux-version; root=/dev/sda123 0:1/boot/clfskernel-&linux-version; root=/dev/sda1 24 24 # End /etc/aboot.conf</literal> 25 25 EOF</userinput></screen> -
boot/common/bootscripts.xml
rb18d234 rf1fd69a 25 25 <para>Install the package:</para> 26 26 27 <screen><userinput>make ETCDIR=${ LFS}/etc minimal</userinput></screen>27 <screen><userinput>make ETCDIR=${CLFS}/etc minimal</userinput></screen> 28 28 29 29 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 42 42 xpointer="xpointer(//*[@os='c'])"/> 43 43 44 <screen><userinput>cat > ${ LFS}/etc/sysconfig/clock << "EOF"44 <screen><userinput>cat > ${CLFS}/etc/sysconfig/clock << "EOF" 45 45 <literal># Begin /etc/sysconfig/clock 46 46 -
boot/common/changingowner.xml
rb18d234 rf1fd69a 13 13 <para os="a">Currently, the <filename class="directory">$CLFS</filename> 14 14 directory and all of its subdirectories are owned by the user 15 <systemitem class="username"> lfs</systemitem>, a user that exists only15 <systemitem class="username">clfs</systemitem>, a user that exists only 16 16 on the host system. For security reasons, the $CLFS root directory and 17 17 all of it subdirectories should be owned by … … 19 19 for $CLFS and its subdirectories by running this command:</para> 20 20 21 <screen os="b"><userinput>chown -Rv root:root ${ LFS}</userinput></screen>21 <screen os="b"><userinput>chown -Rv root:root ${CLFS}</userinput></screen> 22 22 23 23 </sect1> -
boot/common/createfiles.xml
rb18d234 rf1fd69a 16 16 the next chapter after the software has been installed.</para> 17 17 18 <screen><userinput>ln -sv /tools/bin/{bash,cat,grep,pwd,stty} ${ LFS}/bin19 ln -sv /tools/lib/libgcc_s.so{,.1} ${ LFS}/usr/lib20 ln -sv /tools/lib/libstd* ${ LFS}/usr/lib21 ln -sv bash ${ LFS}/bin/sh</userinput></screen>18 <screen><userinput>ln -sv /tools/bin/{bash,cat,grep,pwd,stty} ${CLFS}/bin 19 ln -sv /tools/lib/libgcc_s.so{,.1} ${CLFS}/usr/lib 20 ln -sv /tools/lib/libstd* ${CLFS}/usr/lib 21 ln -sv bash ${CLFS}/bin/sh</userinput></screen> 22 22 23 23 </sect1> -
boot/common/creatingdirs.xml
rb18d234 rf1fd69a 14 14 standard directory tree by issuing the following commands:</para> 15 15 16 <screen><userinput>mkdir -pv ${ LFS}/{bin,boot,dev,etc/opt,home,lib,mnt,opt}17 mkdir -pv ${ LFS}/{proc,media/{floppy,cdrom},sbin,srv,sys,var}18 install -dv -m 0750 ${ LFS}/root19 install -dv -m 1777 ${ LFS}{/var,}/tmp20 mkdir -pv ${ LFS}/usr/{,local/}{bin,include,lib,sbin,src}21 mkdir -pv ${ LFS}/usr/{,local/}share/{doc,info,locale,man}22 mkdir -v ${ LFS}/usr/{,local/}share/{misc,terminfo,zoneinfo}23 mkdir -pv ${ LFS}/usr/{,local/}share/man/man{1..8}24 for dir in ${ LFS}/usr{,/local}; do16 <screen><userinput>mkdir -pv ${CLFS}/{bin,boot,dev,etc/opt,home,lib,mnt,opt} 17 mkdir -pv ${CLFS}/{proc,media/{floppy,cdrom},sbin,srv,sys,var} 18 install -dv -m 0750 ${CLFS}/root 19 install -dv -m 1777 ${CLFS}{/var,}/tmp 20 mkdir -pv ${CLFS}/usr/{,local/}{bin,include,lib,sbin,src} 21 mkdir -pv ${CLFS}/usr/{,local/}share/{doc,info,locale,man} 22 mkdir -v ${CLFS}/usr/{,local/}share/{misc,terminfo,zoneinfo} 23 mkdir -pv ${CLFS}/usr/{,local/}share/man/man{1..8} 24 for dir in ${CLFS}/usr{,/local}; do 25 25 ln -sv share/{man,doc,info} $dir 26 26 done 27 mkdir -v ${ LFS}/var/{lock,log,mail,run,spool}28 mkdir -pv ${ LFS}/var/{opt,cache,lib/{misc,locate},local}</userinput></screen>27 mkdir -v ${CLFS}/var/{lock,log,mail,run,spool} 28 mkdir -pv ${CLFS}/var/{opt,cache,lib/{misc,locate},local}</userinput></screen> 29 29 30 30 <para os="b">Directories are, by default, created with permission mode 755, … … 35 35 36 36 <para os="c">The first mode change ensures that not just anybody can enter 37 the <filename class="directory">${ LFS}/root</filename> directory—the37 the <filename class="directory">${CLFS}/root</filename> directory—the 38 38 same as a normal user would do with his or her home directory. The 39 39 second mode change makes sure that any user can write to the 40 <filename class="directory">${ LFS}/tmp</filename> and41 <filename class="directory">${ LFS}/var/tmp</filename> directories, but40 <filename class="directory">${CLFS}/tmp</filename> and 41 <filename class="directory">${CLFS}/var/tmp</filename> directories, but 42 42 cannot remove another user's files from them. The latter is prohibited 43 43 by the so-called <quote>sticky bit,</quote> the highest bit (1) in the -
boot/common/devices.xml
rb18d234 rf1fd69a 9 9 <?dbhtml filename="devices.html"?> 10 10 11 <title>Populating ${ LFS}/dev</title>11 <title>Populating ${CLFS}/dev</title> 12 12 13 13 <indexterm zone="ch-boot-devices"> 14 <primary sortas="e-${ LFS}/dev/*">${LFS}/dev/*</primary>14 <primary sortas="e-${CLFS}/dev/*">${CLFS}/dev/*</primary> 15 15 </indexterm> 16 16 … … 35 35 the following commands:</para> 36 36 37 <screen><userinput>mknod -m 600 ${ LFS}/dev/console c 5 138 mknod -m 666 ${ LFS}/dev/null c 1 3</userinput></screen>37 <screen><userinput>mknod -m 600 ${CLFS}/dev/console c 5 1 38 mknod -m 666 ${CLFS}/dev/null c 1 3</userinput></screen> 39 39 40 40 </sect2> -
boot/common/e2fsprogs.xml
rb18d234 rf1fd69a 62 62 <para os="h">Install the binaries and documentation:</para> 63 63 64 <screen os="i"><userinput>make DESTDIR=${ LFS} install</userinput></screen>64 <screen os="i"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 65 65 66 66 <variablelist os="j"> … … 68 68 69 69 <varlistentry> 70 <term><parameter>DESTDIR=${ LFS}</parameter></term>70 <term><parameter>DESTDIR=${CLFS}</parameter></term> 71 71 <listitem> 72 72 <para>The Makefile for e2fsprogs hard-codes a path to the … … 87 87 <para os="ad">Create needed symlinks for a bootable system:</para> 88 88 89 <screen os="ae"><userinput>ln -sv /tools/sbin/{fsck.ext2,fsck.ext3,e2fsck} ${ LFS}/sbin</userinput></screen>89 <screen os="ae"><userinput>ln -sv /tools/sbin/{fsck.ext2,fsck.ext3,e2fsck} ${CLFS}/sbin</userinput></screen> 90 90 91 91 </sect2> -
boot/common/fstab.xml
rb18d234 rf1fd69a 9 9 <?dbhtml filename="fstab.html"?> 10 10 11 <title>Creating the ${ LFS}/etc/fstab File</title>11 <title>Creating the ${CLFS}/etc/fstab File</title> 12 12 13 13 <indexterm zone="ch-boot-fstab"> 14 <primary sortas="e-${ LFS}/etc/fstab">${LFS}/etc/fstab</primary>14 <primary sortas="e-${CLFS}/etc/fstab">${CLFS}/etc/fstab</primary> 15 15 </indexterm> 16 16 17 <para os="a">The <filename>${ LFS}/etc/fstab</filename> file is used by some17 <para os="a">The <filename>${CLFS}/etc/fstab</filename> file is used by some 18 18 programs to determine where file systems are to be mounted by default, 19 19 which must be checked, and in which order. Create a new file systems 20 20 table like this:</para> 21 21 22 <screen><userinput>cat > ${ LFS}/etc/fstab << "EOF"22 <screen><userinput>cat > ${CLFS}/etc/fstab << "EOF" 23 23 <literal># Begin /etc/fstab 24 24 -
boot/common/introduction.xml
rb18d234 rf1fd69a 20 20 partition ($CLFS/bin, $CLFS/usr/lib, etc...), rather than /tools, using the 21 21 "DESTDIR" option with make. This will require the 22 <systemitem class="username"> lfs</systemitem> user to have write access to22 <systemitem class="username">clfs</systemitem> user to have write access to 23 23 the rest of the $CLFS partition, so you will need to temporarily change the 24 ownership of $CLFS to the <systemitem class="username"> lfs</systemitem> user.24 ownership of $CLFS to the <systemitem class="username">clfs</systemitem> user. 25 25 Run the following command as <systemitem 26 26 class="username">root</systemitem>:</para> 27 27 28 <screen><userinput>chown -v lfs $CLFS</userinput></screen>28 <screen><userinput>chown -v clfs $CLFS</userinput></screen> 29 29 30 30 </sect1> -
boot/common/module-init-tools.xml
rb18d234 rf1fd69a 42 42 xpointer="xpointer(//*[@os='j'])"/> 43 43 44 <screen os="k"><userinput>make DESTDIR="${ LFS}" install</userinput></screen>44 <screen os="k"><userinput>make DESTDIR="${CLFS}" install</userinput></screen> 45 45 46 46 </sect2> -
boot/common/pwdgroup.xml
rb18d234 rf1fd69a 12 12 13 13 <indexterm zone="ch-boot-pwdgroup"> 14 <primary sortas="e-${ LFS}/etc/passwd">${LFS}/etc/passwd</primary>14 <primary sortas="e-${CLFS}/etc/passwd">${CLFS}/etc/passwd</primary> 15 15 </indexterm> 16 16 17 17 <indexterm zone="ch-boot-pwdgroup"> 18 <primary sortas="e-${ LFS}/etc/group">${LFS}/etc/group</primary>18 <primary sortas="e-${CLFS}/etc/group">${CLFS}/etc/group</primary> 19 19 </indexterm> 20 20 21 21 <indexterm zone="ch-boot-pwdgroup"> 22 <primary sortas="e-${ LFS}/var/run/utmp">${LFS}/var/run/utmp</primary>22 <primary sortas="e-${CLFS}/var/run/utmp">${CLFS}/var/run/utmp</primary> 23 23 </indexterm> 24 24 25 25 <indexterm zone="ch-boot-pwdgroup"> 26 <primary sortas="e-${ LFS}/var/log/btmp">${LFS}/var/log/btmp</primary>26 <primary sortas="e-${CLFS}/var/log/btmp">${CLFS}/var/log/btmp</primary> 27 27 </indexterm> 28 28 29 29 <indexterm zone="ch-boot-pwdgroup"> 30 <primary sortas="e-${ LFS}/var/log/lastlog">${LFS}/var/log/lastlog</primary>30 <primary sortas="e-${CLFS}/var/log/lastlog">${CLFS}/var/log/lastlog</primary> 31 31 </indexterm> 32 32 33 33 <indexterm zone="ch-boot-pwdgroup"> 34 <primary sortas="e-${ LFS}/var/log/wtmp">${LFS}/var/log/wtmp</primary>34 <primary sortas="e-${CLFS}/var/log/wtmp">${CLFS}/var/log/wtmp</primary> 35 35 </indexterm> 36 36 37 37 <para>In order for user <systemitem class="username">root</systemitem> to 38 38 be able to login and for the name <quote>root</quote> to be recognized, 39 there must be relevant entries in the <filename>${ LFS}/etc/passwd</filename>40 and <filename>${ LFS}/etc/group</filename> files.</para>39 there must be relevant entries in the <filename>${CLFS}/etc/passwd</filename> 40 and <filename>${CLFS}/etc/group</filename> files.</para> 41 41 42 <para>Create the <filename>${ LFS}/etc/passwd</filename> file by running42 <para>Create the <filename>${CLFS}/etc/passwd</filename> file by running 43 43 the following command:</para> 44 44 45 <screen><userinput>cat > ${ LFS}/etc/passwd << "EOF"45 <screen><userinput>cat > ${CLFS}/etc/passwd << "EOF" 46 46 <literal>root:x:0:0:root:/root:/bin/bash</literal> 47 47 EOF</userinput></screen> … … 51 51 later.</para> 52 52 53 <variablelist os="b"> 54 55 <title>Additional users you may want to add:</title> 56 57 <varlistentry> 58 <term><literal>bin:x:1:1:bin:/bin:/bin/false</literal></term> 59 <listitem> 60 <para>To be written</para> 61 </listitem> 62 </varlistentry> 63 <varlistentry> 64 <term><literal>daemon:x:2:6:daemon:/sbin:/bin/false</literal></term> 65 <listitem> 66 <para>To be written</para> 67 </listitem> 68 </varlistentry> 69 <varlistentry> 70 <term><literal>adm:x:3:16:adm:/var/adm:/bin/false</literal></term> 71 <listitem> 72 <para>To be written</para> 73 </listitem> 74 </varlistentry> 75 <varlistentry> 76 <term><literal>lp:x:10:9:lp:/var/spool/lp:/bin/false</literal></term> 77 <listitem> 78 <para>To be written</para> 79 </listitem> 80 </varlistentry> 81 <varlistentry> 82 <term><literal>mail:x:30:30:mail:/var/mail:/bin/false</literal></term> 83 <listitem> 84 <para>To be written</para> 85 </listitem> 86 </varlistentry> 87 <varlistentry> 88 <term><literal>news:x:31:31:news:/var/spool/news:/bin/false</literal></term> 89 <listitem> 90 <para>To be written</para> 91 </listitem> 92 </varlistentry> 93 <varlistentry> 94 <term><literal>uucp:x:32:32:uucp:/var/spool/uucp:/bin/false</literal></term> 95 <listitem> 96 <para>To be written</para> 97 </listitem> 98 </varlistentry> 99 <varlistentry> 100 <term><literal>operator:x:50:0:operator:/root:/bin/bash</literal></term> 101 <listitem> 102 <para>To be written</para> 103 </listitem> 104 </varlistentry> 105 <varlistentry> 106 <term><literal>postmaster:x:51:30:postmaster:/var/spool/mail:/bin/false</literal></term> 107 <listitem> 108 <para>To be written</para> 109 </listitem> 110 </varlistentry> 111 <varlistentry> 112 <term><literal>nobody:x:65534:65534:nobody:/:/bin/false</literal></term> 113 <listitem> 114 <para>To be written</para> 115 </listitem> 116 </varlistentry> 117 </variablelist> 118 119 <para>Create the <filename>${LFS}/etc/group</filename> file by running 53 <para>Create the <filename>${CLFS}/etc/group</filename> file by running 120 54 the following command:</para> 121 55 122 <screen><userinput>cat > ${ LFS}/etc/group << "EOF"56 <screen><userinput>cat > ${CLFS}/etc/group << "EOF" 123 57 <literal>root:x:0: 124 58 bin:x:1: … … 217 151 proper permissions:</para> 218 152 219 <screen><userinput>touch ${ LFS}/var/run/utmp ${LFS}/var/log/{btmp,lastlog,wtmp}220 chmod -v 664 ${ LFS}/var/run/utmp ${LFS}/var/log/lastlog221 chmod -v 600 ${ LFS}/var/log/btmp</userinput></screen>153 <screen><userinput>touch ${CLFS}/var/run/utmp ${CLFS}/var/log/{btmp,lastlog,wtmp} 154 chmod -v 664 ${CLFS}/var/run/utmp ${CLFS}/var/log/lastlog 155 chmod -v 600 ${CLFS}/var/log/btmp</userinput></screen> 222 156 223 <para>The <filename>${ LFS}/var/run/utmp</filename> file records the users224 that are currently logged in. The <filename>${ LFS}/var/log/wtmp</filename>157 <para>The <filename>${CLFS}/var/run/utmp</filename> file records the users 158 that are currently logged in. The <filename>${CLFS}/var/log/wtmp</filename> 225 159 file records all logins and logouts. The 226 <filename>${ LFS}/var/log/lastlog</filename> file records when227 each user last logged in. The <filename>${ LFS}/var/log/btmp</filename> file160 <filename>${CLFS}/var/log/lastlog</filename> file records when 161 each user last logged in. The <filename>${CLFS}/var/log/btmp</filename> file 228 162 records the bad login attempts.</para> 229 163 -
boot/common/settingenviron.xml
rb18d234 rf1fd69a 15 15 <filename>.bash_profile</filename> file now:</para> 16 16 17 <screen><userinput>cat > ${ LFS}/root/.bash_profile << "EOF"17 <screen><userinput>cat > ${CLFS}/root/.bash_profile << "EOF" 18 18 <literal>set +h 19 19 PS1='\u:\w\$ ' -
boot/common/sysvinit.xml
rb18d234 rf1fd69a 28 28 <screen os="ab"><userinput>cp -v src/Makefile src/Makefile.orig 29 29 sed -e 's@root@0@g' \ 30 -e "s@/dev/initctl@${ LFS}&@g" \30 -e "s@/dev/initctl@${CLFS}&@g" \ 31 31 -e 's@\(mknod \)-m \([0-9]* \)\(.* \)p@\1\3p; chmod \2\3@g' \ 32 32 -e "s@/usr/lib@/tools/lib@" \ … … 44 44 xpointer="xpointer(//*[@os='e'])"/> 45 45 46 <screen os="ad"><userinput>make -C src install INSTALL="install" ROOT="${ LFS}"</userinput></screen>46 <screen os="ad"><userinput>make -C src install INSTALL="install" ROOT="${CLFS}"</userinput></screen> 47 47 48 48 </sect2> … … 57 57 58 58 <indexterm zone="conf-tools-sysvinit"> 59 <primary sortas="e-${ LFS}/etc/inittab">${LFS}/etc/inittab</primary>59 <primary sortas="e-${CLFS}/etc/inittab">${CLFS}/etc/inittab</primary> 60 60 </indexterm> 61 61 62 <para os="ae">Create a new file <filename>${ LFS}/etc/inittab</filename> by62 <para os="ae">Create a new file <filename>${CLFS}/etc/inittab</filename> by 63 63 running the following:</para> 64 64 65 <screen os="af"><userinput>cat > ${ LFS}/etc/inittab << "EOF"65 <screen os="af"><userinput>cat > ${CLFS}/etc/inittab << "EOF" 66 66 <literal># Begin /etc/inittab 67 67 -
boot/common/udev-rules.xml
rb18d234 rf1fd69a 9 9 <?dbhtml filename="udev-rules.html"?> 10 10 11 <title>Udev Rules-&udev-cross- lfs-version;</title>11 <title>Udev Rules-&udev-cross-CLFS-version;</title> 12 12 13 13 <indexterm zone="ch-boot-udev-rules"> … … 26 26 xpointer="xpointer(//*[@os='a'])"/> 27 27 28 <screen><userinput>rm -vf ${ LFS}/etc/udev/rules.d/*</userinput></screen>28 <screen><userinput>rm -vf ${CLFS}/etc/udev/rules.d/*</userinput></screen> 29 29 30 30 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 32 32 xpointer="xpointer(//*[@os='c'])"/> 33 33 34 <screen><userinput>make DESTDIR=${ LFS} install-minimal</userinput></screen>34 <screen><userinput>make DESTDIR=${CLFS} install-minimal</userinput></screen> 35 35 36 36 </sect2> -
boot/common/udev.xml
rb18d234 rf1fd69a 33 33 xpointer="xpointer(//*[@os='g'])"/> 34 34 35 <screen os="h"><userinput>make DESTDIR=${ LFS} udevdir=/dev install</userinput></screen>35 <screen os="h"><userinput>make DESTDIR=${CLFS} udevdir=/dev install</userinput></screen> 36 36 37 37 </sect2> -
boot/common/util-linux.xml
rb18d234 rf1fd69a 125 125 <screen os="bi"><userinput>make HAVE_KILL=yes HAVE_SLN=yes HAVE_SHADOW=no \ 126 126 USE_TTY_GROUP=no CPUOPT="" ARCH="" \ 127 CPU="" DESTDIR=${ LFS} install</userinput></screen>127 CPU="" DESTDIR=${CLFS} install</userinput></screen> 128 128 129 129 </sect2> -
boot/common/whatnext.xml
rb18d234 rf1fd69a 12 12 13 13 <para>Now you're at the point to get your <filename 14 class="directory">${ LFS}</filename> directory copied over to your target14 class="directory">${CLFS}</filename> directory copied over to your target 15 15 machine. The easiest method would be to tar it up and copy the file.</para> 16 16 17 <screen><userinput>tar -jcvf ${ LFS}.tar.bz2 ${LFS}</userinput></screen>17 <screen><userinput>tar -jcvf ${CLFS}.tar.bz2 ${CLFS}</userinput></screen> 18 18 19 19 <para>Some others have came up with other ideas on how to do this. -
boot/mips/colo-build.xml
rb18d234 rf1fd69a 40 40 xpointer="xpointer(//*[@os='c'])"/> 41 41 42 <screen os="ab"><userinput>cp -v chain/colo-chain.elf ${ LFS}/boot/vmlinux43 gzip -9 ${ LFS}/boot/vmlinux</userinput></screen>42 <screen os="ab"><userinput>cp -v chain/colo-chain.elf ${CLFS}/boot/vmlinux 43 gzip -9 ${CLFS}/boot/vmlinux</userinput></screen> 44 44 45 45 </sect2> -
boot/mips/colo.xml
rb18d234 rf1fd69a 28 28 xpointer="xpointer(//*[@os='d'])"/> 29 29 30 <screen os="aa"><userinput>cat > ${ LFS}/boot/default.colo << "EOF"30 <screen os="aa"><userinput>cat > ${CLFS}/boot/default.colo << "EOF" 31 31 #:CoLo:# 32 32 # -
boot/mips/creatingdirs.xml
rb18d234 rf1fd69a 15 15 xpointer="xpointer(//*[@os='a'])"/> 16 16 17 <screen><userinput>install -dv ${ LFS}/{bin,boot,dev,etc/opt,home,lib,mnt}18 install -dv ${ LFS}/{sbin,srv,usr/local,var,opt,proc,sys}19 install -dv ${ LFS}/root -m 075020 install -dv ${ LFS}/tmp ${LFS}/var/tmp -m 177721 install -dv ${ LFS}/media/{floppy,cdrom}22 install -dv ${ LFS}/usr/{bin,include,lib,sbin,share,src}23 ln -sv share/{man,doc,info} ${ LFS}/usr24 install -dv ${ LFS}/usr/share/{doc,info,locale,man}25 install -dv ${ LFS}/usr/share/{misc,terminfo,zoneinfo}26 install -dv ${ LFS}/usr/share/man/man{1,2,3,4,5,6,7,8}27 install -dv ${ LFS}/usr/local/{bin,etc,include,lib,sbin,share,src}28 ln -sv share/{man,doc,info} ${ LFS}/usr/local29 install -dv ${ LFS}/usr/local/share/{doc,info,locale,man}30 install -dv ${ LFS}/usr/local/share/{misc,terminfo,zoneinfo}31 install -dv ${ LFS}/usr/local/share/man/man{1,2,3,4,5,6,7,8}32 install -dv ${ LFS}/var/{lock,log,mail,run,spool}33 install -dv ${ LFS}/var/{opt,cache,lib/{misc,locate},local}34 install -dv ${ LFS}/opt/{bin,doc,include,info}35 install -dv ${ LFS}/opt/{lib,man/man{1,2,3,4,5,6,7,8}}</userinput></screen>17 <screen><userinput>install -dv ${CLFS}/{bin,boot,dev,etc/opt,home,lib,mnt} 18 install -dv ${CLFS}/{sbin,srv,usr/local,var,opt,proc,sys} 19 install -dv ${CLFS}/root -m 0750 20 install -dv ${CLFS}/tmp ${CLFS}/var/tmp -m 1777 21 install -dv ${CLFS}/media/{floppy,cdrom} 22 install -dv ${CLFS}/usr/{bin,include,lib,sbin,share,src} 23 ln -sv share/{man,doc,info} ${CLFS}/usr 24 install -dv ${CLFS}/usr/share/{doc,info,locale,man} 25 install -dv ${CLFS}/usr/share/{misc,terminfo,zoneinfo} 26 install -dv ${CLFS}/usr/share/man/man{1,2,3,4,5,6,7,8} 27 install -dv ${CLFS}/usr/local/{bin,etc,include,lib,sbin,share,src} 28 ln -sv share/{man,doc,info} ${CLFS}/usr/local 29 install -dv ${CLFS}/usr/local/share/{doc,info,locale,man} 30 install -dv ${CLFS}/usr/local/share/{misc,terminfo,zoneinfo} 31 install -dv ${CLFS}/usr/local/share/man/man{1,2,3,4,5,6,7,8} 32 install -dv ${CLFS}/var/{lock,log,mail,run,spool} 33 install -dv ${CLFS}/var/{opt,cache,lib/{misc,locate},local} 34 install -dv ${CLFS}/opt/{bin,doc,include,info} 35 install -dv ${CLFS}/opt/{lib,man/man{1,2,3,4,5,6,7,8}}</userinput></screen> 36 36 37 37 <para>These entries are needed for the RaQ2 bootloader. Only use these 38 38 if you are utilizing the Colo bootloader:</para> 39 39 40 <screen><userinput>cd /${ LFS}/boot40 <screen><userinput>cd /${CLFS}/boot 41 41 ln -svf . boot</userinput></screen> 42 42 -
boot/mips/kernel.xml
rb18d234 rf1fd69a 92 92 93 93 <screen><userinput>make ARCH=mips CROSS_COMPILE=${CLFS_TARGET)- \ 94 INSTALL_MOD_PATH=${ LFS} modules_install</userinput></screen>94 INSTALL_MOD_PATH=${CLFS} modules_install</userinput></screen> 95 95 96 96 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 102 102 xpointer="xpointer(//*[@os='v'])"/> 103 103 104 <screen><userinput>cp -v vmlinux ${ LFS}/boot/vmlinux-&linux-version;105 gzip -9 ${ LFS}/boot/vmlinux-&linux-version;</userinput></screen>104 <screen><userinput>cp -v vmlinux ${CLFS}/boot/vmlinux-&linux-version; 105 gzip -9 ${CLFS}/boot/vmlinux-&linux-version;</userinput></screen> 106 106 107 107 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
boot/mips/sysvinit.xml
rb18d234 rf1fd69a 58 58 59 59 <indexterm zone="conf-tools-sysvinit"> 60 <primary sortas="e-${ LFS}/etc/inittab">${LFS}/etc/inittab</primary>60 <primary sortas="e-${CLFS}/etc/inittab">${CLFS}/etc/inittab</primary> 61 61 </indexterm> 62 62 63 <para>Create a new file <filename>${ LFS}/etc/inittab</filename> by63 <para>Create a new file <filename>${CLFS}/etc/inittab</filename> by 64 64 running the following:</para> 65 65 66 <screen><userinput>cat > ${ LFS}/etc/inittab << "EOF"66 <screen><userinput>cat > ${CLFS}/etc/inittab << "EOF" 67 67 <literal># Begin /etc/inittab 68 68 -
boot/mips64-64/flags.xml
rb18d234 rf1fd69a 14 14 we boot-up they will be there:</para> 15 15 16 <screen><userinput>echo export BUILD64=\""${BUILD64}\"" >> ${ LFS}/root/.bash_profile</userinput></screen>16 <screen><userinput>echo export BUILD64=\""${BUILD64}\"" >> ${CLFS}/root/.bash_profile</userinput></screen> 17 17 18 18 </sect1> -
boot/mips64/createfiles.xml
rb18d234 rf1fd69a 15 15 xpointer="xpointer(//*[@os='a'])"/> 16 16 17 <screen><userinput>ln -sv /tools/bin/{bash,cat,pwd,stty} ${ LFS}/bin18 ln -sv /tools/lib/libgcc_s.so{,.1} ${ LFS}/usr/lib19 ln -sv /tools/lib32/libgcc_s.so{,.1} ${ LFS}/usr/lib3220 ln -sv /tools/lib64/libgcc_s.so{,.1} ${ LFS}/usr/lib6421 ln -sv /tools/lib/libstd* ${ LFS}/usr/lib22 ln -sv /tools/lib32/libstd* ${ LFS}/usr/lib3223 ln -sv /tools/lib64/libstd* ${ LFS}/usr/lib6424 ln -sv bash ${ LFS}/bin/sh</userinput></screen>17 <screen><userinput>ln -sv /tools/bin/{bash,cat,pwd,stty} ${CLFS}/bin 18 ln -sv /tools/lib/libgcc_s.so{,.1} ${CLFS}/usr/lib 19 ln -sv /tools/lib32/libgcc_s.so{,.1} ${CLFS}/usr/lib32 20 ln -sv /tools/lib64/libgcc_s.so{,.1} ${CLFS}/usr/lib64 21 ln -sv /tools/lib/libstd* ${CLFS}/usr/lib 22 ln -sv /tools/lib32/libstd* ${CLFS}/usr/lib32 23 ln -sv /tools/lib64/libstd* ${CLFS}/usr/lib64 24 ln -sv bash ${CLFS}/bin/sh</userinput></screen> 25 25 26 26 </sect1> -
boot/mips64/creatingdirs.xml
rb18d234 rf1fd69a 15 15 xpointer="xpointer(//*[@os='a'])"/> 16 16 17 <screen><userinput>install -dv ${ LFS}/{bin,boot,dev,etc/opt,home,lib{,32,64},mnt}18 install -dv ${ LFS}/{sbin,srv,usr/local,var,opt,proc,sys}19 install -dv ${ LFS}/root -m 075020 install -dv ${ LFS}/tmp ${LFS}/var/tmp -m 177721 install -dv ${ LFS}/media/{floppy,cdrom}22 install -dv ${ LFS}/usr/{bin,include,lib{,32,64},sbin,share,src}23 ln -sv share/{man,doc,info} ${ LFS}/usr24 install -dv ${ LFS}/usr/share/{doc,info,locale,man}25 install -dv ${ LFS}/usr/share/{misc,terminfo,zoneinfo}26 install -dv ${ LFS}/usr/share/man/man{1,2,3,4,5,6,7,8}27 install -dv ${ LFS}/usr/local/{bin,etc,include,lib{,32,64},sbin,share,src}28 ln -sv share/{man,doc,info} ${ LFS}/usr/local29 install -dv ${ LFS}/usr/local/share/{doc,info,locale,man}30 install -dv ${ LFS}/usr/local/share/{misc,terminfo,zoneinfo}31 install -dv ${ LFS}/usr/local/share/man/man{1,2,3,4,5,6,7,8}32 install -dv ${ LFS}/var/{lock,log,mail,run,spool}33 install -dv ${ LFS}/var/{opt,cache,lib{,32,64}/{misc,locate},local}34 install -dv ${ LFS}/opt/{bin,doc,include,info}35 install -dv ${ LFS}/opt/{lib{,32,64},man/man{1,2,3,4,5,6,7,8}}36 install -dv ${ LFS}/usr/lib/locale37 ln -sv ../lib/locale ${ LFS}/usr/lib3238 ln -sv ../lib/locale ${ LFS}/usr/lib64</userinput></screen>17 <screen><userinput>install -dv ${CLFS}/{bin,boot,dev,etc/opt,home,lib{,32,64},mnt} 18 install -dv ${CLFS}/{sbin,srv,usr/local,var,opt,proc,sys} 19 install -dv ${CLFS}/root -m 0750 20 install -dv ${CLFS}/tmp ${CLFS}/var/tmp -m 1777 21 install -dv ${CLFS}/media/{floppy,cdrom} 22 install -dv ${CLFS}/usr/{bin,include,lib{,32,64},sbin,share,src} 23 ln -sv share/{man,doc,info} ${CLFS}/usr 24 install -dv ${CLFS}/usr/share/{doc,info,locale,man} 25 install -dv ${CLFS}/usr/share/{misc,terminfo,zoneinfo} 26 install -dv ${CLFS}/usr/share/man/man{1,2,3,4,5,6,7,8} 27 install -dv ${CLFS}/usr/local/{bin,etc,include,lib{,32,64},sbin,share,src} 28 ln -sv share/{man,doc,info} ${CLFS}/usr/local 29 install -dv ${CLFS}/usr/local/share/{doc,info,locale,man} 30 install -dv ${CLFS}/usr/local/share/{misc,terminfo,zoneinfo} 31 install -dv ${CLFS}/usr/local/share/man/man{1,2,3,4,5,6,7,8} 32 install -dv ${CLFS}/var/{lock,log,mail,run,spool} 33 install -dv ${CLFS}/var/{opt,cache,lib{,32,64}/{misc,locate},local} 34 install -dv ${CLFS}/opt/{bin,doc,include,info} 35 install -dv ${CLFS}/opt/{lib{,32,64},man/man{1,2,3,4,5,6,7,8}} 36 install -dv ${CLFS}/usr/lib/locale 37 ln -sv ../lib/locale ${CLFS}/usr/lib32 38 ln -sv ../lib/locale ${CLFS}/usr/lib64</userinput></screen> 39 39 40 40 <para>These entries are needed for the RaQ2 bootloader. Only use these 41 41 if you are utilizing the Colo bootloader:</para> 42 42 43 <screen><userinput>cd /${ LFS}/boot43 <screen><userinput>cd /${CLFS}/boot 44 44 ln -svf . boot</userinput></screen> 45 45 -
boot/mips64/flags.xml
rb18d234 rf1fd69a 14 14 we boot-up they will be there:</para> 15 15 16 <screen><userinput>echo export BUILD32=\""${BUILD32}\"" >> ${ LFS}/root/.bash_profile17 echo export BUILDN32=\""${BUILDN32}\"" >> ${ LFS}/root/.bash_profile18 echo export BUILD64=\""${BUILD64}\"" >> ${ LFS}/root/.bash_profile19 echo export CLFS_TARGET32=\""${CLFS_TARGET32}\"" >> ${ LFS}/root/.bash_profile</userinput></screen>16 <screen><userinput>echo export BUILD32=\""${BUILD32}\"" >> ${CLFS}/root/.bash_profile 17 echo export BUILDN32=\""${BUILDN32}\"" >> ${CLFS}/root/.bash_profile 18 echo export BUILD64=\""${BUILD64}\"" >> ${CLFS}/root/.bash_profile 19 echo export CLFS_TARGET32=\""${CLFS_TARGET32}\"" >> ${CLFS}/root/.bash_profile</userinput></screen> 20 20 21 21 </sect1> -
boot/mips64/kernel.xml
rb18d234 rf1fd69a 96 96 97 97 <screen><userinput>make ARCH=mips CROSS_COMPILE=${CLFS_TARGET}- \ 98 INSTALL_MOD_PATH=${ LFS} modules_install</userinput></screen>98 INSTALL_MOD_PATH=${CLFS} modules_install</userinput></screen> 99 99 100 100 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 106 106 xpointer="xpointer(//*[@os='v'])"/> 107 107 108 <screen><userinput>cp -v vmlinux ${ LFS}/boot/vmlinux-&linux-version;109 gzip -9 ${ LFS}/boot/vmlinux-&linux-version;</userinput></screen>108 <screen><userinput>cp -v vmlinux ${CLFS}/boot/vmlinux-&linux-version; 109 gzip -9 ${CLFS}/boot/vmlinux-&linux-version;</userinput></screen> 110 110 111 111 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
boot/multilib/createfiles.xml
rb18d234 rf1fd69a 15 15 xpointer="xpointer(//*[@os='a'])"/> 16 16 17 <screen><userinput>ln -sv /tools/bin/{bash,cat,pwd,stty} ${ LFS}/bin18 ln -sv /tools/lib/libgcc_s.so{,.1} ${ LFS}/usr/lib19 ln -sv /tools/lib64/libgcc_s.so{,.1} ${ LFS}/usr/lib6420 ln -sv /tools/lib/libstd* ${ LFS}/usr/lib21 ln -sv /tools/lib64/libstd* ${ LFS}/usr/lib6422 ln -sv bash ${ LFS}/bin/sh</userinput></screen>17 <screen><userinput>ln -sv /tools/bin/{bash,cat,pwd,stty} ${CLFS}/bin 18 ln -sv /tools/lib/libgcc_s.so{,.1} ${CLFS}/usr/lib 19 ln -sv /tools/lib64/libgcc_s.so{,.1} ${CLFS}/usr/lib64 20 ln -sv /tools/lib/libstd* ${CLFS}/usr/lib 21 ln -sv /tools/lib64/libstd* ${CLFS}/usr/lib64 22 ln -sv bash ${CLFS}/bin/sh</userinput></screen> 23 23 24 24 </sect1> -
boot/multilib/creatingdirs.xml
rb18d234 rf1fd69a 15 15 xpointer="xpointer(//*[@os='a'])"/> 16 16 17 <screen><userinput>install -dv ${ LFS}/{bin,boot,dev,etc/opt,home,lib{,64},mnt}18 install -dv ${ LFS}/{sbin,srv,usr/local,var,opt,proc,sys}19 install -dv ${ LFS}/root -m 075020 install -dv ${ LFS}/tmp ${LFS}/var/tmp -m 177721 install -dv ${ LFS}/media/{floppy,cdrom}22 install -dv ${ LFS}/usr/{bin,include,lib{,64},sbin,share,src}23 ln -sv share/{man,doc,info} ${ LFS}/usr24 install -dv ${ LFS}/usr/share/{doc,info,locale,man}25 install -dv ${ LFS}/usr/share/{misc,terminfo,zoneinfo}26 install -dv ${ LFS}/usr/share/man/man{1,2,3,4,5,6,7,8}27 install -dv ${ LFS}/usr/local/{bin,etc,include,lib{,64},sbin,share,src}28 ln -sv share/{man,doc,info} ${ LFS}/usr/local29 install -dv ${ LFS}/usr/local/share/{doc,info,locale,man}30 install -dv ${ LFS}/usr/local/share/{misc,terminfo,zoneinfo}31 install -dv ${ LFS}/usr/local/share/man/man{1,2,3,4,5,6,7,8}32 install -dv ${ LFS}/var/{lock,log,mail,run,spool}33 install -dv ${ LFS}/var/{opt,cache,lib{,64}/{misc,locate},local}34 install -dv ${ LFS}/opt/{bin,doc,include,info}35 install -dv ${ LFS}/opt/{lib{,64},man/man{1,2,3,4,5,6,7,8}}36 install -dv ${ LFS}/usr/lib/locale37 ln -sv ../lib/locale ${ LFS}/usr/lib64</userinput></screen>17 <screen><userinput>install -dv ${CLFS}/{bin,boot,dev,etc/opt,home,lib{,64},mnt} 18 install -dv ${CLFS}/{sbin,srv,usr/local,var,opt,proc,sys} 19 install -dv ${CLFS}/root -m 0750 20 install -dv ${CLFS}/tmp ${CLFS}/var/tmp -m 1777 21 install -dv ${CLFS}/media/{floppy,cdrom} 22 install -dv ${CLFS}/usr/{bin,include,lib{,64},sbin,share,src} 23 ln -sv share/{man,doc,info} ${CLFS}/usr 24 install -dv ${CLFS}/usr/share/{doc,info,locale,man} 25 install -dv ${CLFS}/usr/share/{misc,terminfo,zoneinfo} 26 install -dv ${CLFS}/usr/share/man/man{1,2,3,4,5,6,7,8} 27 install -dv ${CLFS}/usr/local/{bin,etc,include,lib{,64},sbin,share,src} 28 ln -sv share/{man,doc,info} ${CLFS}/usr/local 29 install -dv ${CLFS}/usr/local/share/{doc,info,locale,man} 30 install -dv ${CLFS}/usr/local/share/{misc,terminfo,zoneinfo} 31 install -dv ${CLFS}/usr/local/share/man/man{1,2,3,4,5,6,7,8} 32 install -dv ${CLFS}/var/{lock,log,mail,run,spool} 33 install -dv ${CLFS}/var/{opt,cache,lib{,64}/{misc,locate},local} 34 install -dv ${CLFS}/opt/{bin,doc,include,info} 35 install -dv ${CLFS}/opt/{lib{,64},man/man{1,2,3,4,5,6,7,8}} 36 install -dv ${CLFS}/usr/lib/locale 37 ln -sv ../lib/locale ${CLFS}/usr/lib64</userinput></screen> 38 38 39 39 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
boot/ppc/kernel.xml
rb18d234 rf1fd69a 89 89 90 90 <screen><userinput>make ARCH=ppc CROSS_COMPILE=${CLFS_TARGET}- \ 91 INSTALL_MOD_PATH=${ LFS} modules_install</userinput></screen>91 INSTALL_MOD_PATH=${CLFS} modules_install</userinput></screen> 92 92 93 93 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 99 99 xpointer="xpointer(//*[@os='v'])"/> 100 100 101 <screen><userinput>cp -v vmlinux ${ LFS}/boot/lfskernel-&linux-version;</userinput></screen>101 <screen><userinput>cp -v vmlinux ${CLFS}/boot/clfskernel-&linux-version;</userinput></screen> 102 102 103 103 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
boot/ppc/yaboot-build.xml
rb18d234 rf1fd69a 48 48 but it will try to use <command>strip</command> to strip the second-stage 49 49 loader. It also expects to be running as root for the install, and to 50 install for the root user, which user LFS cannot do. The following command50 install for the root user, which user CLFS cannot do. The following command 51 51 will fix this:</para> 52 52 -
boot/ppc64/kernel.xml
rb18d234 rf1fd69a 88 88 89 89 <screen><userinput>make ARCH=powerpc CROSS_COMPILE=${CLFS_TARGET}- \ 90 INSTALL_MOD_PATH=${ LFS} modules_install</userinput></screen>90 INSTALL_MOD_PATH=${CLFS} modules_install</userinput></screen> 91 91 92 92 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 98 98 xpointer="xpointer(//*[@os='v'])"/> 99 99 100 <screen><userinput>cp -v vmlinux ${ LFS}/boot/lfskernel-&linux-version;</userinput></screen>100 <screen><userinput>cp -v vmlinux ${CLFS}/boot/clfskernel-&linux-version;</userinput></screen> 101 101 102 102 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
boot/ppc64/yaboot-build.xml
rb18d234 rf1fd69a 50 50 but it will try to use <command>strip</command> to strip the second-stage 51 51 loader. It also expects to be running as root for the install, and to 52 install for the root user, which user LFS cannot do. We also need to use52 install for the root user, which user CLFS cannot do. We also need to use 53 53 the 32-bit compiler, and to force <command>ld</command> to use a 32-bit 54 54 emulation. The following commands will fix and achieve this:</para> -
boot/sparc/fstab.xml
rb18d234 rf1fd69a 9 9 <?dbhtml filename="fstab.html"?> 10 10 11 <title>Creating the ${ LFS}/etc/fstab File</title>11 <title>Creating the ${CLFS}/etc/fstab File</title> 12 12 13 13 <indexterm zone="ch-boot-fstab"> 14 <primary sortas="e-${ LFS}/etc/fstab">${LFS}/etc/fstab</primary>14 <primary sortas="e-${CLFS}/etc/fstab">${CLFS}/etc/fstab</primary> 15 15 </indexterm> 16 16 … … 19 19 xpointer="xpointer(//*[@os='a'])"/> 20 20 21 <screen><userinput>cat > ${ LFS}/etc/fstab << "EOF"21 <screen><userinput>cat > ${CLFS}/etc/fstab << "EOF" 22 22 <literal># Begin /etc/fstab 23 23 -
boot/sparc/kernel.xml
rb18d234 rf1fd69a 84 84 85 85 <screen><userinput>make ARCH=sparc CROSS_COMPILE=${CLFS_TARGET}- \ 86 INSTALL_MOD_PATH=${ LFS} modules_install</userinput></screen>86 INSTALL_MOD_PATH=${CLFS} modules_install</userinput></screen> 87 87 88 88 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 94 94 xpointer="xpointer(//*[@os='v'])"/> 95 95 96 <screen><userinput>cp -v vmlinux ${ LFS}/boot/lfskernel-&linux-version;</userinput></screen>96 <screen><userinput>cp -v vmlinux ${CLFS}/boot/clfskernel-&linux-version;</userinput></screen> 97 97 98 98 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
boot/sparc/silo-build.xml
rb18d234 rf1fd69a 41 41 xpointer="xpointer(//*[@os='d'])"/> 42 42 43 <screen os="ab"><userinput>make DESTDIR=${ LFS} install</userinput></screen>43 <screen os="ab"><userinput>make DESTDIR=${CLFS} install</userinput></screen> 44 44 45 45 </sect2> -
boot/sparc/silo.xml
rb18d234 rf1fd69a 19 19 to what is in bootscripts.</para> 20 20 21 <screen><userinput>cat > ${ LFS}/etc/silo.conf << "EOF"21 <screen><userinput>cat > ${CLFS}/etc/silo.conf << "EOF" 22 22 <literal># Begin /etc/silo.conf 23 23 partition = 1 # Boot partition (= root partition) … … 25 25 timeout = 150 # Wait 15 seconds before booting the default section 26 26 27 image = /boot/ lfskernel-&linux-version;27 image = /boot/clfskernel-&linux-version; 28 28 label = linux 29 29 # End /etc/silo.conf</literal> -
boot/sparc/sysvinit.xml
rb18d234 rf1fd69a 58 58 59 59 <indexterm zone="conf-tools-sysvinit"> 60 <primary sortas="e-${ LFS}/etc/inittab">${LFS}/etc/inittab</primary>60 <primary sortas="e-${CLFS}/etc/inittab">${CLFS}/etc/inittab</primary> 61 61 </indexterm> 62 62 63 <para>Create a new file <filename>${ LFS}/etc/inittab</filename> by63 <para>Create a new file <filename>${CLFS}/etc/inittab</filename> by 64 64 running the following:</para> 65 65 66 <screen><userinput>cat > ${ LFS}/etc/inittab << "EOF"66 <screen><userinput>cat > ${CLFS}/etc/inittab << "EOF" 67 67 <literal># Begin /etc/inittab 68 68 -
boot/sparc64-64/flags.xml
rb18d234 rf1fd69a 14 14 we boot-up they will be there:</para> 15 15 16 <screen><userinput>echo export BUILD64=\""${BUILD64}\"" >> ${ LFS}/root/.bash_profile</userinput></screen>16 <screen><userinput>echo export BUILD64=\""${BUILD64}\"" >> ${CLFS}/root/.bash_profile</userinput></screen> 17 17 18 18 </sect1> -
boot/sparc64-64/silo-build.xml
rb18d234 rf1fd69a 51 51 xpointer="xpointer(//*[@os='f'])"/> 52 52 53 <screen os="ac"><userinput>tar -xvf silo-loaders-&silo-version;.tar.gz -C ${ LFS}</userinput></screen>53 <screen os="ac"><userinput>tar -xvf silo-loaders-&silo-version;.tar.gz -C ${CLFS}</userinput></screen> 54 54 55 55 </sect2> -
boot/sparc64/flags.xml
rb18d234 rf1fd69a 14 14 we boot-up they will be there:</para> 15 15 16 <screen><userinput>echo export BUILD32=\""${BUILD32}\"" >> ${ LFS}/root/.bash_profile17 echo export BUILD64=\""${BUILD64}\"" >> ${ LFS}/root/.bash_profile18 echo export CLFS_TARGET32=\""${CLFS_TARGET32}\"" >> ${ LFS}/root/.bash_profile</userinput></screen>16 <screen><userinput>echo export BUILD32=\""${BUILD32}\"" >> ${CLFS}/root/.bash_profile 17 echo export BUILD64=\""${BUILD64}\"" >> ${CLFS}/root/.bash_profile 18 echo export CLFS_TARGET32=\""${CLFS_TARGET32}\"" >> ${CLFS}/root/.bash_profile</userinput></screen> 19 19 20 20 </sect1> -
boot/sparc64/kernel.xml
rb18d234 rf1fd69a 85 85 xpointer="xpointer(//*[@os='s'])"/> 86 86 87 <screen><userinput>make INSTALL_MOD_PATH=${ LFS} ARCH=sparc64 \87 <screen><userinput>make INSTALL_MOD_PATH=${CLFS} ARCH=sparc64 \ 88 88 CROSS_COMPILE=${CLFS_TARGET}- modules_install</userinput></screen> 89 89 … … 96 96 xpointer="xpointer(//*[@os='v'])"/> 97 97 98 <screen><userinput>cp -v vmlinux ${ LFS}/boot/lfskernel-&linux-version;</userinput></screen>98 <screen><userinput>cp -v vmlinux ${CLFS}/boot/clfskernel-&linux-version;</userinput></screen> 99 99 100 100 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
boot/x86/grub-build.xml
rb18d234 rf1fd69a 54 54 xpointer="xpointer(//*[@os='f'])"/> 55 55 56 <screen os="ab"><userinput>make DESTDIR=${ LFS} install57 mkdir -v ${ LFS}/boot/grub58 cp -v ${ LFS}/usr/lib/grub/i386-pc/stage{1,2} ${LFS}/boot/grub</userinput></screen>56 <screen os="ab"><userinput>make DESTDIR=${CLFS} install 57 mkdir -v ${CLFS}/boot/grub 58 cp -v ${CLFS}/usr/lib/grub/i386-pc/stage{1,2} ${CLFS}/boot/grub</userinput></screen> 59 59 60 60 <para os="ac">The <filename class="directory">i386-pc</filename> directory … … 62 62 ones for different file systems. Review the files available and copy 63 63 the appropriate ones to the <filename 64 class="directory">${ LFS}/boot/grub</filename> directory. Most users will64 class="directory">${CLFS}/boot/grub</filename> directory. Most users will 65 65 copy the <filename>e2fs_stage1_5</filename> and/or 66 66 <filename>reiserfs_stage1_5</filename> files.</para> -
boot/x86/grub.xml
rb18d234 rf1fd69a 24 24 xpointer="xpointer(//*[@os='c'])"/> 25 25 26 <screen os="d"><userinput>dd if=${ LFS}/boot/grub/stage1 of=/dev/fd0 bs=512 count=127 dd if=${ LFS}/boot/grub/stage2 of=/dev/fd0 bs=512 seek=1</userinput></screen>26 <screen os="d"><userinput>dd if=${CLFS}/boot/grub/stage1 of=/dev/fd0 bs=512 count=1 27 dd if=${CLFS}/boot/grub/stage2 of=/dev/fd0 bs=512 seek=1</userinput></screen> 28 28 29 29 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 64 64 65 65 <para os="n">If all went well, GRUB will have reported finding its files 66 in <filename class="directory">${ LFS}/boot/grub</filename>. That's66 in <filename class="directory">${CLFS}/boot/grub</filename>. That's 67 67 all there is to it. Quit the <command>grub</command> shell:</para> 68 68 … … 75 75 xpointer="xpointer(//*[@os='p'])"/> 76 76 77 <screen><userinput>cat > ${ LFS}/boot/grub/menu.lst << "EOF"77 <screen><userinput>cat > ${CLFS}/boot/grub/menu.lst << "EOF" 78 78 <literal># Begin /boot/grub/menu.lst 79 79 … … 90 90 title CLFS &version; 91 91 root (hd0,3) 92 kernel /boot/ lfskernel-&linux-version; root=/dev/hda4</literal>92 kernel /boot/clfskernel-&linux-version; root=/dev/hda4</literal> 93 93 EOF</userinput></screen> 94 94 … … 97 97 xpointer="xpointer(//*[@os='q'])"/> 98 98 99 <screen os="r"><userinput>cat >> ${ LFS}/boot/grub/menu.lst << "EOF"99 <screen os="r"><userinput>cat >> ${CLFS}/boot/grub/menu.lst << "EOF" 100 100 <literal>title Red Hat 101 101 root (hd0,2) -
boot/x86/kernel.xml
rb18d234 rf1fd69a 72 72 73 73 <para os="af">If the use of kernel modules can't be avoided, an 74 <filename>${ LFS}/etc/modprobe.conf</filename> file may be needed.74 <filename>${CLFS}/etc/modprobe.conf</filename> file may be needed. 75 75 Information pertaining to modules and kernel configuration is 76 76 located in the kernel documentation in the <filename … … 92 92 93 93 <screen><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}- \ 94 INSTALL_MOD_PATH=${ LFS} modules_install</userinput></screen>94 INSTALL_MOD_PATH=${CLFS} modules_install</userinput></screen> 95 95 96 96 <para os="u">After kernel compilation is complete, additional steps are 97 97 required to complete the installation. Some files need to be copied to 98 the <filename class="directory">${ LFS}/boot</filename> directory.</para>98 the <filename class="directory">${CLFS}/boot</filename> directory.</para> 99 99 100 100 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 102 102 xpointer="xpointer(//*[@os='v'])"/> 103 103 104 <screen><userinput>cp -v arch/i386/boot/bzImage ${ LFS}/boot/lfskernel-&linux-version;</userinput></screen>104 <screen><userinput>cp -v arch/i386/boot/bzImage ${CLFS}/boot/clfskernel-&linux-version;</userinput></screen> 105 105 106 106 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 108 108 xpointer="xpointer(//*[@os='w'])"/> 109 109 110 <screen os="w1"><userinput>cp -v System.map ${ LFS}/boot/System.map-&linux-version;</userinput></screen>110 <screen os="w1"><userinput>cp -v System.map ${CLFS}/boot/System.map-&linux-version;</userinput></screen> 111 111 112 112 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 114 114 xpointer="xpointer(//*[@os='x'])"/> 115 115 116 <screen os="x1"><userinput>cp -v .config ${ LFS}/boot/config-&linux-version;</userinput></screen>116 <screen os="x1"><userinput>cp -v .config ${CLFS}/boot/config-&linux-version;</userinput></screen> 117 117 118 118 </sect2> -
boot/x86_64-64/flags.xml
rb18d234 rf1fd69a 14 14 we boot-up they will be there:</para> 15 15 16 <screen><userinput>echo export BUILD64=\""${BUILD64}\"" >> ${ LFS}/root/.bash_profile</userinput></screen>16 <screen><userinput>echo export BUILD64=\""${BUILD64}\"" >> ${CLFS}/root/.bash_profile</userinput></screen> 17 17 18 18 </sect1> -
boot/x86_64-64/lilo.xml
rb18d234 rf1fd69a 54 54 achieve this:</para> 55 55 56 <screen os="f" role="nodump"><userinput>keytab-lilo.pl uk >i${ LFS}/boot/uk.ktl</userinput></screen>56 <screen os="f" role="nodump"><userinput>keytab-lilo.pl uk >i${CLFS}/boot/uk.ktl</userinput></screen> 57 57 58 58 <para os="g">The argument to the command is the name of the keymap, or if … … 62 62 <para os="i">The next step is to create /etc/lilo.conf</para> 63 63 64 <screen os="j" role="nodump"><userinput>cat > ${ LFS}/etc/lilo.conf << "EOF"64 <screen os="j" role="nodump"><userinput>cat > ${CLFS}/etc/lilo.conf << "EOF" 65 65 <literal># Begin /etc/lilo.conf 66 66 # lilo.conf … … 74 74 75 75 # set the name of the default image to boot 76 default= lfs76 default=clfs 77 77 78 78 # define an image 79 image=/boot/ lfskernel80 label= lfs79 image=/boot/clfskernel 80 label=clfs 81 81 root=/dev/<partition> 82 82 read-only -
boot/x86_64/flags.xml
rb18d234 rf1fd69a 14 14 we boot-up they will be there:</para> 15 15 16 <screen><userinput>echo export BUILD32=\""${BUILD32}\"" >> ${ LFS}/root/.bash_profile17 echo export BUILD64=\""${BUILD64}\"" >> ${ LFS}/root/.bash_profile18 echo export CLFS_TARGET32=\""${CLFS_TARGET32}\"" >> ${ LFS}/root/.bash_profile</userinput></screen>16 <screen><userinput>echo export BUILD32=\""${BUILD32}\"" >> ${CLFS}/root/.bash_profile 17 echo export BUILD64=\""${BUILD64}\"" >> ${CLFS}/root/.bash_profile 18 echo export CLFS_TARGET32=\""${CLFS_TARGET32}\"" >> ${CLFS}/root/.bash_profile</userinput></screen> 19 19 20 20 </sect1> -
boot/x86_64/grub-build.xml
rb18d234 rf1fd69a 46 46 xpointer="xpointer(//*[@os='f'])"/> 47 47 48 <screen os="ab"><userinput>make DESTDIR=${ LFS} install49 mkdir -v ${ LFS}/boot/grub50 cp -v ${ LFS}/usr/lib/grub/x86_64-pc/stage{1,2} ${LFS}/boot/grub</userinput></screen>48 <screen os="ab"><userinput>make DESTDIR=${CLFS} install 49 mkdir -v ${CLFS}/boot/grub 50 cp -v ${CLFS}/usr/lib/grub/x86_64-pc/stage{1,2} ${CLFS}/boot/grub</userinput></screen> 51 51 52 52 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 58 58 files, different ones for different file systems. Review the files 59 59 available and copy the appropriate ones to the <filename 60 class="directory">${ LFS}/boot/grub</filename> directory. Most60 class="directory">${CLFS}/boot/grub</filename> directory. Most 61 61 users will copy the <filename>e2fs_stage1_5</filename> and/or 62 62 <filename>reiserfs_stage1_5</filename> files.</para> -
boot/x86_64/kernel.xml
rb18d234 rf1fd69a 88 88 89 89 <screen><userinput>make ARCH=x86_64 CROSS_COMPILE=${CLFS_TARGET}- \ 90 INSTALL_MOD_PATH=${ LFS} modules_install</userinput></screen>90 INSTALL_MOD_PATH=${CLFS} modules_install</userinput></screen> 91 91 92 92 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 98 98 xpointer="xpointer(//*[@os='v'])"/> 99 99 100 <screen><userinput>cp -v arch/x86_64/boot/bzImage ${ LFS}/boot/lfskernel-&linux-version;</userinput></screen>100 <screen><userinput>cp -v arch/x86_64/boot/bzImage ${CLFS}/boot/clfskernel-&linux-version;</userinput></screen> 101 101 102 102 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
Note:
See TracChangeset
for help on using the changeset viewer.