Changeset 2ac5147 in clfs-embedded for BOOK/final-system/common
- Timestamp:
- Oct 23, 2013, 11:52:04 AM (11 years ago)
- Branches:
- master
- Children:
- 73c0570
- Parents:
- 151f7c4
- git-author:
- Andrew Bradford <andrew@…> (10/21/13 13:02:50)
- git-committer:
- Andrew Bradford <andrew@…> (10/23/13 11:52:04)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/final-system/common/creatingdirs.xml
r151f7c4 r2ac5147 14 14 Create a standard directory tree by issuing the following commands:</para> 15 15 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}} 17 mkdir -pv ${CLFS}/targetfs/{mnt,opt,proc,sbin,srv,sys} 18 mkdir -pv ${CLFS}/targetfs/var/{cache,lib,local,lock,log,opt,run,spool} 20 19 install -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> 20 install -dv -m 1777 ${CLFS}/targetfs/tmp 21 mkdir -pv ${CLFS}/targetfs/usr/{,local/}{bin,include,lib,sbin,share,src}</userinput></screen> 29 22 30 23 <para>Directories are, by default, created with permission mode 755, but … … 47 40 48 41 <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/<directory></filename> or <filename 56 class="directory">/usr/local/<directory></filename> as opposed to 57 <filename class="directory">/usr/share/<directory></filename> or 58 <filename class="directory">/usr/local/share/<directory></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> 66 43 67 44 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.