Changeset dd9906e for chroot/common
- Timestamp:
- Feb 21, 2006, 2:27:39 AM (19 years ago)
- Children:
- e63113c
- Parents:
- 287d7b9
- Location:
- chroot/common
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
chroot/common/changingowner.xml
r287d7b9 rdd9906e 30 30 xpointer="xpointer(//*[@os='c'])"/> 31 31 32 <screen><userinput>chown -R 0:0 /tools33 chown -R 0:0 /cross-tools</userinput></screen>32 <screen><userinput>chown -Rv 0:0 /tools 33 chown -Rv 0:0 /cross-tools</userinput></screen> 34 34 35 35 <para>The commands use <parameter>0:0</parameter> instead of -
chroot/common/creatingdirs.xml
r287d7b9 rdd9906e 15 15 xpointer="xpointer(//*[@os='a'])"/> 16 16 17 <screen><userinput>install -d /{bin,boot,dev,etc/opt,home,lib,mnt}18 install -d /{sbin,srv,usr/local,var,opt,proc,sys}19 install -d /root -m 075020 install -d /tmp /var/tmp -m 177721 install -d /media/{floppy,cdrom}22 install -d /usr/{bin,include,lib,sbin,share,src}23 ln -s share/{man,doc,info} /usr24 install -d /usr/share/{doc,info,locale,man}25 install -d /usr/share/{misc,terminfo,zoneinfo}26 install -d /usr/share/man/man{1,2,3,4,5,6,7,8}27 install -d /usr/local/{bin,etc,include,lib,sbin,share,src}28 ln -s share/{man,doc,info} /usr/local29 install -d /usr/local/share/{doc,info,locale,man}30 install -d /usr/local/share/{misc,terminfo,zoneinfo}31 install -d /usr/local/share/man/man{1,2,3,4,5,6,7,8}32 install -d /var/{lock,log,mail,run,spool}33 install -d /var/{opt,cache,lib/{misc,locate},local}34 install -d /opt/{bin,doc,include,info}35 install -d /opt/{lib,man/man{1,2,3,4,5,6,7,8}}</userinput></screen>17 <screen><userinput>install -dv /{bin,boot,dev,etc/opt,home,lib,mnt} 18 install -dv /{sbin,srv,usr/local,var,opt,proc,sys} 19 install -dv /root -m 0750 20 install -dv /tmp /var/tmp -m 1777 21 install -dv /media/{floppy,cdrom} 22 install -dv /usr/{bin,include,lib,sbin,share,src} 23 ln -sv share/{man,doc,info} /usr 24 install -dv /usr/share/{doc,info,locale,man} 25 install -dv /usr/share/{misc,terminfo,zoneinfo} 26 install -dv /usr/share/man/man{1,2,3,4,5,6,7,8} 27 install -dv /usr/local/{bin,etc,include,lib,sbin,share,src} 28 ln -sv share/{man,doc,info} /usr/local 29 install -dv /usr/local/share/{doc,info,locale,man} 30 install -dv /usr/local/share/{misc,terminfo,zoneinfo} 31 install -dv /usr/local/share/man/man{1,2,3,4,5,6,7,8} 32 install -dv /var/{lock,log,mail,run,spool} 33 install -dv /var/{opt,cache,lib/{misc,locate},local} 34 install -dv /opt/{bin,doc,include,info} 35 install -dv /opt/{lib,man/man{1,2,3,4,5,6,7,8}}</userinput></screen> 36 36 37 37 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
chroot/common/devices.xml
r287d7b9 rdd9906e 41 41 class="directory">/dev</filename>:</para> 42 42 43 <screen><userinput>mount -n - t tmpfs none /dev</userinput></screen>43 <screen><userinput>mount -n -vt tmpfs none /dev</userinput></screen> 44 44 45 45 <para>The Udev package is what actually creates the devices in the … … 56 56 mknod -m 444 /dev/random c 1 8 57 57 mknod -m 444 /dev/urandom c 1 9 58 chown root:tty /dev/{console,ptmx,tty}</userinput></screen>58 chown -v root:tty /dev/{console,ptmx,tty}</userinput></screen> 59 59 60 60 <para>There are some symlinks and directories required by LFS that … … 63 63 and directories need to be created here:</para> 64 64 65 <screen><userinput>ln -s /proc/self/fd /dev/fd66 ln -s /proc/self/fd/0 /dev/stdin67 ln -s /proc/self/fd/1 /dev/stdout68 ln -s /proc/self/fd/2 /dev/stderr69 ln -s /proc/kcore /dev/core70 mkdir /dev/pts71 mkdir /dev/shm</userinput></screen>65 <screen><userinput>ln -sv /proc/self/fd /dev/fd 66 ln -sv /proc/self/fd/0 /dev/stdin 67 ln -sv /proc/self/fd/1 /dev/stdout 68 ln -sv /proc/self/fd/2 /dev/stderr 69 ln -sv /proc/kcore /dev/core 70 mkdir -v /dev/pts 71 mkdir -v /dev/shm</userinput></screen> 72 72 73 73 <para>Finally, mount the proper virtual (kernel) file systems on the 74 74 newly-created directories:</para> 75 75 76 <screen><userinput>mount - t devpts -o gid=4,mode=620 none /dev/pts77 mount - t tmpfs none /dev/shm</userinput></screen>76 <screen><userinput>mount -vt devpts -o gid=4,mode=620 none /dev/pts 77 mount -vt tmpfs none /dev/shm</userinput></screen> 78 78 79 79 <para>The <command>mount</command> commands executed above may result -
chroot/common/kernfs.xml
r287d7b9 rdd9906e 26 26 be mounted:</para> 27 27 28 <screen><userinput>mkdir -p $LFS/{proc,sys}</userinput></screen>28 <screen><userinput>mkdir -pv $LFS/{proc,sys}</userinput></screen> 29 29 30 30 <para>Now mount the file systems:</para> 31 31 32 <screen><userinput>mount - t proc proc $LFS/proc32 <screen><userinput>mount -vt proc proc $LFS/proc 33 33 mount -t sysfs sysfs $LFS/sys</userinput></screen> 34 34 … … 41 41 mount</quote> for each of these now:</para> 42 42 43 <screen><userinput>mount -f - t tmpfs tmpfs $LFS/dev44 mount -f - t tmpfs tmpfs $LFS/dev/shm45 mount -f - t devpts -o gid=10,mode=620 devpts $LFS/dev/pts</userinput></screen>43 <screen><userinput>mount -f -vt tmpfs tmpfs $LFS/dev 44 mount -f -vt tmpfs tmpfs $LFS/dev/shm 45 mount -f -vt devpts -o gid=10,mode=620 devpts $LFS/dev/pts</userinput></screen> 46 46 47 47 </sect1> -
chroot/common/pwdgroup.xml
r287d7b9 rdd9906e 116 116 117 117 <screen><userinput>touch /var/run/utmp /var/log/{btmp,lastlog,wtmp} 118 chgrp utmp /var/run/utmp /var/log/lastlog119 chmod 664 /var/run/utmp /var/log/lastlog120 chmod 600 /var/log/btmp</userinput></screen>118 chgrp -v utmp /var/run/utmp /var/log/lastlog 119 chmod -v 664 /var/run/utmp /var/log/lastlog 120 chmod -v 600 /var/log/btmp</userinput></screen> 121 121 122 122 <para>The <filename>/var/run/utmp</filename> file records the users that -
chroot/common/util-linux.xml
r287d7b9 rdd9906e 35 35 xpointer="xpointer(//*[@os='ba'])"/> 36 36 37 <screen os="ca"><userinput>cp configure configure.orig37 <screen os="ca"><userinput>cp -v configure configure.orig 38 38 sed -e 's@/usr/include@/tools/include@g' configure.orig > configure</userinput></screen> 39 39 … … 56 56 <para os="cg">Copy these programs to the temporary tools directory:</para> 57 57 58 <screen os="ch"><userinput>cp mount/{,u}mount text-utils/more /tools/bin</userinput></screen>58 <screen os="ch"><userinput>cp -v mount/{,u}mount text-utils/more /tools/bin</userinput></screen> 59 59 60 60 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.