Changeset f1fd69a for boot/common


Ignore:
Timestamp:
Jul 1, 2006, 11:52:01 PM (18 years ago)
Author:
Jim Gifford <clfs@…>
Children:
6ea30c8
Parents:
b18d234
Message:

r4227@server: jim | 2006-07-01 23:46:16 -0700
More LFS to CLFS Updates

Location:
boot/common
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • boot/common/bootscripts.xml

    rb18d234 rf1fd69a  
    2525    <para>Install the package:</para>
    2626
    27 <screen><userinput>make ETCDIR=${LFS}/etc minimal</userinput></screen>
     27<screen><userinput>make ETCDIR=${CLFS}/etc minimal</userinput></screen>
    2828
    2929    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     
    4242    xpointer="xpointer(//*[@os='c'])"/>
    4343
    44 <screen><userinput>cat &gt; ${LFS}/etc/sysconfig/clock &lt;&lt; "EOF"
     44<screen><userinput>cat &gt; ${CLFS}/etc/sysconfig/clock &lt;&lt; "EOF"
    4545<literal># Begin /etc/sysconfig/clock
    4646
  • boot/common/changingowner.xml

    rb18d234 rf1fd69a  
    1313  <para os="a">Currently, the <filename class="directory">$CLFS</filename>
    1414  directory and all of its subdirectories  are owned by the user
    15   <systemitem class="username">lfs</systemitem>, a user that exists only
     15  <systemitem class="username">clfs</systemitem>, a user that exists only
    1616  on the host system. For security reasons, the $CLFS root directory and
    1717  all of it subdirectories should be owned by
     
    1919  for $CLFS and its subdirectories by running this command:</para>
    2020
    21 <screen os="b"><userinput>chown -Rv root:root ${LFS}</userinput></screen>
     21<screen os="b"><userinput>chown -Rv root:root ${CLFS}</userinput></screen>
    2222
    2323</sect1>
  • boot/common/createfiles.xml

    rb18d234 rf1fd69a  
    1616  the next chapter after the software has been installed.</para>
    1717
    18 <screen><userinput>ln -sv /tools/bin/{bash,cat,grep,pwd,stty} ${LFS}/bin
    19 ln -sv /tools/lib/libgcc_s.so{,.1} ${LFS}/usr/lib
    20 ln -sv /tools/lib/libstd* ${LFS}/usr/lib
    21 ln -sv bash ${LFS}/bin/sh</userinput></screen>
     18<screen><userinput>ln -sv /tools/bin/{bash,cat,grep,pwd,stty} ${CLFS}/bin
     19ln -sv /tools/lib/libgcc_s.so{,.1} ${CLFS}/usr/lib
     20ln -sv /tools/lib/libstd* ${CLFS}/usr/lib
     21ln -sv bash ${CLFS}/bin/sh</userinput></screen>
    2222
    2323</sect1>
  • boot/common/creatingdirs.xml

    rb18d234 rf1fd69a  
    1414  standard directory tree by issuing the following commands:</para>
    1515
    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}/root
    19 install -dv -m 1777 ${LFS}{/var,}/tmp
    20 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}; do
     16<screen><userinput>mkdir -pv ${CLFS}/{bin,boot,dev,etc/opt,home,lib,mnt,opt}
     17mkdir -pv ${CLFS}/{proc,media/{floppy,cdrom},sbin,srv,sys,var}
     18install -dv -m 0750 ${CLFS}/root
     19install -dv -m 1777 ${CLFS}{/var,}/tmp
     20mkdir -pv ${CLFS}/usr/{,local/}{bin,include,lib,sbin,src}
     21mkdir -pv ${CLFS}/usr/{,local/}share/{doc,info,locale,man}
     22mkdir -v  ${CLFS}/usr/{,local/}share/{misc,terminfo,zoneinfo}
     23mkdir -pv ${CLFS}/usr/{,local/}share/man/man{1..8}
     24for dir in ${CLFS}/usr{,/local}; do
    2525  ln -sv share/{man,doc,info} $dir
    2626done
    27 mkdir -v ${LFS}/var/{lock,log,mail,run,spool}
    28 mkdir -pv ${LFS}/var/{opt,cache,lib/{misc,locate},local}</userinput></screen>
     27mkdir -v ${CLFS}/var/{lock,log,mail,run,spool}
     28mkdir -pv ${CLFS}/var/{opt,cache,lib/{misc,locate},local}</userinput></screen>
    2929
    3030  <para os="b">Directories are, by default, created with permission mode 755,
     
    3535
    3636  <para os="c">The first mode change ensures that not just anybody can enter
    37   the <filename class="directory">${LFS}/root</filename> directory&mdash;the
     37  the <filename class="directory">${CLFS}/root</filename> directory&mdash;the
    3838  same as a normal user would do with his or her home directory. The
    3939  second mode change makes sure that any user can write to the
    40   <filename class="directory">${LFS}/tmp</filename> and
    41   <filename class="directory">${LFS}/var/tmp</filename> directories, but
     40  <filename class="directory">${CLFS}/tmp</filename> and
     41  <filename class="directory">${CLFS}/var/tmp</filename> directories, but
    4242  cannot remove another user's files from them. The latter is prohibited
    4343  by the so-called <quote>sticky bit,</quote> the highest bit (1) in the
  • boot/common/devices.xml

    rb18d234 rf1fd69a  
    99  <?dbhtml filename="devices.html"?>
    1010
    11   <title>Populating ${LFS}/dev</title>
     11  <title>Populating ${CLFS}/dev</title>
    1212
    1313  <indexterm zone="ch-boot-devices">
    14     <primary sortas="e-${LFS}/dev/*">${LFS}/dev/*</primary>
     14    <primary sortas="e-${CLFS}/dev/*">${CLFS}/dev/*</primary>
    1515  </indexterm>
    1616
     
    3535    the following commands:</para>
    3636
    37 <screen><userinput>mknod -m 600 ${LFS}/dev/console c 5 1
    38 mknod -m 666 ${LFS}/dev/null c 1 3</userinput></screen>
     37<screen><userinput>mknod -m 600 ${CLFS}/dev/console c 5 1
     38mknod -m 666 ${CLFS}/dev/null c 1 3</userinput></screen>
    3939
    4040  </sect2>
  • boot/common/e2fsprogs.xml

    rb18d234 rf1fd69a  
    6262    <para os="h">Install the binaries and documentation:</para>
    6363
    64 <screen os="i"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     64<screen os="i"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
    6565
    6666    <variablelist os="j">
     
    6868
    6969      <varlistentry>
    70         <term><parameter>DESTDIR=${LFS}</parameter></term>
     70        <term><parameter>DESTDIR=${CLFS}</parameter></term>
    7171        <listitem>
    7272          <para>The Makefile for e2fsprogs hard-codes a path to the
     
    8787    <para os="ad">Create needed symlinks for a bootable system:</para>
    8888
    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>
    9090
    9191  </sect2>
  • boot/common/fstab.xml

    rb18d234 rf1fd69a  
    99  <?dbhtml filename="fstab.html"?>
    1010
    11   <title>Creating the ${LFS}/etc/fstab File</title>
     11  <title>Creating the ${CLFS}/etc/fstab File</title>
    1212
    1313  <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>
    1515  </indexterm>
    1616
    17   <para os="a">The <filename>${LFS}/etc/fstab</filename> file is used by some
     17  <para os="a">The <filename>${CLFS}/etc/fstab</filename> file is used by some
    1818  programs to determine where file systems are to be mounted by default,
    1919  which must be checked, and in which order. Create a new file systems
    2020  table like this:</para>
    2121
    22 <screen><userinput>cat &gt; ${LFS}/etc/fstab &lt;&lt; "EOF"
     22<screen><userinput>cat &gt; ${CLFS}/etc/fstab &lt;&lt; "EOF"
    2323<literal># Begin /etc/fstab
    2424
  • boot/common/introduction.xml

    rb18d234 rf1fd69a  
    2020  partition ($CLFS/bin, $CLFS/usr/lib, etc...), rather than /tools, using the
    2121  "DESTDIR" option with make. This will require the
    22   <systemitem class="username">lfs</systemitem> user to have write access to
     22  <systemitem class="username">clfs</systemitem> user to have write access to
    2323  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.
    2525  Run the following command as <systemitem
    2626  class="username">root</systemitem>:</para>
    2727
    28 <screen><userinput>chown -v lfs $CLFS</userinput></screen>
     28<screen><userinput>chown -v clfs $CLFS</userinput></screen>
    2929
    3030</sect1>
  • boot/common/module-init-tools.xml

    rb18d234 rf1fd69a  
    4242    xpointer="xpointer(//*[@os='j'])"/>
    4343
    44 <screen os="k"><userinput>make DESTDIR="${LFS}" install</userinput></screen>
     44<screen os="k"><userinput>make DESTDIR="${CLFS}" install</userinput></screen>
    4545
    4646  </sect2>
  • boot/common/pwdgroup.xml

    rb18d234 rf1fd69a  
    1212
    1313  <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>
    1515  </indexterm>
    1616
    1717  <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>
    1919  </indexterm>
    2020
    2121  <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>
    2323  </indexterm>
    2424
    2525  <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>
    2727  </indexterm>
    2828
    2929  <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>
    3131  </indexterm>
    3232
    3333  <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>
    3535  </indexterm>
    3636
    3737  <para>In order for user <systemitem class="username">root</systemitem> to
    3838  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>
    4141
    42   <para>Create the <filename>${LFS}/etc/passwd</filename> file by running
     42  <para>Create the <filename>${CLFS}/etc/passwd</filename> file by running
    4343  the following command:</para>
    4444
    45 <screen><userinput>cat &gt; ${LFS}/etc/passwd &lt;&lt; "EOF"
     45<screen><userinput>cat &gt; ${CLFS}/etc/passwd &lt;&lt; "EOF"
    4646<literal>root:x:0:0:root:/root:/bin/bash</literal>
    4747EOF</userinput></screen>
     
    5151  later.</para>
    5252
    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
    12054  the following command:</para>
    12155
    122 <screen><userinput>cat &gt; ${LFS}/etc/group &lt;&lt; "EOF"
     56<screen><userinput>cat &gt; ${CLFS}/etc/group &lt;&lt; "EOF"
    12357<literal>root:x:0:
    12458bin:x:1:
     
    217151  proper permissions:</para>
    218152
    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/lastlog
    221 chmod -v 600 ${LFS}/var/log/btmp</userinput></screen>
     153<screen><userinput>touch ${CLFS}/var/run/utmp ${CLFS}/var/log/{btmp,lastlog,wtmp}
     154chmod -v 664 ${CLFS}/var/run/utmp ${CLFS}/var/log/lastlog
     155chmod -v 600 ${CLFS}/var/log/btmp</userinput></screen>
    222156
    223   <para>The <filename>${LFS}/var/run/utmp</filename> file records the users
    224   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>
    225159  file records all logins and logouts. The
    226   <filename>${LFS}/var/log/lastlog</filename> file records when
    227   each user last logged in. The <filename>${LFS}/var/log/btmp</filename> file
     160  <filename>${CLFS}/var/log/lastlog</filename> file records when
     161  each user last logged in. The <filename>${CLFS}/var/log/btmp</filename> file
    228162  records the bad login attempts.</para>
    229163
  • boot/common/settingenviron.xml

    rb18d234 rf1fd69a  
    1515  <filename>.bash_profile</filename> file now:</para>
    1616
    17 <screen><userinput>cat &gt; ${LFS}/root/.bash_profile &lt;&lt; "EOF"
     17<screen><userinput>cat &gt; ${CLFS}/root/.bash_profile &lt;&lt; "EOF"
    1818<literal>set +h
    1919PS1='\u:\w\$ '
  • boot/common/sysvinit.xml

    rb18d234 rf1fd69a  
    2828<screen os="ab"><userinput>cp -v src/Makefile src/Makefile.orig
    2929sed -e 's@root@0@g' \
    30     -e "s@/dev/initctl@${LFS}&amp;@g" \
     30    -e "s@/dev/initctl@${CLFS}&amp;@g" \
    3131    -e 's@\(mknod \)-m \([0-9]* \)\(.* \)p@\1\3p; chmod \2\3@g' \
    3232    -e "s@/usr/lib@/tools/lib@" \
     
    4444    xpointer="xpointer(//*[@os='e'])"/>
    4545
    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>
    4747
    4848  </sect2>
     
    5757
    5858    <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>
    6060    </indexterm>
    6161
    62     <para os="ae">Create a new file <filename>${LFS}/etc/inittab</filename> by
     62    <para os="ae">Create a new file <filename>${CLFS}/etc/inittab</filename> by
    6363    running the following:</para>
    6464
    65 <screen os="af"><userinput>cat &gt; ${LFS}/etc/inittab &lt;&lt; "EOF"
     65<screen os="af"><userinput>cat &gt; ${CLFS}/etc/inittab &lt;&lt; "EOF"
    6666<literal># Begin /etc/inittab
    6767
  • boot/common/udev-rules.xml

    rb18d234 rf1fd69a  
    99  <?dbhtml filename="udev-rules.html"?>
    1010
    11   <title>Udev Rules-&udev-cross-lfs-version;</title>
     11  <title>Udev Rules-&udev-cross-CLFS-version;</title>
    1212
    1313  <indexterm zone="ch-boot-udev-rules">
     
    2626    xpointer="xpointer(//*[@os='a'])"/>
    2727
    28 <screen><userinput>rm -vf ${LFS}/etc/udev/rules.d/*</userinput></screen>
     28<screen><userinput>rm -vf ${CLFS}/etc/udev/rules.d/*</userinput></screen>
    2929
    3030    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     
    3232    xpointer="xpointer(//*[@os='c'])"/>
    3333
    34 <screen><userinput>make DESTDIR=${LFS} install-minimal</userinput></screen>
     34<screen><userinput>make DESTDIR=${CLFS} install-minimal</userinput></screen>
    3535
    3636  </sect2>
  • boot/common/udev.xml

    rb18d234 rf1fd69a  
    3333    xpointer="xpointer(//*[@os='g'])"/>
    3434
    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>
    3636
    3737  </sect2>
  • boot/common/util-linux.xml

    rb18d234 rf1fd69a  
    125125<screen os="bi"><userinput>make HAVE_KILL=yes HAVE_SLN=yes HAVE_SHADOW=no \
    126126    USE_TTY_GROUP=no CPUOPT="" ARCH="" \
    127     CPU="" DESTDIR=${LFS} install</userinput></screen>
     127    CPU="" DESTDIR=${CLFS} install</userinput></screen>
    128128
    129129  </sect2>
  • boot/common/whatnext.xml

    rb18d234 rf1fd69a  
    1212
    1313  <para>Now you're at the point to get your <filename
    14   class="directory">${LFS}</filename> directory copied over to your target
     14  class="directory">${CLFS}</filename> directory copied over to your target
    1515  machine. The easiest method would be to tar it up and copy the file.</para>
    1616
    17 <screen><userinput>tar -jcvf ${LFS}.tar.bz2 ${LFS}</userinput></screen>
     17<screen><userinput>tar -jcvf ${CLFS}.tar.bz2 ${CLFS}</userinput></screen>
    1818
    1919  <para>Some others have came up with other ideas on how to do this.
Note: See TracChangeset for help on using the changeset viewer.