Changeset 08c1cb1 in clfs-embedded for BOOK/final-system


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

creatingdirs: Create target in ${CLFS}/targetfs/

This will separate the target from the toolchain.
Next we'll copy all the shared libs over to the target's /lib from the
toolchain's sysroot.

Location:
BOOK/final-system/common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • BOOK/final-system/common/creatingdirs.xml

    red5e88d r08c1cb1  
    1111  <title>Creating Directories</title>
    1212
    13   <para>It is time to create some structure in the CLFS file system. Create a
    14   standard directory tree by issuing the following commands:</para>
     13  <para>It is time to create some structure in the target CLFS file system.
     14  Create a standard directory tree by issuing the following commands:</para>
    1515
    16 <screen><userinput>mkdir -pv ${CLFS}/{bin,boot,dev,{etc/,}opt,home,lib/{firmware,modules},mnt}
    17 mkdir -pv ${CLFS}/{proc,media/{floppy,cdrom},sbin,srv,sys}
    18 mkdir -pv ${CLFS}/var/{lock,log,mail,run,spool}
    19 mkdir -pv ${CLFS}/var/{opt,cache,lib/{misc,locate},local}
    20 install -dv -m 0750 ${CLFS}/root
    21 install -dv -m 1777 ${CLFS}{/var,}/tmp
    22 mkdir -pv ${CLFS}/usr/{,local/}{bin,include,lib,sbin,src}
    23 mkdir -pv ${CLFS}/usr/{,local/}share/{doc,info,locale,man}
    24 mkdir -pv ${CLFS}/usr/{,local/}share/{misc,terminfo,zoneinfo}
    25 mkdir -pv ${CLFS}/usr/{,local/}share/man/man{1,2,3,4,5,6,7,8}
    26 for dir in ${CLFS}/usr{,/local}; do
     16<screen><userinput>mkdir -pv ${CLFS}/targetfs/{bin,boot,dev,{etc/,}opt,home,lib/{firmware,modules},mnt}
     17mkdir -pv ${CLFS}/targetfs/{proc,media/{floppy,cdrom},sbin,srv,sys}
     18mkdir -pv ${CLFS}/targetfs/var/{lock,log,mail,run,spool}
     19mkdir -pv ${CLFS}/targetfs/var/{opt,cache,lib/{misc,locate},local}
     20install -dv -m 0750 ${CLFS}/targetfs/root
     21install -dv -m 1777 ${CLFS}/targetfs{/var,}/tmp
     22mkdir -pv ${CLFS}/targetfs/usr/{,local/}{bin,include,lib,sbin,src}
     23mkdir -pv ${CLFS}/targetfs/usr/{,local/}share/{doc,info,locale,man}
     24mkdir -pv ${CLFS}/targetfs/usr/{,local/}share/{misc,terminfo,zoneinfo}
     25mkdir -pv ${CLFS}/targetfs/usr/{,local/}share/man/man{1,2,3,4,5,6,7,8}
     26for dir in ${CLFS}/targetfs/usr{,/local}; do
    2727  ln -sv share/{man,doc,info} ${dir}
    2828done</userinput></screen>
  • BOOK/final-system/common/creatingfiles.xml

    red5e88d r08c1cb1  
    3939  is designed, we will be using a symlink to <filename>/proc/mounts</filename>:</para>
    4040
    41 <screen><userinput>ln -svf ../proc/mounts ${CLFS}/etc/mtab</userinput></screen>
     41<screen><userinput>ln -svf ../proc/mounts ${CLFS}/targetfs/etc/mtab</userinput></screen>
    4242 
    4343  <para>In order for user <systemitem class="username">root</systemitem> to be
     
    4949  command:</para>
    5050
    51 <screen><userinput>cat &gt; ${CLFS}/etc/passwd &lt;&lt; "EOF"
     51<screen><userinput>cat &gt; ${CLFS}/targetfs/etc/passwd &lt;&lt; "EOF"
    5252<literal>root::0:0:root:/root:/bin/ash</literal>
    5353EOF</userinput></screen>
     
    127127  command:</para>
    128128
    129 <screen><userinput>cat &gt; ${CLFS}/etc/group &lt;&lt; "EOF"
     129<screen><userinput>cat &gt; ${CLFS}/targetfs/etc/group &lt;&lt; "EOF"
    130130<literal>root:x:0:
    131131bin:x:1:
     
    225225  proper permissions:</para>
    226226
    227 <screen><userinput>touch ${CLFS}/var/run/utmp ${CLFS}/var/log/{btmp,lastlog,wtmp}
    228 chmod -v 664 ${CLFS}/var/run/utmp ${CLFS}/var/log/lastlog</userinput></screen>
     227<screen><userinput>touch ${CLFS}/targetfs/var/run/utmp ${CLFS}/targetfs/var/log/{btmp,lastlog,wtmp}
     228chmod -v 664 ${CLFS}/targetfs/var/run/utmp ${CLFS}/targetfs/var/log/lastlog</userinput></screen>
    229229
    230230  <para>The <filename>/var/run/utmp</filename> file records the users
Note: See TracChangeset for help on using the changeset viewer.