Changeset 59d0399 in clfs-embedded for BOOK/bootscripts


Ignore:
Timestamp:
Oct 15, 2013, 1:00:05 PM (11 years ago)
Author:
Andrew Bradford <andrew@…>
Branches:
master
Children:
9137ee9
Parents:
790f34e
git-author:
Andrew Bradford <andrew@…> (10/14/13 12:11:10)
git-committer:
Andrew Bradford <andrew@…> (10/15/13 13:00:05)
Message:

Update all bootscripts ch to use ${CLFS}/targetfs

Location:
BOOK/bootscripts/common
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • BOOK/bootscripts/common/bootscripts.xml

    r790f34e r59d0399  
    3636    <para>Install the package:</para>
    3737
    38 <screen><userinput>make DESTDIR=${CLFS} install-bootscripts</userinput></screen>
     38<screen><userinput>make DESTDIR=${CLFS}/targetfs install-bootscripts</userinput></screen>
    3939
    4040    <para>The CLFS startup bootscript is <filename>/etc/rc.d/startup</filename>,
    4141    but BusyBox will look for <filename>/etc/init.d/rcS</filename> to use as its
    4242    startup script.  To ensure BusyBox finds the startup script, create the
    43     <filename>${CLFS}/etc/init.d</filename> directory and a symlink:</para>
     43    <filename>${CLFS}/targetfs/etc/init.d</filename> directory and a symlink:</para>
    4444
    45 <screen><userinput>install -dv ${CLFS}/etc/init.d
    46 ln -sv ../rc.d/startup ${CLFS}/etc/init.d/rcS</userinput></screen>
     45<screen><userinput>install -dv ${CLFS}/targetfs/etc/init.d
     46ln -sv ../rc.d/startup ${CLFS}/targetfs/etc/init.d/rcS</userinput></screen>
    4747
    4848  </sect2>
  • BOOK/bootscripts/common/hostname.xml

    r790f34e r59d0399  
    2222  and enter a hostname by running:</para>
    2323
    24   <screen><userinput>echo "<replaceable>[clfs]</replaceable>" &gt; ${CLFS}/etc/HOSTNAME</userinput></screen>
     24  <screen><userinput>echo "<replaceable>[clfs]</replaceable>" &gt; ${CLFS}/targetfs/etc/HOSTNAME</userinput></screen>
    2525
    2626  <para><replaceable>[clfs]</replaceable> needs to be replaced with the
  • BOOK/bootscripts/common/hosts.xml

    r790f34e r59d0399  
    5050  <para>Create the  <filename>/etc/hosts</filename> file by running:</para>
    5151
    52 <screen><userinput>cat &gt; ${CLFS}/etc/hosts &lt;&lt; "EOF"
     52<screen><userinput>cat &gt; ${CLFS}/targetfs/etc/hosts &lt;&lt; "EOF"
    5353<literal># Begin /etc/hosts (network card version)
    5454
     
    6969  <filename>/etc/hosts</filename> file by running:</para>
    7070
    71 <screen><userinput>cat &gt; ${CLFS}/etc/hosts &lt;&lt; "EOF"
     71<screen><userinput>cat &gt; ${CLFS}/targetfs/etc/hosts &lt;&lt; "EOF"
    7272<literal># Begin /etc/hosts (no network card version)
    7373
  • BOOK/bootscripts/common/inittab.xml

    r790f34e r59d0399  
    1919  <para os="a">Now we will create the inittab file for use with our system:</para>
    2020
    21 <screen os="b"><userinput>cat &gt; ${CLFS}/etc/inittab&lt;&lt; "EOF"
     21<screen os="b"><userinput>cat &gt; ${CLFS}/targetfs/etc/inittab&lt;&lt; "EOF"
    2222<literal># /etc/inittab
    2323
  • BOOK/bootscripts/common/mdev.xml

    r790f34e r59d0399  
    3232<para os="a">Now we will create the mdev.conf file for use with our system:</para>
    3333
    34 <screen os="b"><?dbfo keep-together="auto"?><userinput>cat &gt; ${CLFS}/etc/mdev.conf&lt;&lt; "EOF"
     34<screen os="b"><?dbfo keep-together="auto"?><userinput>cat &gt; ${CLFS}/targetfs/etc/mdev.conf&lt;&lt; "EOF"
    3535<literal># /etc/mdev/conf
    3636
  • BOOK/bootscripts/common/network.xml

    r790f34e r59d0399  
    3030    file for use by the entire system:</para>
    3131
    32 <screen><userinput>cat &gt; ${CLFS}/etc/network.conf &lt;&lt; "EOF"
     32<screen><userinput>cat &gt; ${CLFS}/targetfs/etc/network.conf &lt;&lt; "EOF"
    3333<literal># /etc/network.conf
    3434# Global Networking Configuration
     
    6262    file for the <emphasis>eth0</emphasis> device:</para>
    6363
    64 <screen><userinput>mkdir ${CLFS}/etc/network.d &amp;&amp;
    65 cat &gt; ${CLFS}/etc/network.d/interface.eth0 &lt;&lt; "EOF"
     64<screen><userinput>mkdir ${CLFS}/targetfs/etc/network.d &amp;&amp;
     65cat &gt; ${CLFS}/targetfs/etc/network.d/interface.eth0 &lt;&lt; "EOF"
    6666<literal># Network Interface Configuration
    6767
     
    101101
    102102  <sect2 id="udhcpc.conf">
    103     <title>Creating the ${CLFS}/etc/udhcpc.conf File</title>
     103    <title>Creating the ${CLFS}/targetfs/etc/udhcpc.conf File</title>
    104104
    105105    <indexterm zone="udhcpc.conf">
     
    110110    Create a sample udhcpc.conf:</para>
    111111
    112 <screen><userinput>cat &gt; ${CLFS}/etc/udhcpc.conf &lt;&lt; "EOF"
     112  <screen><userinput>cat &gt; ${CLFS}/targetfs/etc/udhcpc.conf &lt;&lt; "EOF"
    113113<literal>#!/bin/sh
    114114# udhcpc Interface Configuration
     
    160160</literal>EOF
    161161
    162 chmod +x ${CLFS}/etc/udhcpc.conf</userinput></screen>
     162chmod +x ${CLFS}/targetfs/etc/udhcpc.conf</userinput></screen>
    163163
    164164  </sect2>
    165165
    166166  <sect2 id="resolv.conf">
    167     <title>Creating the ${CLFS}/etc/resolv.conf File</title>
     167    <title>Creating the ${CLFS}/targetfs/etc/resolv.conf File</title>
    168168
    169169    <indexterm zone="resolv.conf">
     
    179179    following:</para>
    180180
    181 <screen><userinput>cat &gt; ${CLFS}/etc/resolv.conf &lt;&lt; "EOF"
     181<screen><userinput>cat &gt; ${CLFS}/targetfs/etc/resolv.conf &lt;&lt; "EOF"
    182182<literal># Begin /etc/resolv.conf
    183183
  • BOOK/bootscripts/common/profile.xml

    r790f34e r59d0399  
    1919  <para os="a">Now we will create the profile file for use with our system:</para>
    2020
    21 <screen os="b"><userinput>cat &gt; ${CLFS}/etc/profile&lt;&lt; "EOF"
     21<screen os="b"><userinput>cat &gt; ${CLFS}/targetfs/etc/profile&lt;&lt; "EOF"
    2222<literal># /etc/profile
    2323
Note: See TracChangeset for help on using the changeset viewer.