Ignore:
Timestamp:
Apr 12, 2014, 3:43:00 AM (9 years ago)
Author:
Chris Staub <chris@…>
Branches:
clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
ba2a6ce0
Parents:
9a995bd
Message:

Started moving stuff in boot section to /tools, starting with inittab and its references to agetty

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/boot/common/sysvinit.xml

    r9a995bd rdbc8e54  
    3434    src/Makefile.orig > src/Makefile</userinput></screen>
    3535
     36    <para os="bc">Change the location of inittab:</para>
     37
     38<screen os="bd"><userinput>cp -v src/paths.h{,.orig}
     39sed 's@/etc/inittab@/tools&amp;@' src/paths.h.orig &gt; src/paths.h</userinput></screen>
     40
    3641    <para os ="c">Compile the package:</para>
    3742
     
    5762    </indexterm>
    5863
    59     <para>Create a new file <filename>${CLFS}/etc/inittab</filename> by running the
     64    <para>Create a new file <filename>/tools/etc/inittab</filename> by running the
    6065    following:</para>
    6166
    62 <screen><userinput>cat &gt; ${CLFS}/etc/inittab &lt;&lt; "EOF"
    63 <literal># Begin /etc/inittab
     67<screen><userinput>cat &gt; /tools/etc/inittab &lt;&lt; "EOF"
     68<literal># Begin /tools/etc/inittab
    6469
    6570id:3:initdefault:
     
    7782ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
    7883
    79 su:S016:once:/sbin/sulogin
     84su:S016:once:/tools/sbin/sulogin
    8085</literal>
    8186EOF</userinput></screen>
    8287
    8388    <para>The following command adds the standard virtual terminals to
    84     <filename>${CLFS}/etc/inittab</filename>. If your system only has a serial
     89    <filename>/tools/etc/inittab</filename>. If your system only has a serial
    8590    console skip the following command:</para>
    8691
    87 <screen><userinput>cat &gt;&gt; ${CLFS}/etc/inittab &lt;&lt; "EOF"
    88 <literal>1:2345:respawn:/sbin/agetty --noclear -I '\033(K' tty1 9600
    89 2:2345:respawn:/sbin/agetty --noclear -I '\033(K' tty2 9600
    90 3:2345:respawn:/sbin/agetty --noclear -I '\033(K' tty3 9600
    91 4:2345:respawn:/sbin/agetty --noclear -I '\033(K' tty4 9600
    92 5:2345:respawn:/sbin/agetty --noclear -I '\033(K' tty5 9600
    93 6:2345:respawn:/sbin/agetty --noclear -I '\033(K' tty6 9600
     92<screen><userinput>cat &gt;&gt; /tools/etc/inittab &lt;&lt; "EOF"
     93<literal>1:2345:respawn:/tools/sbin/agetty --noclear -I '\033(K' tty1 9600
     942:2345:respawn:/tools/sbin/agetty --noclear -I '\033(K' tty2 9600
     953:2345:respawn:/tools/sbin/agetty --noclear -I '\033(K' tty3 9600
     964:2345:respawn:/tools/sbin/agetty --noclear -I '\033(K' tty4 9600
     975:2345:respawn:/tools/sbin/agetty --noclear -I '\033(K' tty5 9600
     986:2345:respawn:/tools/sbin/agetty --noclear -I '\033(K' tty6 9600
    9499</literal>
    95100EOF</userinput></screen>
    96101
    97102    <para>If your system has a serial console, run the following command to add
    98     the entry to <filename>${CLFS}/etc/inittab</filename>.</para>
    99 
    100 <screen><userinput>cat &gt;&gt; ${CLFS}/etc/inittab &lt;&lt; "EOF"
    101 <literal>c0:12345:respawn:/sbin/agetty --noclear 115200 ttyS0 vt100
     103    the entry to <filename>/tools/etc/inittab</filename>.</para>
     104
     105<screen><userinput>cat &gt;&gt; /tools/etc/inittab &lt;&lt; "EOF"
     106<literal>c0:12345:respawn:/tools/sbin/agetty --noclear 115200 ttyS0 vt100
    102107</literal>
    103108EOF</userinput></screen>
    104109
    105    <para>Finally, add the end line to <filename>${CLFS}/etc/inittab</filename>.</para>
    106 
    107 <screen><userinput>cat &gt;&gt; ${CLFS}/etc/inittab &lt;&lt; "EOF"
    108 <literal># End /etc/inittab</literal>
     110   <para>Finally, add the end line to <filename>/tools/etc/inittab</filename>.</para>
     111
     112<screen><userinput>cat &gt;&gt; /tools/etc/inittab &lt;&lt; "EOF"
     113<literal># End /tools/etc/inittab</literal>
    109114EOF</userinput></screen>
    110115
Note: See TracChangeset for help on using the changeset viewer.