Changeset 08c1cb1 in clfs-embedded for BOOK/final-system/common
- Timestamp:
- Oct 15, 2013, 1:00:05 PM (11 years ago)
- 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)
- Location:
- BOOK/final-system/common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/final-system/common/creatingdirs.xml
red5e88d r08c1cb1 11 11 <title>Creating Directories</title> 12 12 13 <para>It is time to create some structure in the CLFS file system. Create a14 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> 15 15 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}/ root21 install -dv -m 1777 ${CLFS} {/var,}/tmp22 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}; do16 <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} 20 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 27 ln -sv share/{man,doc,info} ${dir} 28 28 done</userinput></screen> -
BOOK/final-system/common/creatingfiles.xml
red5e88d r08c1cb1 39 39 is designed, we will be using a symlink to <filename>/proc/mounts</filename>:</para> 40 40 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> 42 42 43 43 <para>In order for user <systemitem class="username">root</systemitem> to be … … 49 49 command:</para> 50 50 51 <screen><userinput>cat > ${CLFS}/ etc/passwd << "EOF"51 <screen><userinput>cat > ${CLFS}/targetfs/etc/passwd << "EOF" 52 52 <literal>root::0:0:root:/root:/bin/ash</literal> 53 53 EOF</userinput></screen> … … 127 127 command:</para> 128 128 129 <screen><userinput>cat > ${CLFS}/ etc/group << "EOF"129 <screen><userinput>cat > ${CLFS}/targetfs/etc/group << "EOF" 130 130 <literal>root:x:0: 131 131 bin:x:1: … … 225 225 proper permissions:</para> 226 226 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} 228 chmod -v 664 ${CLFS}/targetfs/var/run/utmp ${CLFS}/targetfs/var/log/lastlog</userinput></screen> 229 229 230 230 <para>The <filename>/var/run/utmp</filename> file records the users
Note:
See TracChangeset
for help on using the changeset viewer.