Changeset 59d0399 in clfs-embedded for BOOK/bootscripts/common
- Timestamp:
- Oct 15, 2013, 1:00:05 PM (11 years ago)
- 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)
- Location:
- BOOK/bootscripts/common
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/bootscripts/common/bootscripts.xml
r790f34e r59d0399 36 36 <para>Install the package:</para> 37 37 38 <screen><userinput>make DESTDIR=${CLFS} install-bootscripts</userinput></screen>38 <screen><userinput>make DESTDIR=${CLFS}/targetfs install-bootscripts</userinput></screen> 39 39 40 40 <para>The CLFS startup bootscript is <filename>/etc/rc.d/startup</filename>, 41 41 but BusyBox will look for <filename>/etc/init.d/rcS</filename> to use as its 42 42 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> 44 44 45 <screen><userinput>install -dv ${CLFS}/ etc/init.d46 ln -sv ../rc.d/startup ${CLFS}/ etc/init.d/rcS</userinput></screen>45 <screen><userinput>install -dv ${CLFS}/targetfs/etc/init.d 46 ln -sv ../rc.d/startup ${CLFS}/targetfs/etc/init.d/rcS</userinput></screen> 47 47 48 48 </sect2> -
BOOK/bootscripts/common/hostname.xml
r790f34e r59d0399 22 22 and enter a hostname by running:</para> 23 23 24 <screen><userinput>echo "<replaceable>[clfs]</replaceable>" > ${CLFS}/ etc/HOSTNAME</userinput></screen>24 <screen><userinput>echo "<replaceable>[clfs]</replaceable>" > ${CLFS}/targetfs/etc/HOSTNAME</userinput></screen> 25 25 26 26 <para><replaceable>[clfs]</replaceable> needs to be replaced with the -
BOOK/bootscripts/common/hosts.xml
r790f34e r59d0399 50 50 <para>Create the <filename>/etc/hosts</filename> file by running:</para> 51 51 52 <screen><userinput>cat > ${CLFS}/ etc/hosts << "EOF"52 <screen><userinput>cat > ${CLFS}/targetfs/etc/hosts << "EOF" 53 53 <literal># Begin /etc/hosts (network card version) 54 54 … … 69 69 <filename>/etc/hosts</filename> file by running:</para> 70 70 71 <screen><userinput>cat > ${CLFS}/ etc/hosts << "EOF"71 <screen><userinput>cat > ${CLFS}/targetfs/etc/hosts << "EOF" 72 72 <literal># Begin /etc/hosts (no network card version) 73 73 -
BOOK/bootscripts/common/inittab.xml
r790f34e r59d0399 19 19 <para os="a">Now we will create the inittab file for use with our system:</para> 20 20 21 <screen os="b"><userinput>cat > ${CLFS}/ etc/inittab<< "EOF"21 <screen os="b"><userinput>cat > ${CLFS}/targetfs/etc/inittab<< "EOF" 22 22 <literal># /etc/inittab 23 23 -
BOOK/bootscripts/common/mdev.xml
r790f34e r59d0399 32 32 <para os="a">Now we will create the mdev.conf file for use with our system:</para> 33 33 34 <screen os="b"><?dbfo keep-together="auto"?><userinput>cat > ${CLFS}/ etc/mdev.conf<< "EOF"34 <screen os="b"><?dbfo keep-together="auto"?><userinput>cat > ${CLFS}/targetfs/etc/mdev.conf<< "EOF" 35 35 <literal># /etc/mdev/conf 36 36 -
BOOK/bootscripts/common/network.xml
r790f34e r59d0399 30 30 file for use by the entire system:</para> 31 31 32 <screen><userinput>cat > ${CLFS}/ etc/network.conf << "EOF"32 <screen><userinput>cat > ${CLFS}/targetfs/etc/network.conf << "EOF" 33 33 <literal># /etc/network.conf 34 34 # Global Networking Configuration … … 62 62 file for the <emphasis>eth0</emphasis> device:</para> 63 63 64 <screen><userinput>mkdir ${CLFS}/ etc/network.d &&65 cat > ${CLFS}/ etc/network.d/interface.eth0 << "EOF"64 <screen><userinput>mkdir ${CLFS}/targetfs/etc/network.d && 65 cat > ${CLFS}/targetfs/etc/network.d/interface.eth0 << "EOF" 66 66 <literal># Network Interface Configuration 67 67 … … 101 101 102 102 <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> 104 104 105 105 <indexterm zone="udhcpc.conf"> … … 110 110 Create a sample udhcpc.conf:</para> 111 111 112 <screen><userinput>cat > ${CLFS}/etc/udhcpc.conf << "EOF"112 <screen><userinput>cat > ${CLFS}/targetfs/etc/udhcpc.conf << "EOF" 113 113 <literal>#!/bin/sh 114 114 # udhcpc Interface Configuration … … 160 160 </literal>EOF 161 161 162 chmod +x ${CLFS}/ etc/udhcpc.conf</userinput></screen>162 chmod +x ${CLFS}/targetfs/etc/udhcpc.conf</userinput></screen> 163 163 164 164 </sect2> 165 165 166 166 <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> 168 168 169 169 <indexterm zone="resolv.conf"> … … 179 179 following:</para> 180 180 181 <screen><userinput>cat > ${CLFS}/ etc/resolv.conf << "EOF"181 <screen><userinput>cat > ${CLFS}/targetfs/etc/resolv.conf << "EOF" 182 182 <literal># Begin /etc/resolv.conf 183 183 -
BOOK/bootscripts/common/profile.xml
r790f34e r59d0399 19 19 <para os="a">Now we will create the profile file for use with our system:</para> 20 20 21 <screen os="b"><userinput>cat > ${CLFS}/ etc/profile<< "EOF"21 <screen os="b"><userinput>cat > ${CLFS}/targetfs/etc/profile<< "EOF" 22 22 <literal># /etc/profile 23 23
Note:
See TracChangeset
for help on using the changeset viewer.