Index: BOOK/chroot/64/util-linux.xml
===================================================================
--- BOOK/chroot/64/util-linux.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
+++ BOOK/chroot/64/util-linux.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
@@ -0,0 +1,94 @@
+
+
+
+ %general-entities;
+ %patches-entities;
+]>
+
+
+
+
+ Util-linux-&util-linux-version;
+
+
+ Util-linux
+ chroot
+
+
+
+
+
+
+
+
+ &buildtime;
+ &diskspace;
+
+
+ Not checked yet
+ Not checked yet
+
+
+
+
+
+
+
+
+ Installation of Util-linux
+
+
+
+
+
+
+
+CC="${CC} ${BUILD64}" ./configure
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Details on this package are located in
+
+
+
+
Index: BOOK/chroot/alpha-chapter.xml
===================================================================
--- BOOK/chroot/alpha-chapter.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
+++ BOOK/chroot/alpha-chapter.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
@@ -0,0 +1,24 @@
+
+
+ %general-entities;
+]>
+
+
+
+
+
+ If You Are Going to Chroot
+
+
+
+
+
+
+
+
+
+
+
+
Index: BOOK/chroot/common/changingowner.xml
===================================================================
--- BOOK/chroot/common/changingowner.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
+++ BOOK/chroot/common/changingowner.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
@@ -0,0 +1,27 @@
+
+
+ %general-entities;
+]>
+
+
+
+
+ Changing Ownership
+
+
+
+
+
+chown -R 0:0 /tools
+
+
+
+
Index: BOOK/chroot/common/chroot.xml
===================================================================
--- BOOK/chroot/common/chroot.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
+++ BOOK/chroot/common/chroot.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
@@ -0,0 +1,63 @@
+
+
+ %general-entities;
+]>
+
+
+
+
+ Entering the Chroot Environment
+
+ It is time to enter the chroot environment to begin building
+ and installing the final LFS system. As user root, run the following command to
+ enter the realm that is, at the moment, populated with only the
+ temporary tools:
+
+chroot "$LFS" /tools/bin/env -i \
+ HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
+ PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
+ /tools/bin/bash --login +h
+
+ The -i option given to the
+ env command will clear all variables of the chroot
+ environment. After that, only the HOME,
+ TERM, PS1, and
+ PATH variables are set again. The
+ TERM=$TERM construct will set the
+ TERM variable inside chroot to the same value as
+ outside chroot. This variable is needed for programs like
+ vim and less to operate
+ properly. If other variables are needed, such as
+ CFLAGS or CXXFLAGS, this is
+ a good place to set them again.
+
+ From this point on, there is no need to use the
+ LFS variable anymore, because all work will be
+ restricted to the LFS file system. This is because the Bash shell is
+ told that $LFS is now the root
+ (/) directory.
+
+ Notice that /tools/bin comes
+ last in the PATH. This means that a temporary tool will no
+ longer be used once its final version is installed. This occurs when the
+ shell does not remember
the locations of executed
+ binaries—for this reason, hashing is switched off by passing the
+ +h option to bash.
+
+ It is important that all the commands throughout the remainder
+ of this chapter and the following chapters are run from within the
+ chroot environment. If you leave this environment for any reason
+ (rebooting for example), remember to first mount the proc and devpts file systems (discussed in the
+ previous section) and enter chroot again before continuing with the
+ installations.
+
+ Note that the bash prompt will say
+ I have no name! This is normal because the
+ /etc/passwd file has not been created yet.
+
+
Index: BOOK/chroot/common/createfiles.xml
===================================================================
--- BOOK/chroot/common/createfiles.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
+++ BOOK/chroot/common/createfiles.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
@@ -0,0 +1,22 @@
+
+
+ %general-entities;
+]>
+
+
+
+
+ Creating Essential Symlinks
+
+
+
+ln -s /tools/bin/{bash,cat,pwd,stty} /bin
+ln -s /tools/bin/perl /usr/bin
+ln -s /tools/lib/libgcc_s.so{,.1} /usr/lib
+ln -s bash /bin/sh
+
+
Index: BOOK/chroot/common/creatingdirs.xml
===================================================================
--- BOOK/chroot/common/creatingdirs.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
+++ BOOK/chroot/common/creatingdirs.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
@@ -0,0 +1,55 @@
+
+
+ %general-entities;
+]>
+
+
+
+
+ Creating Directories
+
+
+
+install -d /{bin,boot,dev,etc/opt,home,lib,mnt}
+install -d /{sbin,srv,usr/local,var,opt,proc,sys}
+install -d /root -m 0750
+install -d /tmp /var/tmp -m 1777
+install -d /media/{floppy,cdrom}
+install -d /usr/{bin,include,lib,sbin,share,src}
+ln -s share/{man,doc,info} /usr
+install -d /usr/share/{doc,info,locale,man}
+install -d /usr/share/{misc,terminfo,zoneinfo}
+install -d /usr/share/man/man{1,2,3,4,5,6,7,8}
+install -d /usr/local/{bin,etc,include,lib,sbin,share,src}
+ln -s share/{man,doc,info} /usr/local
+install -d /usr/local/share/{doc,info,locale,man}
+install -d /usr/local/share/{misc,terminfo,zoneinfo}
+install -d /usr/local/share/man/man{1,2,3,4,5,6,7,8}
+install -d /var/{lock,log,mail,run,spool}
+install -d /var/{opt,cache,lib/{misc,locate},local}
+install -d /opt/{bin,doc,include,info}
+install -d /opt/{lib,man/man{1,2,3,4,5,6,7,8}}
+
+
+
+ The first mode change ensures that not just anybody can enter
+ the /root directory—the
+ same as a normal user would do with his or her home directory. The
+ second mode change makes sure that any user can write to the
+ /tmp and
+ /var/tmp directories, but
+ cannot remove another user's files from them. The latter is prohibited
+ by the so-called sticky bit,
the highest bit (1) in the
+ 1777 bit mask.
+
+
+
+
Index: BOOK/chroot/common/devices.xml
===================================================================
--- BOOK/chroot/common/devices.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
+++ BOOK/chroot/common/devices.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
@@ -0,0 +1,90 @@
+
+
+ %general-entities;
+]>
+
+
+
+
+ Populating /dev
+
+
+ /dev/*
+
+
+
+ Creating Initial Device Nodes
+
+
+
+mknod -m 600 /dev/console c 5 1
+mknod -m 666 /dev/null c 1 3
+
+
+
+
+ Mounting tmpfs and Populating /dev
+
+ The recommended method of populating the /dev directory with devices is to
+ mount a virtual filesystem (such as tmpfs) on the /dev directory, and allow the devices
+ to be created dynamically on that virtual filesystem as they are
+ detected or accessed. This is generally done during the boot process.
+ Since this new system has not been booted, it is necessary to do what
+ the LFS-Bootscripts package would otherwise do by mounting /dev:
+
+mount -n -t tmpfs none /dev
+
+ The Udev package is what actually creates the devices in the
+ /dev directory. Since it will
+ not be installed until later on in the process, manually create the
+ minimal set of device nodes needed to complete the building of this
+ system:
+
+mknod -m 622 /dev/console c 5 1
+mknod -m 666 /dev/null c 1 3
+mknod -m 666 /dev/zero c 1 5
+mknod -m 666 /dev/ptmx c 5 2
+mknod -m 666 /dev/tty c 5 0
+mknod -m 444 /dev/random c 1 8
+mknod -m 444 /dev/urandom c 1 9
+chown root:tty /dev/{console,ptmx,tty}
+
+ There are some symlinks and directories required by LFS that
+ are created during system startup by the LFS-Bootscripts package. Since
+ this is a chroot environment and not a booted environment, those symlinks
+ and directories need to be created here:
+
+ln -s /proc/self/fd /dev/fd
+ln -s /proc/self/fd/0 /dev/stdin
+ln -s /proc/self/fd/1 /dev/stdout
+ln -s /proc/self/fd/2 /dev/stderr
+ln -s /proc/kcore /dev/core
+mkdir /dev/pts
+mkdir /dev/shm
+
+ Finally, mount the proper virtual (kernel) file systems on the
+ newly-created directories:
+
+mount -t devpts -o gid=4,mode=620 none /dev/pts
+mount -t tmpfs none /dev/shm
+
+ The mount commands executed above may result
+ in the following warning message:
+
+can't open /etc/fstab: No such file or directory.
+
+ This file—/etc/fstab—has not
+ been created yet but is also not required for the file systems to be
+ properly mounted. As such, the warning can be safely ignored.
+
+
+
+
Index: BOOK/chroot/common/introduction.xml
===================================================================
--- BOOK/chroot/common/introduction.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
+++ BOOK/chroot/common/introduction.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
@@ -0,0 +1,16 @@
+
+
+ %general-entities;
+]>
+
+
+
+
+ Introduction
+
+ This chapter shows how to prepare a chroot
+ jail to build the final system packages into it.
+
+
Index: BOOK/chroot/common/kernfs.xml
===================================================================
--- BOOK/chroot/common/kernfs.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
+++ BOOK/chroot/common/kernfs.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
@@ -0,0 +1,47 @@
+
+
+ %general-entities;
+]>
+
+
+
+
+ Mounting Virtual Kernel File Systems
+
+ From this point on, we will be running all commands as the
+ root user. So begin by
+ exiting from the su as lfs.
+
+exit
+
+ Various file systems exported by the kernel are used to communicate
+ to and from the kernel itself. These file systems are virtual in that no
+ disk space is used for them. The content of the file systems resides in
+ memory.
+
+ Begin by creating directories onto which the file systems will
+ be mounted:
+
+mkdir -p $LFS/{proc,sys}
+
+ Now mount the file systems:
+
+mount -t proc proc $LFS/proc
+mount -t sysfs sysfs $LFS/sys
+
+ Remember that if for any reason you stop working on the LFS system
+ and start again later, it is important to check that these file systems
+ are mounted again before entering the chroot environment.
+
+ Additional file systems will soon be mounted from within the
+ chroot environment. To keep the host up to date, perform a fake
+ mount
for each of these now:
+
+mount -f -t tmpfs tmpfs $LFS/dev
+mount -f -t tmpfs tmpfs $LFS/dev/shm
+mount -f -t devpts -o gid=10,mode=620 devpts $LFS/dev/pts
+
+
Index: BOOK/chroot/common/pwdgroup.xml
===================================================================
--- BOOK/chroot/common/pwdgroup.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
+++ BOOK/chroot/common/pwdgroup.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
@@ -0,0 +1,130 @@
+
+
+ %general-entities;
+]>
+
+
+
+
+ Creating the passwd, group, and log Files
+
+
+ /etc/passwd
+
+
+
+ /etc/group
+
+
+
+ /var/run/utmp
+
+
+
+ /var/log/btmp
+
+
+
+ /var/log/lastlog
+
+
+
+ /var/log/wtmp
+
+
+ In order for user root to
+ be able to login and for the name root
to be recognized,
+ there must be relevant entries in the /etc/passwd
+ and /etc/group files.
+
+ Create the /etc/passwd file by running the
+ following command:
+
+cat > /etc/passwd << "EOF"
+root::0:0:root:/root:/bin/bash
+bin:x:1:1:bin:/bin:/bin/false
+daemon:x:2:2:daemon:/sbin:/bin/false
+adm:x:3:4:adm:/var/adm:/bin/false
+sync:x:5:0:sync:/sbin:/bin/sync
+shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
+halt:x:7:0:halt:/sbin:/sbin/halt
+lp:x:10:18:lp:/var/spool/lp:/bin/false
+mail:x:30:30:mail:/var/spool/mail:/bin/false
+news:x:31:31:news:/var/spool/news:/bin/false
+uucp:x:32:32:uucp:/var/spool/uucp:/bin/false
+operator:x:50:0:operator:/root:/bin/bash
+postmaster:x:51:30:postmaster:/var/spool/mail:/bin/false
+nobody:x:65534:65534:nobody:/:/bin/false
+EOF
+
+
+
+ Create the /etc/group file by running the
+ following command:
+
+cat > /etc/group << "EOF"
+root::0:root
+bin::1:root,bin,daemon
+daemon::2:root,bin,daemon
+sys::3:root,bin,adm
+adm::4:root,adm,daemon
+kmem::5:
+tty::10:
+video::11:root
+console::12:
+disk::13:root,adm
+floppy::14:root
+cdrom::15:
+cdrw::16:
+tape::17:root
+lp::18:lp
+usb::19:
+audio::20:
+dialout::21:root
+mail::30:mail
+news::31:news
+uucp::32:uucp
+users::100:
+nogroup::65533:
+nobody::65534:
+EOF
+
+
+
+ To remove the I have no name!
prompt, start a
+ new shell. Since a full Glibc was installed in and the /etc/passwd
+ and /etc/group files have been created, user name
+ and group name resolution will now work.
+
+exec /tools/bin/bash --login +h
+
+ Note the use of the +h directive. This tells
+ bash not to use its internal path hashing. Without this
+ directive, bash would remember the paths to binaries it
+ has executed. To ensure the use of the newly compiled binaries as soon as
+ they are installed, the +h directive will be used
+ for the duration of the nexts chapters.
+
+
+
+touch /var/run/utmp /var/log/{btmp,lastlog,wtmp}
+chgrp utmp /var/run/utmp /var/log/lastlog
+chmod 664 /var/run/utmp /var/log/lastlog
+chmod 600 /var/log/btmp
+
+ The /var/run/utmp file records the users that
+ are currently logged in. The /var/log/wtmp file records
+ all logins and logouts. The /var/log/lastlog file
+ records when each user last logged in. The /var/log/btmp
+ file records the bad login attempts.
+
+
Index: BOOK/chroot/common/util-linux.xml
===================================================================
--- BOOK/chroot/common/util-linux.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
+++ BOOK/chroot/common/util-linux.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
@@ -0,0 +1,91 @@
+
+
+
+ %general-entities;
+ %patches-entities;
+]>
+
+
+
+
+ Util-linux-&util-linux-version;
+
+
+ Util-linux
+ chroot
+
+
+
+
+
+
+
+
+ &buildtime;
+ &diskspace;
+
+
+ Not checked yet
+ Not checked yet
+
+
+
+
+
+
+
+
+ Installation of Util-linux
+
+
+
+
+
+
+
+cp configure configure.orig
+sed -e 's@/usr/include@/tools/include@g' configure.orig > configure
+
+
+
+./configure
+
+ Compile some support routines:
+
+make ARCH="" CPU="" -C lib
+
+ Only a few of the utilities contained in this package need to be
+ built:
+
+make ARCH="" CPU="" -C mount mount umount
+make ARCH="" CPU="" -C text-utils more
+
+ Copy these programs to the temporary tools directory:
+
+cp mount/{,u}mount text-utils/more /tools/bin
+
+
+
+
+
+
+ Details on this package are located in
+
+
+
+
Index: BOOK/chroot/mips-chapter.xml
===================================================================
--- BOOK/chroot/mips-chapter.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
+++ BOOK/chroot/mips-chapter.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
@@ -0,0 +1,24 @@
+
+
+ %general-entities;
+]>
+
+
+
+
+
+ If You Are Going to Chroot
+
+
+
+
+
+
+
+
+
+
+
+
Index: BOOK/chroot/mips/creatingdirs.xml
===================================================================
--- BOOK/chroot/mips/creatingdirs.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
+++ BOOK/chroot/mips/creatingdirs.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
@@ -0,0 +1,55 @@
+
+
+ %general-entities;
+]>
+
+
+
+
+ Creating Directories
+
+
+
+install -d /{bin,boot,dev,etc/opt,home,lib,mnt}
+install -d /{sbin,srv,usr/local,var,opt,proc,sys}
+install -d /root -m 0750
+install -d /tmp /var/tmp -m 1777
+install -d /media/{floppy,cdrom}
+install -d /usr/{bin,include,lib,sbin,share,src}
+ln -s share/{man,doc,info} /usr
+install -d /usr/share/{doc,info,locale,man}
+install -d /usr/share/{misc,terminfo,zoneinfo}
+install -d /usr/share/man/man{1,2,3,4,5,6,7,8}
+install -d /usr/local/{bin,etc,include,lib,sbin,share,src}
+ln -s share/{man,doc,info} /usr/local
+install -d /usr/local/share/{doc,info,locale,man}
+install -d /usr/local/share/{misc,terminfo,zoneinfo}
+install -d /usr/local/share/man/man{1,2,3,4,5,6,7,8}
+install -d /var/{lock,log,mail,run,spool}
+install -d /var/{opt,cache,lib/{misc,locate},local}
+install -d /opt/{bin,doc,include,info}
+install -d /opt/{lib,man/man{1,2,3,4,5,6,7,8}}
+
+ These entries are needed for the RaQ2 bootloader. Only use these
+ if you are utilizing the Colo bootloader:
+
+cd /boot
+ln -sf . boot
+
+
+
+
+
+
+
+
Index: BOOK/chroot/mips64-64-chapter.xml
===================================================================
--- BOOK/chroot/mips64-64-chapter.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
+++ BOOK/chroot/mips64-64-chapter.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
@@ -0,0 +1,24 @@
+
+
+ %general-entities;
+]>
+
+
+
+
+
+ If You Are Going to Chroot
+
+
+
+
+
+
+
+
+
+
+
+
Index: BOOK/chroot/mips64-chapter.xml
===================================================================
--- BOOK/chroot/mips64-chapter.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
+++ BOOK/chroot/mips64-chapter.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
@@ -0,0 +1,24 @@
+
+
+ %general-entities;
+]>
+
+
+
+
+
+ If You Are Going to Chroot
+
+
+
+
+
+
+
+
+
+
+
+
Index: BOOK/chroot/mips64/createfiles.xml
===================================================================
--- BOOK/chroot/mips64/createfiles.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
+++ BOOK/chroot/mips64/createfiles.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
@@ -0,0 +1,23 @@
+
+
+ %general-entities;
+]>
+
+
+
+
+ Creating Essential Symlinks
+
+
+
+ln -s /tools/bin/{bash,cat,pwd,stty} /bin
+ln -s /tools/lib/libgcc_s.so{,.1} /usr/lib
+ln -s /tools/lib32/libgcc_s.so{,.1} /usr/lib32
+ln -s /tools/lib64/libgcc_s.so{,.1} /usr/lib64
+ln -s bash /bin/sh
+
+
Index: BOOK/chroot/mips64/creatingdirs.xml
===================================================================
--- BOOK/chroot/mips64/creatingdirs.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
+++ BOOK/chroot/mips64/creatingdirs.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
@@ -0,0 +1,58 @@
+
+
+ %general-entities;
+]>
+
+
+
+
+ Creating Directories
+
+
+
+install -d /{bin,boot,dev,etc/opt,home,lib{,32,64},mnt}
+install -d /{sbin,srv,usr/local,var,opt,proc,sys}
+install -d /root -m 0750
+install -d /tmp /var/tmp -m 1777
+install -d /media/{floppy,cdrom}
+install -d /usr/{bin,include,lib{,32,64},sbin,share,src}
+ln -s share/{man,doc,info} /usr
+install -d /usr/share/{doc,info,locale,man}
+install -d /usr/share/{misc,terminfo,zoneinfo}
+install -d /usr/share/man/man{1,2,3,4,5,6,7,8}
+install -d /usr/local/{bin,etc,include,lib{,32,64},sbin,share,src}
+ln -s share/{man,doc,info} /usr/local
+install -d /usr/local/share/{doc,info,locale,man}
+install -d /usr/local/share/{misc,terminfo,zoneinfo}
+install -d /usr/local/share/man/man{1,2,3,4,5,6,7,8}
+install -d /var/{lock,log,mail,run,spool}
+install -d /var/{opt,cache,lib{,32,64}/{misc,locate},local}
+install -d /opt/{bin,doc,include,info}
+install -d /opt/{lib{,32,64},man/man{1,2,3,4,5,6,7,8}}
+install -d /usr/lib/locale
+ln -s ../lib/locale /usr/lib32
+ln -s ../lib/locale /usr/lib64
+
+ These entries are needed for the RaQ2 bootloader. Only use these
+ if you are utilizing the Colo bootloader:
+
+cd /boot
+ln -sf . boot
+
+
+
+
+
+
+
+
Index: BOOK/chroot/multilib/createfiles.xml
===================================================================
--- BOOK/chroot/multilib/createfiles.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
+++ BOOK/chroot/multilib/createfiles.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
@@ -0,0 +1,22 @@
+
+
+ %general-entities;
+]>
+
+
+
+
+ Creating Essential Symlinks
+
+
+
+ln -s /tools/bin/{bash,cat,pwd,stty} /bin
+ln -s /tools/lib/libgcc_s.so{,.1} /usr/lib
+ln -s /tools/lib64/libgcc_s.so{,.1} /usr/lib64
+ln -s bash /bin/sh
+
+
Index: BOOK/chroot/multilib/creatingdirs.xml
===================================================================
--- BOOK/chroot/multilib/creatingdirs.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
+++ BOOK/chroot/multilib/creatingdirs.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
@@ -0,0 +1,51 @@
+
+
+ %general-entities;
+]>
+
+
+
+
+ Creating Directories
+
+
+
+install -d /{bin,boot,dev,etc/opt,home,lib{,64},mnt}
+install -d /{sbin,srv,usr/local,var,opt,proc,sys}
+install -d /root -m 0750
+install -d /tmp /var/tmp -m 1777
+install -d /media/{floppy,cdrom}
+install -d /usr/{bin,include,lib{,64},sbin,share,src}
+ln -s share/{man,doc,info} /usr
+install -d /usr/share/{doc,info,locale,man}
+install -d /usr/share/{misc,terminfo,zoneinfo}
+install -d /usr/share/man/man{1,2,3,4,5,6,7,8}
+install -d /usr/local/{bin,etc,include,lib{,64},sbin,share,src}
+ln -s share/{man,doc,info} /usr/local
+install -d /usr/local/share/{doc,info,locale,man}
+install -d /usr/local/share/{misc,terminfo,zoneinfo}
+install -d /usr/local/share/man/man{1,2,3,4,5,6,7,8}
+install -d /var/{lock,log,mail,run,spool}
+install -d /var/{opt,cache,lib{,64}/{misc,locate},local}
+install -d /opt/{bin,doc,include,info}
+install -d /opt/{lib{,64},man/man{1,2,3,4,5,6,7,8}}
+install -d /usr/lib/locale
+ln -s ../lib/locale /usr/lib64
+
+
+
+
+
+
+
+
Index: BOOK/chroot/multilib/util-linux.xml
===================================================================
--- BOOK/chroot/multilib/util-linux.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
+++ BOOK/chroot/multilib/util-linux.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
@@ -0,0 +1,94 @@
+
+
+
+ %general-entities;
+ %patches-entities;
+]>
+
+
+
+
+ Util-linux-&util-linux-version;
+
+
+ Util-linux
+ chroot
+
+
+
+
+
+
+
+
+ &buildtime;
+ &diskspace;
+
+
+ Not checked yet
+ Not checked yet
+
+
+
+
+
+
+
+
+ Installation of Util-linux
+
+
+
+
+
+
+
+CC="${CC} ${BUILD64}" ./configure
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Details on this package are located in
+
+
+
+
Index: BOOK/chroot/ppc-chapter.xml
===================================================================
--- BOOK/chroot/ppc-chapter.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
+++ BOOK/chroot/ppc-chapter.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
@@ -0,0 +1,24 @@
+
+
+ %general-entities;
+]>
+
+
+
+
+
+ If You Are Going to Chroot
+
+
+
+
+
+
+
+
+
+
+
+
Index: BOOK/chroot/sparc-chapter.xml
===================================================================
--- BOOK/chroot/sparc-chapter.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
+++ BOOK/chroot/sparc-chapter.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
@@ -0,0 +1,24 @@
+
+
+ %general-entities;
+]>
+
+
+
+
+
+ If You Are Going to Chroot
+
+
+
+
+
+
+
+
+
+
+
+
Index: BOOK/chroot/sparc64-64-chapter.xml
===================================================================
--- BOOK/chroot/sparc64-64-chapter.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
+++ BOOK/chroot/sparc64-64-chapter.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
@@ -0,0 +1,24 @@
+
+
+ %general-entities;
+]>
+
+
+
+
+
+ If You Are Going to Chroot
+
+
+
+
+
+
+
+
+
+
+
+
Index: BOOK/chroot/sparc64-chapter.xml
===================================================================
--- BOOK/chroot/sparc64-chapter.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
+++ BOOK/chroot/sparc64-chapter.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
@@ -0,0 +1,24 @@
+
+
+ %general-entities;
+]>
+
+
+
+
+
+ If You Are Going to Chroot
+
+
+
+
+
+
+
+
+
+
+
+
Index: BOOK/chroot/x86-chapter.xml
===================================================================
--- BOOK/chroot/x86-chapter.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
+++ BOOK/chroot/x86-chapter.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
@@ -0,0 +1,24 @@
+
+
+ %general-entities;
+]>
+
+
+
+
+
+ If You Are Going to Chroot
+
+
+
+
+
+
+
+
+
+
+
+
Index: BOOK/chroot/x86_64-64-chapter.xml
===================================================================
--- BOOK/chroot/x86_64-64-chapter.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
+++ BOOK/chroot/x86_64-64-chapter.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
@@ -0,0 +1,24 @@
+
+
+ %general-entities;
+]>
+
+
+
+
+
+ If You Are Going to Chroot
+
+
+
+
+
+
+
+
+
+
+
+
Index: BOOK/chroot/x86_64-chapter.xml
===================================================================
--- BOOK/chroot/x86_64-chapter.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
+++ BOOK/chroot/x86_64-chapter.xml (revision 3f8be484549afbb7a60fdc8afe688505d3d25c73)
@@ -0,0 +1,24 @@
+
+
+ %general-entities;
+]>
+
+
+
+
+
+ If You Are Going to Chroot
+
+
+
+
+
+
+
+
+
+
+
+