Changeset 2ac5147 in clfs-embedded for BOOK/final-system/common


Ignore:
Timestamp:
Oct 23, 2013, 6:52:04 PM (11 years ago)
Author:
Andrew Bradford <andrew@…>
Branches:
master
Children:
73c0570
Parents:
151f7c4
git-author:
Andrew Bradford <andrew@…> (10/21/13 20:02:50)
git-committer:
Andrew Bradford <andrew@…> (10/23/13 18:52:04)
Message:

creatingdirs: Reduce number of dirs made to minimum

Not fully FHS compliant but no one really cares about FHS any more
anyway.

File:
1 edited

Legend:

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

    r151f7c4 r2ac5147  
    1414  Create a standard directory tree by issuing the following commands:</para>
    1515
    16 <screen><userinput>mkdir -pv ${CLFS}/targetfs/{bin,boot,dev,{etc/,}opt,home,lib/{firmware,modules},mnt}
    17 mkdir -pv ${CLFS}/targetfs/{proc,media/{floppy,cdrom},sbin,srv,sys}
    18 mkdir -pv ${CLFS}/targetfs/var/{lock,log,mail,run,spool}
    19 mkdir -pv ${CLFS}/targetfs/var/{opt,cache,lib/{misc,locate},local}
     16<screen><userinput>mkdir -pv ${CLFS}/targetfs/{bin,boot,dev,etc,home,lib/{firmware,modules}}
     17mkdir -pv ${CLFS}/targetfs/{mnt,opt,proc,sbin,srv,sys}
     18mkdir -pv ${CLFS}/targetfs/var/{cache,lib,local,lock,log,opt,run,spool}
    2019install -dv -m 0750 ${CLFS}/targetfs/root
    21 install -dv -m 1777 ${CLFS}/targetfs{/var,}/tmp
    22 mkdir -pv ${CLFS}/targetfs/usr/{,local/}{bin,include,lib,sbin,src}
    23 mkdir -pv ${CLFS}/targetfs/usr/{,local/}share/{doc,info,locale,man}
    24 mkdir -pv ${CLFS}/targetfs/usr/{,local/}share/{misc,terminfo,zoneinfo}
    25 mkdir -pv ${CLFS}/targetfs/usr/{,local/}share/man/man{1,2,3,4,5,6,7,8}
    26 for dir in ${CLFS}/targetfs/usr{,/local}; do
    27   ln -sv share/{man,doc,info} ${dir}
    28 done</userinput></screen>
     20install -dv -m 1777 ${CLFS}/targetfs/tmp
     21mkdir -pv ${CLFS}/targetfs/usr/{,local/}{bin,include,lib,sbin,share,src}</userinput></screen>
    2922
    3023  <para>Directories are, by default, created with permission mode 755, but
     
    4740
    4841    <para>The directory tree is based on the Filesystem Hierarchy Standard (FHS)
    49     (available at <ulink url="http://www.pathname.com/fhs/"/>). In addition to
    50     the FHS, we create compatibility symlinks for the <filename
    51     class="directory">man</filename>, <filename
    52     class="directory">doc</filename>, and <filename
    53     class="directory">info</filename> directories since many packages still try
    54     to install their documentation into <filename
    55     class="directory">/usr/&lt;directory&gt;</filename> or <filename
    56     class="directory">/usr/local/&lt;directory&gt;</filename> as opposed to
    57     <filename class="directory">/usr/share/&lt;directory&gt;</filename> or
    58     <filename class="directory">/usr/local/share/&lt;directory&gt;</filename>.
    59     The FHS also stipulates the existence of <filename
    60     class="directory">/usr/local/games</filename> and <filename
    61     class="directory">/usr/share/games</filename>. The FHS is not precise as to
    62     the structure of the <filename class="directory">/usr/local/share</filename>
    63     subdirectory, so we create only the directories that are needed. However,
    64     feel free to create these directories if you prefer to conform more strictly
    65     to the FHS.</para>
     42    (available at <ulink url="http://www.pathname.com/fhs/"/>).</para>
    6643
    6744  </sect2>
Note: See TracChangeset for help on using the changeset viewer.