<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  <!ENTITY % general-entities SYSTEM "../../general.ent">
  %general-entities;
]>

<sect1 id="ch-boot-creatingdirs">
  <?dbhtml filename="creatingdirs.html"?>

  <title>Creating Directories</title>

  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  href="../common/creatingdirs.xml"
  xpointer="xpointer(//*[@os='a'])"/>

<screen><userinput>install -d ${LFS}/{bin,boot,dev,etc/opt,home,lib{,32,64},mnt}
install -d ${LFS}/{sbin,srv,usr/local,var,opt,proc,sys}
install -d ${LFS}/root -m 0750
install -d ${LFS}/tmp ${LFS}/var/tmp -m 1777
install -d ${LFS}/media/{floppy,cdrom}
install -d ${LFS}/usr/{bin,include,lib{,32,64},sbin,share,src}
ln -s share/{man,doc,info} ${LFS}/usr
install -d ${LFS}/usr/share/{doc,info,locale,man}
install -d ${LFS}/usr/share/{misc,terminfo,zoneinfo}
install -d ${LFS}/usr/share/man/man{1,2,3,4,5,6,7,8}
install -d ${LFS}/usr/local/{bin,etc,include,lib{,32,64},sbin,share,src}
ln -s share/{man,doc,info} ${LFS}/usr/local
install -d ${LFS}/usr/local/share/{doc,info,locale,man}
install -d ${LFS}/usr/local/share/{misc,terminfo,zoneinfo}
install -d ${LFS}/usr/local/share/man/man{1,2,3,4,5,6,7,8}
install -d ${LFS}/var/{lock,log,mail,run,spool}
install -d ${LFS}/var/{opt,cache,lib{,32,64}/{misc,locate},local}
install -d ${LFS}/opt/{bin,doc,include,info}
install -d ${LFS}/opt/{lib{,32,64},man/man{1,2,3,4,5,6,7,8}}
install -d ${LFS}/usr/lib/locale
ln -s ../lib/locale ${LFS}/usr/lib32
ln -s ../lib/locale ${LFS}/usr/lib64</userinput></screen>

   <para>These entries are needed for the RaQ2 bootloader. Only use these
   if you are utilizing the Colo bootloader:</para>

<screen><userinput>cd /${LFS}/boot
ln -sf . boot</userinput></screen>

  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  href="../common/creatingdirs.xml"
  xpointer="xpointer(//*[@os='b'])"/>

  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  href="../common/creatingdirs.xml"
  xpointer="xpointer(//*[@os='c'])"/>

  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  href="../common/creatingdirs.xml"
  xpointer="xpointer(//*[@os='d'])"/>

</sect1>
