Changeset 287d7b9 for boot/common
- Timestamp:
- Feb 21, 2006, 2:27:09 AM (19 years ago)
- Children:
- dd9906e
- Parents:
- 61f8f69
- Location:
- boot/common
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/common/bootscripts.xml
r61f8f69 r287d7b9 29 29 <para>Make bootscripts usable at boot:</para> 30 30 31 <screen><userinput>cp ${LFS}/etc/rc.d/init.d/functions{,.bak}31 <screen><userinput>cp -v ${LFS}/etc/rc.d/init.d/functions{,.bak} 32 32 sed 's|/bin:/usr/bin:/sbin:/usr/sbin|/tools/bin:/tools/sbin:/bin:/sbin|g' \ 33 33 ${LFS}/etc/rc.d/init.d/functions.bak \ 34 34 > ${LFS}/etc/rc.d/init.d/functions 35 cp ${LFS}/etc/rc.d/init.d/mountfs{,.bak}35 cp -v ${LFS}/etc/rc.d/init.d/mountfs{,.bak} 36 36 sed 's@mount -f /sys || failed=1@mount -f /sys | udevstart || failed=1@' \ 37 37 ${LFS}/etc/rc.d/init.d/mountfs.bak \ -
boot/common/changingowner.xml
r61f8f69 r287d7b9 19 19 <systemitem class="username">root</systemitem>. Change the ownership for $LFS and its subdirectories by running these commands:</para> 20 20 21 <screen><userinput>chown root:root ${LFS}22 chown -R root:root $LFS/{bin,boot,dev,etc,home,lib,media,mnt,opt,proc,root,sbin,srv,sys,tmp,usr,var}</userinput></screen>21 <screen><userinput>chown -v root:root ${LFS} 22 chown -Rv root:root $LFS/{bin,boot,dev,etc,home,lib,media,mnt,opt,proc,root,sbin,srv,sys,tmp,usr,var}</userinput></screen> 23 23 24 24 <para os="b">The same issue also exists with <filename class="directory">/tools</filename> and <filename class="directory">/cross-tools</filename>. Although these directories can be deleted once the … … 39 39 the following commands:</para> 40 40 41 <screen><userinput>chown -R root:root /tools42 chown -R root:root /cross-tools</userinput></screen>41 <screen><userinput>chown -Rv root:root /tools 42 chown -Rv root:root /cross-tools</userinput></screen> 43 43 44 44 </sect1> -
boot/common/creatingdirs.xml
r61f8f69 r287d7b9 14 14 standard directory tree by issuing the following commands:</para> 15 15 16 <screen><userinput>install -d ${LFS}/{bin,boot,dev,etc/opt,home,lib,mnt}17 install -d ${LFS}/{sbin,srv,usr/local,var,opt,proc,sys}18 install -d ${LFS}/root -m 075019 install -d ${LFS}/tmp ${LFS}/var/tmp -m 177720 install -d ${LFS}/media/{floppy,cdrom}21 install -d ${LFS}/usr/{bin,include,lib,sbin,share,src}22 ln -s share/{man,doc,info} ${LFS}/usr23 install -d ${LFS}/usr/share/{doc,info,locale,man}24 install -d ${LFS}/usr/share/{misc,terminfo,zoneinfo}25 install -d ${LFS}/usr/share/man/man{1,2,3,4,5,6,7,8}26 install -d ${LFS}/usr/local/{bin,etc,include,lib,sbin,share,src}27 ln -s share/{man,doc,info} ${LFS}/usr/local28 install -d ${LFS}/usr/local/share/{doc,info,locale,man}29 install -d ${LFS}/usr/local/share/{misc,terminfo,zoneinfo}30 install -d ${LFS}/usr/local/share/man/man{1,2,3,4,5,6,7,8}31 install -d ${LFS}/var/{lock,log,mail,run,spool}32 install -d ${LFS}/var/{opt,cache,lib/{misc,locate},local}33 install -d ${LFS}/opt/{bin,doc,include,info}34 install -d ${LFS}/opt/{lib,man/man{1,2,3,4,5,6,7,8}}</userinput></screen>16 <screen><userinput>install -dv ${LFS}/{bin,boot,dev,etc/opt,home,lib,mnt} 17 install -dv ${LFS}/{sbin,srv,usr/local,var,opt,proc,sys} 18 install -dv ${LFS}/root -m 0750 19 install -dv ${LFS}/tmp ${LFS}/var/tmp -m 1777 20 install -dv ${LFS}/media/{floppy,cdrom} 21 install -dv ${LFS}/usr/{bin,include,lib,sbin,share,src} 22 ln -sv share/{man,doc,info} ${LFS}/usr 23 install -dv ${LFS}/usr/share/{doc,info,locale,man} 24 install -dv ${LFS}/usr/share/{misc,terminfo,zoneinfo} 25 install -dv ${LFS}/usr/share/man/man{1,2,3,4,5,6,7,8} 26 install -dv ${LFS}/usr/local/{bin,etc,include,lib,sbin,share,src} 27 ln -sv share/{man,doc,info} ${LFS}/usr/local 28 install -dv ${LFS}/usr/local/share/{doc,info,locale,man} 29 install -dv ${LFS}/usr/local/share/{misc,terminfo,zoneinfo} 30 install -dv ${LFS}/usr/local/share/man/man{1,2,3,4,5,6,7,8} 31 install -dv ${LFS}/var/{lock,log,mail,run,spool} 32 install -dv ${LFS}/var/{opt,cache,lib/{misc,locate},local} 33 install -dv ${LFS}/opt/{bin,doc,include,info} 34 install -dv ${LFS}/opt/{lib,man/man{1,2,3,4,5,6,7,8}}</userinput></screen> 35 35 36 36 <para os="b">Directories are, by default, created with permission mode 755, -
boot/common/e2fsprogs.xml
r61f8f69 r287d7b9 52 52 </variablelist> 53 53 54 <screen os="ac"><userinput>make</userinput></screen> 54 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 55 href="../../final-system/common/e2fsprogs.xml" 56 xpointer="xpointer(//*[@os='f'])"/> 57 58 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 59 href="../../final-system/common/e2fsprogs.xml" 60 xpointer="xpointer(//*[@os='g'])"/> 55 61 56 62 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" -
boot/common/introduction.xml
r61f8f69 r287d7b9 33 33 class="username">root</systemitem>:</para> 34 34 35 <screen><userinput>chown lfs $LFS</userinput></screen>35 <screen><userinput>chown -v lfs $LFS</userinput></screen> 36 36 37 37 </sect1> -
boot/common/pwdgroup.xml
r61f8f69 r287d7b9 111 111 112 112 <screen><userinput>touch ${LFS}/var/run/utmp ${LFS}/var/log/{btmp,lastlog,wtmp} 113 chmod 664 ${LFS}/var/run/utmp ${LFS}/var/log/lastlog114 chmod 600 ${LFS}/var/log/btmp</userinput></screen>113 chmod -v 664 ${LFS}/var/run/utmp ${LFS}/var/log/lastlog 114 chmod -v 600 ${LFS}/var/log/btmp</userinput></screen> 115 115 116 116 <para>The <filename>${LFS}/var/run/utmp</filename> file records the users -
boot/common/sysvinit.xml
r61f8f69 r287d7b9 26 26 during our build:</para> 27 27 28 <screen os="ab"><userinput>cp src/Makefile src/Makefile.orig28 <screen os="ab"><userinput>cp -v src/Makefile src/Makefile.orig 29 29 sed -e 's@root@0@g' \ 30 30 -e "s@/dev/initctl@${LFS}&@g" \ -
boot/common/udev.xml
r61f8f69 r287d7b9 44 44 xpointer="xpointer(//*[@os='j'])"/> 45 45 46 <screen os="k"><userinput>cp ../&udev-config-file; ${LFS}/etc/udev/rules.d/25-lfs.rules</userinput></screen>46 <screen os="k"><userinput>cp -v ../&udev-config-file; ${LFS}/etc/udev/rules.d/25-lfs.rules</userinput></screen> 47 47 48 48 </sect2> -
boot/common/util-linux.xml
r61f8f69 r287d7b9 43 43 directory by default. This is fixed by altering the configure script:</para> 44 44 45 <screen os="bb"><userinput>cp configure{,.orig}45 <screen os="bb"><userinput>cp -v configure{,.orig} 46 46 sed -e 's@/usr/include@/tools/include@g' configure.orig > configure</userinput></screen> 47 47 … … 50 50 yet:</para> 51 51 52 <screen os="bd"><userinput>cp MCONFIG{,.orig}52 <screen os="bd"><userinput>cp -v MCONFIG{,.orig} 53 53 sed -e 's|-o root||' MCONFIG.orig > MCONFIG</userinput></screen> 54 54
Note:
See TracChangeset
for help on using the changeset viewer.