Index: BOOK/bootable/arm/kernel.xml
===================================================================
--- BOOK/bootable/arm/kernel.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/bootable/arm/kernel.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -54,5 +54,5 @@
url="&blfs-root;view/svn/longindex.html#kernel-config-index"/>:
-make ARCH=arm CROSS_COMPILE=${LFS_TARGET}- menuconfig
+make ARCH=arm CROSS_COMPILE=${CLFS_TARGET}- menuconfig
Alternatively, make oldconfig may be more
@@ -69,5 +69,5 @@
Compile the kernel image and modules:
-make ARCH=arm CROSS_COMPILE=${LFS_TARGET}-
+make ARCH=arm CROSS_COMPILE=${CLFS_TARGET}-
If using kernel modules, an
@@ -97,14 +97,14 @@
them:
-make ARCH=arm CROSS_COMPILE=${LFS_TARGET}- \
- INSTALL_MOD_PATH=${LFS} modules_install
+make ARCH=arm CROSS_COMPILE=${CLFS_TARGET}- \
+ INSTALL_MOD_PATH=${CLFS} modules_install
After kernel compilation is complete, additional steps are
required to complete the installation. Some files need to be copied to
- the ${LFS}/boot directory.
+ the ${CLFS}/boot directory.
Issue the following command to install the kernel:
-cp arch/i386/boot/bzImage ${LFS}/boot/lfskernel-&linux-version;
+cp arch/i386/boot/bzImage ${CLFS}/boot/lfskernel-&linux-version;
System.map is a symbol file for the kernel.
@@ -113,5 +113,5 @@
kernel. Issue the following command to install the map file:
-cp System.map ${LFS}/boot/System.map-&linux-version;
+cp System.map ${CLFS}/boot/System.map-&linux-version;
The kernel configuration file .config
@@ -120,5 +120,5 @@
It is a good idea to keep this file for future reference:
-cp .config ${LFS}/boot/config-&linux-version;
+cp .config ${CLFS}/boot/config-&linux-version;
Index: BOOK/bootable/common/chowning.xml
===================================================================
--- BOOK/bootable/common/chowning.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/bootable/common/chowning.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -19,7 +19,7 @@
The commands in the remainder of this book must be performed while
logged in as root. Check that
- $LFS is still set:
+ $CLFS is still set:
- echo $LFS
+ echo $CLFS
@@ -28,22 +28,22 @@
entire lfs system.
-chown -Rv root:root ${LFS}
+chown -Rv root:root ${CLFS}
The following files are not the be owned by
root.
-chgrp -v utmp ${LFS}/var/run/utmp ${LFS}/var/log/lastlog
+chgrp -v utmp ${CLFS}/var/run/utmp ${CLFS}/var/log/lastlog
The following device nodes need to be created for the system to
boot.
-mknod -m 0666 ${LFS}/dev/null c 1 3
-mknod -m 0600 ${LFS}/dev/console c 5 1
+mknod -m 0666 ${CLFS}/dev/null c 1 3
+mknod -m 0600 ${CLFS}/dev/console c 5 1
If you did not create the following rules in . You
need to create them now.
-mknod -m 0666 ${LFS}/lib/udev/devices/null c 1 3
-mknod -m 0600 ${LFS}/lib/udev/devices/console c 5 1
+mknod -m 0666 ${CLFS}/lib/udev/devices/null c 1 3
+mknod -m 0600 ${CLFS}/lib/udev/devices/console c 5 1
Index: BOOK/bootable/common/fstab.xml
===================================================================
--- BOOK/bootable/common/fstab.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/bootable/common/fstab.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -20,5 +20,5 @@
to mounting. Create a new file systems table like this:
-cat > ${LFS}/etc/fstab << "EOF"
+cat > ${CLFS}/etc/fstab << "EOF"
# Begin /etc/fstab
Index: BOOK/bootscripts/common/bootscripts.xml
===================================================================
--- BOOK/bootscripts/common/bootscripts.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/bootscripts/common/bootscripts.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -28,5 +28,5 @@
Install the package:
-make DESTDIR=${LFS} install
+make DESTDIR=${CLFS} install
Index: BOOK/bootscripts/common/console.xml
===================================================================
--- BOOK/bootscripts/common/console.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/bootscripts/common/console.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -35,5 +35,5 @@
the configuration file with the following command:
-cat >${LFS}/etc/sysconfig/console <<"EOF"
+cat >${CLFS}/etc/sysconfig/console <<"EOF"
KEYMAP="[arguments for loadkeys]"
FONT="[arguments for setfont]"
@@ -44,5 +44,5 @@
correct:
-cat >${LFS}/etc/sysconfig/console <<"EOF"
+cat >${CLFS}/etc/sysconfig/console <<"EOF"
KEYMAP="es euro2"
FONT="lat9-16 -u iso01"
@@ -74,5 +74,5 @@
following keymap snippet to fix this issue:
-mkdir -p ${LFS}/etc/kbd && cat > ${LFS}/etc/kbd/bs-sends-del <<"EOF"
+mkdir -p ${CLFS}/etc/kbd && cat > ${CLFS}/etc/kbd/bs-sends-del <<"EOF"
keycode 14 = Delete Delete Delete Delete
alt keycode 14 = Meta_Delete
@@ -87,5 +87,5 @@
snippet after the main keymap:
-cat >> ${LFS}/etc/sysconfig/console <<"EOF"
+cat >> ${CLFS}/etc/sysconfig/console <<"EOF"
KEYMAP_CORRECTIONS="/etc/kbd/bs-sends-del"
EOF
Index: BOOK/bootscripts/common/hostname.xml
===================================================================
--- BOOK/bootscripts/common/hostname.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/bootscripts/common/hostname.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -22,5 +22,5 @@
and enter a hostname by running:
- echo "HOSTNAME=[lfs]" > ${LFS}/etc/sysconfig/network
+ echo "HOSTNAME=[lfs]" > ${CLFS}/etc/sysconfig/network
[lfs] needs to be replaced with the
Index: BOOK/bootscripts/common/hosts.xml
===================================================================
--- BOOK/bootscripts/common/hosts.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/bootscripts/common/hosts.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -50,5 +50,5 @@
Create the /etc/hosts file by running:
-cat > ${LFS}/etc/hosts << "EOF"
+cat > ${CLFS}/etc/hosts << "EOF"
# Begin /etc/hosts (network card version)
@@ -69,5 +69,5 @@
/etc/hosts file by running:
-cat > ${LFS}/etc/hosts << "EOF"
+cat > ${CLFS}/etc/hosts << "EOF"
# Begin /etc/hosts (no network card version)
Index: BOOK/bootscripts/common/inputrc.xml
===================================================================
--- BOOK/bootscripts/common/inputrc.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/bootscripts/common/inputrc.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -37,5 +37,5 @@
using the following command:
-cat > ${LFS}/etc/inputrc << "EOF"
+cat > ${CLFS}/etc/inputrc << "EOF"
# Begin /etc/inputrc
# Modified by Chris Lynn <roryo@roryo.dynup.net>
Index: BOOK/bootscripts/common/network.xml
===================================================================
--- BOOK/bootscripts/common/network.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/bootscripts/common/network.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -39,5 +39,5 @@
file for the eth0 device:
-cd ${LFS}/etc/sysconfig/network-devices &&
+cd ${CLFS}/etc/sysconfig/network-devices &&
mkdir ifconfig.eth0 &&
cat > ifconfig.eth0/ipv4 << "EOF"
@@ -95,5 +95,5 @@
Create the file by running the following:
-cat > ${LFS}/etc/resolv.conf << "EOF"
+cat > ${CLFS}/etc/resolv.conf << "EOF"
# Begin /etc/resolv.conf
Index: BOOK/bootscripts/common/profile.xml
===================================================================
--- BOOK/bootscripts/common/profile.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/bootscripts/common/profile.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -140,5 +140,5 @@
/etc/profile file:
-cat > ${LFS}/etc/profile << "EOF"
+cat > ${CLFS}/etc/profile << "EOF"
# Begin /etc/profile
Index: BOOK/bootscripts/common/setclock.xml
===================================================================
--- BOOK/bootscripts/common/setclock.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/bootscripts/common/setclock.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -42,5 +42,5 @@
the following:
-cat > ${LFS}/etc/sysconfig/clock << "EOF"
+cat > ${CLFS}/etc/sysconfig/clock << "EOF"
# Begin /etc/sysconfig/clock
Index: BOOK/bootscripts/common/udev-rules.xml
===================================================================
--- BOOK/bootscripts/common/udev-rules.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/bootscripts/common/udev-rules.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -30,9 +30,9 @@
sets:
-rm -vf ${LFS}/etc/udev/rules.d/*
+rm -vf ${CLFS}/etc/udev/rules.d/*
Install the package:
-make DESTDIR=${LFS} install
+make DESTDIR=${CLFS} install
Index: BOOK/cross-tools/arm/glibc-headers.xml
===================================================================
--- BOOK/cross-tools/arm/glibc-headers.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/cross-tools/arm/glibc-headers.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -68,6 +68,6 @@
CC=gcc ../glibc-&glibc-version;/configure --prefix=/usr \
- --host=${LFS_TARGET} --build=${LFS_HOST} \
- --with-headers=${LFS}/usr/include --cache-file=config.cache
+ --host=${CLFS_TARGET} --build=${CLFS_HOST} \
+ --with-headers=${CLFS}/usr/include --cache-file=config.cache
@@ -82,8 +82,8 @@
- --with-headers=${LFS}/usr/include
+ --with-headers=${CLFS}/usr/include
This tells Glibc to compile itself against the headers
- recently installed to the ${LFS}/usr/include
+ recently installed to the ${CLFS}/usr/include
directory, so that it knows exactly what features the kernel has
and can optimize itself accordingly.
@@ -101,17 +101,17 @@
First we will copy a common file over to ${LFS}/usr/include:
+ class="directory">${CLFS}/usr/include:
-install -dv ${LFS}/usr/include/bits
-cp -v bits/stdio_lim.h ${LFS}/usr/include/bits
+install -dv ${CLFS}/usr/include/bits
+cp -v bits/stdio_lim.h ${CLFS}/usr/include/bits
Now we will create a blank stub file:
-touch ${LFS}/usr/include/gnu/stubs.h
+touch ${CLFS}/usr/include/gnu/stubs.h
For NPTL we use the following command:
cp -v ../glibc-&glibc-version;/ports/sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h \
- ${LFS}/usr/include/bits
+ ${CLFS}/usr/include/bits
Index: BOOK/cross-tools/arm/linux-headers.xml
===================================================================
--- BOOK/cross-tools/arm/linux-headers.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/cross-tools/arm/linux-headers.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -37,20 +37,20 @@
Install the header files that are common to all architectures:
-install -dv ${LFS}/usr/include/{asm,asm-generic,linux,net,mtd,scsi,sound}
-cp -av include/asm-generic/* ${LFS}/usr/include/asm-generic
-cp -av include/linux/* ${LFS}/usr/include/linux
-cp -av include/mtd/* ${LFS}/usr/include/mtd
-cp -av include/net/* ${LFS}/usr/include/net
-cp -av include/scsi/* ${LFS}/usr/include/scsi
-cp -av include/sound/* ${LFS}/usr/include/sound
+install -dv ${CLFS}/usr/include/{asm,asm-generic,linux,net,mtd,scsi,sound}
+cp -av include/asm-generic/* ${CLFS}/usr/include/asm-generic
+cp -av include/linux/* ${CLFS}/usr/include/linux
+cp -av include/mtd/* ${CLFS}/usr/include/mtd
+cp -av include/net/* ${CLFS}/usr/include/net
+cp -av include/scsi/* ${CLFS}/usr/include/scsi
+cp -av include/sound/* ${CLFS}/usr/include/sound
Install the header files that are specific to this architecture:
-cp -av include/asm-arm/* ${LFS}/usr/include/asm
+cp -av include/asm-arm/* ${CLFS}/usr/include/asm
Make sure the users can read the headers:
-find ${LFS}/usr/include/{asm,asm-generic,linux,mtd,net,scsi,sound} -type d -exec chmod -v 755 {} \;
-find ${LFS}/usr/include/{asm,asm-generic,linux,mtd,net,scsi,sound} -type f -exec chmod -v 644 {} \;
+find ${CLFS}/usr/include/{asm,asm-generic,linux,mtd,net,scsi,sound} -type d -exec chmod -v 755 {} \;
+find ${CLFS}/usr/include/{asm,asm-generic,linux,mtd,net,scsi,sound} -type f -exec chmod -v 644 {} \;
Index: BOOK/cross-tools/arm/variables.xml
===================================================================
--- BOOK/cross-tools/arm/variables.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/cross-tools/arm/variables.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -35,6 +35,6 @@
case you have to exit and restart building later:
-echo export LFS_HOST=\""${LFS_HOST}\"" >> ~/.bashrc
-echo export LFS_TARGET=\""${LFS_TARGET}\"" >> ~/.bashrc
+echo export LFS_HOST=\""${CLFS_HOST}\"" >> ~/.bashrc
+echo export LFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc
Index: BOOK/cross-tools/common/binutils.xml
===================================================================
--- BOOK/cross-tools/common/binutils.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/cross-tools/common/binutils.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -48,6 +48,6 @@
xpointer="xpointer(//*[@os='c'])"/>
-../binutils-&binutils-version;/configure --prefix=${LFS}/cross-tools \
- --host=${LFS_HOST} --target=${LFS_TARGET} --with-sysroot=${LFS} \
+../binutils-&binutils-version;/configure --prefix=${CLFS}/cross-tools \
+ --host=${CLFS_HOST} --target=${CLFS_TARGET} --with-sysroot=${CLFS} \
--disable-nls --enable-shared --disable-multilib
@@ -56,8 +56,8 @@
- --prefix=${LFS}/cross-tools
+ --prefix=${CLFS}/cross-tools
This tells the configure script to prepare to install the
- package in the ${LFS}/cross-tools
+ package in the ${CLFS}/cross-tools
directory.
@@ -65,24 +65,24 @@
- --host=${LFS_HOST}
+ --host=${CLFS_HOST}
When used with --target, this creates a cross-architecture
- executable that creates files for ${LFS_TARGET} but runs on ${LFS_HOST).
+ executable that creates files for ${CLFS_TARGET} but runs on ${CLFS_HOST).
- --target=${LFS_TARGET}
+ --target=${CLFS_TARGET}
When used with --host, this creates a cross-architecture
- executable that creates files for ${LFS_TARGET} but runs on ${LFS_HOST).
+ executable that creates files for ${CLFS_TARGET} but runs on ${CLFS_HOST).
- --with-sysroot=${LFS}
+ --with-sysroot=${CLFS}
- This tells configure that ${LFS} is going to be the root
- of our system. It will now use the specified sysroot, ${LFS} as
+ This tells configure that ${CLFS} is going to be the root
+ of our system. It will now use the specified sysroot, ${CLFS} as
a prefix of the default search paths.
@@ -137,7 +137,7 @@
Copy the file to
- ${LFS}/usr/include directory:
+ ${CLFS}/usr/include directory:
-cp -v ../binutils-&binutils-version;/include/libiberty.h ${LFS}/usr/include
+cp -v ../binutils-&binutils-version;/include/libiberty.h ${CLFS}/usr/include
Index: BOOK/cross-tools/common/file.xml
===================================================================
--- BOOK/cross-tools/common/file.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/cross-tools/common/file.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -19,5 +19,5 @@
Prepare File for compilation:
-./configure --prefix=${LFS}/cross-tools
+./configure --prefix=${CLFS}/cross-tools
Compile the Package:
Index: BOOK/cross-tools/common/gcc-final.xml
===================================================================
--- BOOK/cross-tools/common/gcc-final.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/cross-tools/common/gcc-final.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -59,7 +59,7 @@
xpointer="xpointer(//*[@os='e'])"/>
-../gcc-&gcc-version;/configure --prefix=${LFS}/cross-tools \
- --host=${LFS_HOST} --target=${LFS_TARGET} --disable-multilib \
- --with-sysroot=${LFS} --disable-nls --enable-shared \
+../gcc-&gcc-version;/configure --prefix=${CLFS}/cross-tools \
+ --host=${CLFS_HOST} --target=${CLFS_TARGET} --disable-multilib \
+ --with-sysroot=${CLFS} --disable-nls --enable-shared \
--enable-languages=c,c++ --enable-__cxa_atexit \
--enable-c99 --enable-long-long --enable-threads=posix
Index: BOOK/cross-tools/common/gcc-static.xml
===================================================================
--- BOOK/cross-tools/common/gcc-static.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/cross-tools/common/gcc-static.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -51,7 +51,7 @@
xpointer="xpointer(//*[@os='e'])"/>
-../gcc-&gcc-version;/configure --prefix=${LFS}/cross-tools \
- --host=${LFS_HOST} --target=${LFS_TARGET} --disable-multilib \
- --with-sysroot=${LFS} --disable-nls --disable-shared \
+../gcc-&gcc-version;/configure --prefix=${CLFS}/cross-tools \
+ --host=${CLFS_HOST} --target=${CLFS_TARGET} --disable-multilib \
+ --with-sysroot=${CLFS} --disable-nls --disable-shared \
--enable-languages=c
Index: BOOK/cross-tools/common/glibc.xml
===================================================================
--- BOOK/cross-tools/common/glibc.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/cross-tools/common/glibc.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -74,15 +74,15 @@
configparms to adjust instalation paths:
-echo "install_root=${LFS}" > configparms
+echo "install_root=${CLFS}" > configparms
Prepare Glibc for compilation:
-BUILD_CC="gcc" CC="${LFS_TARGET}-gcc" \
- AR="${LFS_TARGET}-ar" RANLIB="${LFS_TARGET}-ranlib" \
+BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc" \
+ AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \
../glibc-&glibc-version;/configure --prefix=/usr --libexecdir=/usr/lib/glibc \
- --host=${LFS_TARGET} --build=${LFS_HOST} \
+ --host=${CLFS_TARGET} --build=${CLFS_HOST} \
--disable-profile --enable-add-ons \
--with-tls --enable-kernel=2.6.0 --with-__thread \
- --with-binutils=${LFS}/cross-tools/bin --with-headers=${LFS}/usr/include \
+ --with-binutils=${CLFS}/cross-tools/bin --with-headers=${CLFS}/usr/include \
--cache-file=config.cache
@@ -99,5 +99,5 @@
- CC="${LFS_TARGET}-gcc"
+ CC="${CLFS_TARGET}-gcc"
This forces Glibc to use the GCC compiler that we made for our target
@@ -107,5 +107,5 @@
- AR="${LFS_TARGET}-ar"
+ AR="${CLFS_TARGET}-ar"
This forces Glibc to use the ar utility
@@ -115,5 +115,5 @@
- RANLIB="${LFS_TARGET}-ranlib"
+ RANLIB="${CLFS_TARGET}-ranlib"
This forces Glibc to use the ranlib utility
@@ -154,5 +154,5 @@
- --with-binutils=${LFS}/cross-tools/bin
+ --with-binutils=${CLFS}/cross-tools/bin
This tells Glibc to use the Binutils that are specific to
@@ -214,5 +214,5 @@
successfully:
-mkdir -pv ${LFS}/usr/lib/locale
+mkdir -pv ${CLFS}/usr/lib/locale
localedef -i de_DE -f ISO-8859-1 de_DE
localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
@@ -263,5 +263,5 @@
the following:
-cat > ${LFS}/etc/nsswitch.conf << "EOF"
+cat > ${CLFS}/etc/nsswitch.conf << "EOF"
# Begin /etc/nsswitch.conf
@@ -283,5 +283,5 @@
To determine the local time zone, run the following script:
-${LFS}/usr/bin/tzselect
+${CLFS}/usr/bin/tzselect
After answering a few questions about the location, the script will
@@ -290,6 +290,6 @@
/etc/localtime file by running:
-cp -v --remove-destination ${LFS}/usr/share/zoneinfo/[xxx] \
- ${LFS}/etc/localtime
+cp -v --remove-destination ${CLFS}/usr/share/zoneinfo/[xxx] \
+ ${CLFS}/etc/localtime
Replace [xxx] with the name of the time zone
@@ -337,5 +337,5 @@
following:
-cat > ${LFS}/etc/ld.so.conf << "EOF"
+cat > ${CLFS}/etc/ld.so.conf << "EOF"
# Begin /etc/ld.so.conf
Index: BOOK/final-preps/aboutclfs.xml
===================================================================
--- BOOK/final-preps/aboutclfs.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
+++ BOOK/final-preps/aboutclfs.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -0,0 +1,43 @@
+
+
+ %general-entities;
+]>
+
+
+
+
+ About $CLFS
+
+ Throughout this book, the environment variable LFS will
+ be used several times. It is paramount that this variable is always defined.
+ It should be set to the mount point chosen for the CLFS partition.
+ Check that the LFS variable is set up properly with:
+
+echo $CLFS
+
+ Make sure the output shows the path to the CLFS partition's mount
+ point, which is /mnt/lfs if the
+ provided example was followed. If the output is incorrect, the
+ variable can be set with:
+
+export CLFS=/mnt/lfs
+
+ Having this variable set is beneficial in that commands such as
+ install -d $CLFS/tools can be typed literally. The shell
+ will automatically replace $CLFS
with
+ /mnt/lfs
(or whatever the variable was set to) when it
+ processes the command line.
+
+ If you haven't created the $CLFS
+ directory, do so at this time by issuing the following commands:
+
+install -dv $CLFS
+
+ Do not forget to check that $CLFS is set whenever
+ you leave and reenter the current working environment (as when doing a
+ su
to root or
+ another user).
+
+
Index: OK/final-preps/aboutlfs.xml
===================================================================
--- BOOK/final-preps/aboutlfs.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ (revision )
@@ -1,43 +1,0 @@
-
-
- %general-entities;
-]>
-
-
-
-
- About $LFS
-
- Throughout this book, the environment variable LFS will
- be used several times. It is paramount that this variable is always defined.
- It should be set to the mount point chosen for the CLFS partition.
- Check that the LFS variable is set up properly with:
-
-echo $LFS
-
- Make sure the output shows the path to the CLFS partition's mount
- point, which is /mnt/lfs if the
- provided example was followed. If the output is incorrect, the
- variable can be set with:
-
-export LFS=/mnt/lfs
-
- Having this variable set is beneficial in that commands such as
- install -d $LFS/tools can be typed literally. The shell
- will automatically replace $LFS
with
- /mnt/lfs
(or whatever the variable was set to) when it
- processes the command line.
-
- If you haven't created the $LFS
- directory, do so at this time by issuing the following commands:
-
-install -dv $LFS
-
- Do not forget to check that $LFS is set whenever
- you leave and reenter the current working environment (as when doing a
- su
to root or
- another user).
-
-
Index: BOOK/final-preps/addinguser.xml
===================================================================
--- BOOK/final-preps/addinguser.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-preps/addinguser.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -9,5 +9,5 @@
- Adding the LFS User
+ Adding the CLFS User
When logged in as user root,
@@ -16,11 +16,11 @@
You could use your own user name, but to make it easier to set up a clean
work environment, create a new user called lfs as a member of a new group (also named
- lfs) and use this user during
+ class="username">clfs as a member of a new group (also named
+ clfs) and use this user during
the installation process. As root,
issue the following commands to add the new user:
-groupadd lfs
-useradd -s /bin/bash -g lfs -m -k /dev/null lfs
+groupadd clfs
+useradd -s /bin/bash -g clfs -m -k /dev/null clfs
@@ -31,13 +31,13 @@
This makes bash the default shell for
- user lfs.
+ user clfs.
- -g lfs
+ -g clfs
- This option adds user lfs
- to group lfs.
+ This option adds user clfs
+ to group clfs.
@@ -47,5 +47,5 @@
This creates a home directory for lfs.
+ class="username">clfs.
@@ -69,24 +69,24 @@
- To log in as lfs (as
- opposed to switching to user lfs
+ To log in as clfs (as
+ opposed to switching to user clfs
when logged in as root, which
- does not require the lfs user
- to have a password), give lfs
+ does not require the clfs user
+ to have a password), give clfs
a password:
-passwd lfs
+passwd clfs
- Grant lfs full access to
- $LFS by making Grant clfs full access to
+ $CLFS by making lfs the directory's owner:
-chown -Rv lfs $LFS
+chown -Rv clfs $CLFS
- Next, login as user lfs.
+ Next, login as user clfs.
This can be done via a virtual console, through a display manager, or
with the following substitute user command:
-su - lfs
+su - clfs
The -
instructs
Index: BOOK/final-preps/chapter.xml
===================================================================
--- BOOK/final-preps/chapter.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-preps/chapter.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -12,5 +12,5 @@
Final Preparations
-
+
Index: BOOK/final-preps/creatingdirs.xml
===================================================================
--- BOOK/final-preps/creatingdirs.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-preps/creatingdirs.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -14,17 +14,17 @@
standard directory tree by issuing the following commands:
-mkdir -pv ${LFS}/{bin,boot,dev,etc/opt,home,lib,mnt,opt}
-mkdir -pv ${LFS}/{proc,media/{floppy,cdrom},sbin,srv,sys,var}
-install -dv -m 0750 ${LFS}/root
-install -dv -m 1777 ${LFS}{/var,}/tmp
-mkdir -pv ${LFS}/usr/{,local/}{bin,include,lib,sbin,src}
-mkdir -pv ${LFS}/usr/{,local/}share/{doc,info,locale,man}
-mkdir -v ${LFS}/usr/{,local/}share/{misc,terminfo,zoneinfo}
-mkdir -pv ${LFS}/usr/{,local/}share/man/man{1..8}
-for dir in ${LFS}/usr{,/local}; do
+mkdir -pv ${CLFS}/{bin,boot,dev,etc/opt,home,lib,mnt,opt}
+mkdir -pv ${CLFS}/{proc,media/{floppy,cdrom},sbin,srv,sys,var}
+install -dv -m 0750 ${CLFS}/root
+install -dv -m 1777 ${CLFS}{/var,}/tmp
+mkdir -pv ${CLFS}/usr/{,local/}{bin,include,lib,sbin,src}
+mkdir -pv ${CLFS}/usr/{,local/}share/{doc,info,locale,man}
+mkdir -v ${CLFS}/usr/{,local/}share/{misc,terminfo,zoneinfo}
+mkdir -pv ${CLFS}/usr/{,local/}share/man/man{1..8}
+for dir in ${CLFS}/usr{,/local}; do
ln -sv share/{man,doc,info} $dir
done
-mkdir -v ${LFS}/var/{lock,log,mail,run,spool}
-mkdir -pv ${LFS}/var/{opt,cache,lib/{misc,locate},local}
+mkdir -v ${CLFS}/var/{lock,log,mail,run,spool}
+mkdir -pv ${CLFS}/var/{opt,cache,lib/{misc,locate},local}
Directories are, by default, created with permission mode 755, but
Index: BOOK/final-preps/creatingfiles.xml
===================================================================
--- BOOK/final-preps/creatingfiles.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-preps/creatingfiles.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -24,5 +24,5 @@
- /var/log/btmp
+ /var/log/btmp
@@ -41,5 +41,5 @@
utilities that expect the presence of /etc/mtab:
-touch ${LFS}/etc/mtab
+touch ${CLFS}/etc/mtab
In order for user root to be
@@ -51,5 +51,5 @@
command:
-cat > ${LFS}/etc/passwd << "EOF"
+cat > ${CLFS}/etc/passwd << "EOF"
root:x:0:0:root:/root:/bin/bash
EOF
@@ -58,8 +58,74 @@
(the x
used here is just a placeholder) will be set later.
+ TO BE WRITTEN: more text describing additional users
+
+ Additional users you may want to add:
+
+
+ bin:x:1:1:bin:/bin:/bin/false
+
+ To be written
+
+
+
+ daemon:x:2:6:daemon:/sbin:/bin/false
+
+ To be written
+
+
+
+ adm:x:3:16:adm:/var/adm:/bin/false
+
+ To be written
+
+
+
+ lp:x:10:9:lp:/var/spool/lp:/bin/false
+
+ To be written
+
+
+
+ mail:x:30:30:mail:/var/mail:/bin/false
+
+ To be written
+
+
+
+ news:x:31:31:news:/var/spool/news:/bin/false
+
+ To be written
+
+
+
+ uucp:x:32:32:uucp:/var/spool/uucp:/bin/false
+
+ To be written
+
+
+
+ operator:x:50:0:operator:/root:/bin/bash
+
+ To be written
+
+
+
+ postmaster:x:51:30:postmaster:/var/spool/mail:/bin/false
+
+ To be written
+
+
+
+ nobody:x:65534:65534:nobody:/:/bin/false
+
+ To be written
+
+
+
+
Create the /etc/group file by running the following
command:
-cat > ${LFS}/etc/group << "EOF"
+cat > ${CLFS}/etc/group << "EOF"
root:x:0:
bin:x:1:
@@ -80,4 +146,64 @@
EOF
+
+
+ Additional groups you may want to add
+
+
+ adm:x:16:root,adm,daemon
+
+ To be written
+
+
+
+ console:x:17:
+
+ To be written
+
+
+
+ cdrw:x:18:
+
+ To be written
+
+
+
+ mail:x:30:mail
+
+ Used by MTAs (Mail Transport Agents)
+
+
+
+ news:x:31:news
+
+ To be written
+
+
+
+ uucp:x:32:uucp
+
+ To be written
+
+
+
+ users:x:100:
+
+ To be written
+
+
+
+ nogroup:x:65533:
+
+ To be written
+
+
+
+ nobody:x:65534:
+
+ To be written
+
+
+
+
The created groups are not part of any standard—they are groups
decided on in part by the requirements of the Udev configuration in this
@@ -98,6 +224,6 @@
proper permissions:
-touch ${LFS}/var/run/utmp ${LFS}/var/log/{btmp,lastlog,wtmp}
-chmod -v 664 ${LFS}/var/run/utmp ${LFS}/var/log/lastlog
+touch ${CLFS}/var/run/utmp ${CLFS}/var/log/{btmp,lastlog,wtmp}
+chmod -v 664 ${CLFS}/var/run/utmp ${CLFS}/var/log/lastlog
The /var/run/utmp file records the users
Index: BOOK/final-preps/settingenviron.xml
===================================================================
--- BOOK/final-preps/settingenviron.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-preps/settingenviron.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -13,5 +13,5 @@
Set up a good working environment by creating two new startup
files for the bash shell. While logged in as user
- lfs, issue the following
+ clfs, issue the following
command to create a new .bash_profile:
@@ -20,5 +20,5 @@
EOF
- When logged on as user lfs,
+ When logged on as user clfs,
the initial shell is usually a login shell which
reads the /etc/profile of the host (probably
@@ -42,7 +42,7 @@
set +h
umask 022
-LFS=/mnt/lfs
+CLFS=/mnt/clfs
LC_ALL=POSIX
-PATH=${LFS}/cross-tools/bin:/bin:/usr/bin
+PATH=${CLFS}/cross-tools/bin:/bin:/usr/bin
export LFS LC_ALL PATH
EOF
@@ -56,5 +56,5 @@
the shell will always search the PATH when a program is to
be run. As such, the shell will find the newly compiled tools in
- $LFS${LFS}/cross-tools as soon as they are
+ $CLFS${CLFS}/cross-tools as soon as they are
available without remembering a previous version of the same program in a
different location.
@@ -66,5 +66,5 @@
mode 644 and directories with mode 755).
- The LFS variable should be set to the
+ The CLFS variable should be set to the
chosen mount point.
@@ -80,5 +80,5 @@
the chroot environment.
- By putting ${LFS}/cross-tools/bin
+ By putting ${CLFS}/cross-tools/bin
at the beginning of the PATH, the cross-compiler
built in will be picked up by
Index: BOOK/final-system/arm/perl.xml
===================================================================
--- BOOK/final-system/arm/perl.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/arm/perl.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -46,5 +46,5 @@
xpointer="xpointer(//*[@os='c'])"/>
-make ARCH=arm CROSS_COMPILE="${LFS_TARGET}-"
+make ARCH=arm CROSS_COMPILE="${CLFS_TARGET}-"
Prepare Autoconf for compilation:
-./configure --prefix=/usr --host=${LFS_TARGET}
+./configure --prefix=/usr --host=${CLFS_TARGET}
Compile the package:
@@ -36,5 +36,5 @@
Install the package:
-make DESTDIR=${LFS} install
+make DESTDIR=${CLFS} install
Index: BOOK/final-system/common/automake.xml
===================================================================
--- BOOK/final-system/common/automake.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/automake.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -28,5 +28,5 @@
Prepare Automake for compilation:
-./configure --prefix=/usr --host=${LFS_TARGET}
+./configure --prefix=/usr --host=${CLFS_TARGET}
Compile the package:
@@ -36,5 +36,5 @@
Install the package:
-make DESTDIR=${LFS} install
+make DESTDIR=${CLFS} install
Index: BOOK/final-system/common/bash.xml
===================================================================
--- BOOK/final-system/common/bash.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/bash.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -47,5 +47,5 @@
./configure --prefix=/usr --bindir=/bin \
- --host=${LFS_TARGET} --cache-file=config.cache \
+ --host=${CLFS_TARGET} --cache-file=config.cache \
--without-bash-malloc --with-installed-readline
@@ -70,9 +70,9 @@
Install the package:
-make DESTDIR=${LFS} install
+make DESTDIR=${CLFS} install
Create /bin/sh:
-ln -sv bash ${LFS}/bin/sh
+ln -sv bash ${CLFS}/bin/sh
Index: BOOK/final-system/common/binutils.xml
===================================================================
--- BOOK/final-system/common/binutils.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/binutils.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -40,6 +40,6 @@
../binutils-&binutils-version;/configure --prefix=/usr \
- --build=${LFS_HOST} --host=${LFS_TARGET} \
- --target=${LFS_TARGET} --enable-shared
+ --build=${CLFS_HOST} --host=${CLFS_TARGET} \
+ --target=${CLFS_TARGET} --enable-shared
Compile the package:
@@ -76,10 +76,10 @@
Install the package:
-make DESTDIR=${LFS} tooldir=/usr install
+make DESTDIR=${CLFS} tooldir=/usr install
Install the header
file that is needed by some packages:
-cp -v ../binutils-&binutils-version;/include/libiberty.h ${LFS}/usr/include
+cp -v ../binutils-&binutils-version;/include/libiberty.h ${CLFS}/usr/include
Index: BOOK/final-system/common/bison.xml
===================================================================
--- BOOK/final-system/common/bison.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/bison.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -27,5 +27,5 @@
Prepare Bison for compilation:
-./configure --prefix=/usr --host=${LFS_TARGET}
+./configure --prefix=/usr --host=${CLFS_TARGET}
The configure system causes bison to be built without support
@@ -42,5 +42,5 @@
Install the package:
-make DESTDIR=${LFS} install
+make DESTDIR=${CLFS} install
Index: BOOK/final-system/common/bzip2.xml
===================================================================
--- BOOK/final-system/common/bzip2.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/bzip2.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -68,11 +68,11 @@
If reinstalling Bzip2, perform
- rm -vf ${LFS}/usr/bin/bz* first, otherwise the
- following make PREFIX=${LFS}/usr install will fail.
+ rm -vf ${CLFS}/usr/bin/bz* first, otherwise the
+ following make PREFIX=${CLFS}/usr install will fail.
Install the programs:
-make PREFIX=${LFS}/usr install
+make PREFIX=${CLFS}/usr install
Install the shared bzip2 binary into the
@@ -80,10 +80,10 @@
some necessary symbolic links, and clean up:
-cp -v bzip2-shared ${LFS}/bin/bzip2
-cp -av libbz2.so* ${LFS}/lib
-ln -sv ../../lib/libbz2.so.1.0 ${LFS}/usr/lib/libbz2.so
-rm -v ${LFS}/usr/bin/{bunzip2,bzcat,bzip2}
-ln -sv bzip2 ${LFS}/bin/bunzip2
-ln -sv bzip2 ${LFS}/bin/bzcatt
+cp -v bzip2-shared ${CLFS}/bin/bzip2
+cp -av libbz2.so* ${CLFS}/lib
+ln -sv ../../lib/libbz2.so.1.0 ${CLFS}/usr/lib/libbz2.so
+rm -v ${CLFS}/usr/bin/{bunzip2,bzcat,bzip2}
+ln -sv bzip2 ${CLFS}/bin/bunzip2
+ln -sv bzip2 ${CLFS}/bin/bzcatt
Index: BOOK/final-system/common/coreutils.xml
===================================================================
--- BOOK/final-system/common/coreutils.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/coreutils.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -40,5 +40,5 @@
./configure --prefix=/usr --cache-file=config.cache \
- --build=${LFS_HOST} --host=${LFS_TARGET}
+ --build=${CLFS_HOST} --host=${CLFS_TARGET}
Compile the package:
@@ -48,21 +48,21 @@
Install the package:
-make DESTDIR=${LFS} install
+make DESTDIR=${CLFS} install
Move programs to the locations specified by the FHS:
-mv -v ${LFS}/usr/bin/{[,basename,cat,chgrp,chmod,chown,cp} ${LFS}/bin
-mv -v ${LFS}/usr/bin/{date,dd,df,echo,false,hostname,install,ln} ${LFS}/bin
-mv -v ${LFS}/usr/bin/{ls,mkdir,mknod,mv,nice,pwd,readlink,rm,rmdir,sync} ${LFS}/bin
-mv -v ${LFS}/usr/bin/{stty,test,touch,true,uname} ${LFS}/bin
-mv -v ${LFS}/usr/bin/chroot ${LFS}/usr/sbin
-ln -svf ../../bin/install ${LFS}/usr/bin
-
- Some of the scripts in the LFS-Bootscripts package depend on
- head and sleep. As mv -v ${CLFS}/usr/bin/{cat,chgrp,chmod,chown,cp,date} ${CLFS}/bin
+mv -v ${CLFS}/usr/bin/{dd,df,echo,false,hostname,ln,ls,mkdir,mknod} ${CLFS}/bin
+mv -v ${CLFS}/usr/bin/{mv,pwd,rm,rmdir,stty,true,uname} ${CLFS}/bin
+mv -v ${CLFS}/usr/bin/chroot ${CLFS}/usr/sbin
+
+ Other Coreutils programs are used by some of the scripts
+ in the CLFS-Bootscripts pacakge. As /usr may not be available during the early
stages of booting, those binaries need to be on the root partition:
-mv -v ${LFS}/usr/bin/{head,sleep} ${LFS}/bin
+mv -v ${CLFS}/usr/bin/{[,basename,head,install,nice} ${CLFS}/bin
+mv -v ${CLFS}/usr/bin/{readlink,sleep,sync,test,touch} ${CLFS}/bin
+ln -svf ../../bin/install ${CLFS}/usr/bin
Index: BOOK/final-system/common/diffutils.xml
===================================================================
--- BOOK/final-system/common/diffutils.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/diffutils.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -28,5 +28,5 @@
Prepare Diffutils for compilation:
-./configure --prefix=/usr --host=${LFS_TARGET}
+./configure --prefix=/usr --host=${CLFS_TARGET}
Compile the package:
@@ -36,5 +36,5 @@
Install the package:
-make DESTDIR=${LFS} install
+make DESTDIR=${CLFS} install
Index: BOOK/final-system/common/e2fsprogs.xml
===================================================================
--- BOOK/final-system/common/e2fsprogs.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/e2fsprogs.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -38,5 +38,5 @@
../configure --prefix=/usr --with-root-prefix="" \
--enable-elf-shlibs --disable-evms \
- --host=${LFS_TARGET}
+ --host=${CLFS_TARGET}
@@ -85,9 +85,9 @@
Install the binaries and documentation:
-make DESTDIR=${LFS} install
+make DESTDIR=${CLFS} install
Install the shared libraries:
-make DESTDIR=${LFS} install-libs
+make DESTDIR=${CLFS} install-libs
Index: BOOK/final-system/common/file.xml
===================================================================
--- BOOK/final-system/common/file.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/file.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -28,5 +28,5 @@
Prepare File for compilation:
-./configure --prefix=/usr --host=${LFS_TARGET}
+./configure --prefix=/usr --host=${CLFS_TARGET}
Compile the package:
@@ -36,5 +36,5 @@
Install the package:
-make DESTDIR=${LFS} install
+make DESTDIR=${CLFS} install
Index: BOOK/final-system/common/findutils.xml
===================================================================
--- BOOK/final-system/common/findutils.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/findutils.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -30,5 +30,5 @@
Prepare Findutils for compilation:
-./configure --prefix=/usr --host=${LFS_TARGET} \
+./configure --prefix=/usr --host=${CLFS_TARGET} \
--libexecdir=/usr/lib/locate --localstatedir=/var/lib/locate
@@ -53,5 +53,5 @@
Install the package:
-make DESTDIR=${LFS} install
+make DESTDIR=${CLFS} install
Index: BOOK/final-system/common/flex.xml
===================================================================
--- BOOK/final-system/common/flex.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/flex.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -33,5 +33,5 @@
Prepare Flex for compilation:
-./configure --prefix=/usr --host=${LFS_TARGET}
+./configure --prefix=/usr --host=${CLFS_TARGET}
Compile the package:
@@ -41,5 +41,5 @@
Install the package:
-make DESTDIR=${LFS} install
+make DESTDIR=${CLFS} install
There are some packages that expect to find the
@@ -48,5 +48,5 @@
this:
-ln -sv libfl.a ${LFS}/usr/lib/libl.a
+ln -sv libfl.a ${CLFS}/usr/lib/libl.a
A few programs do not know about flex yet and
@@ -56,5 +56,5 @@
mode:
-cat > ${LFS}/usr/bin/lex << "EOF"
+cat > ${CLFS}/usr/bin/lex << "EOF"
#!/bin/sh
# Begin /usr/bin/lex
@@ -64,5 +64,5 @@
# End /usr/bin/lex
EOF
-chmod -v 755 ${LFS}/usr/bin/lex
+chmod -v 755 ${CLFS}/usr/bin/lex
Index: BOOK/final-system/common/gawk.xml
===================================================================
--- BOOK/final-system/common/gawk.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/gawk.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -34,5 +34,5 @@
./configure --prefix=/usr --libexecdir=/usr/lib \
- --build=${LFS_HOST} --host=${LFS_TARGET}
+ --build=${CLFS_HOST} --host=${CLFS_TARGET}
Compile the package:
@@ -42,5 +42,5 @@
Install the package:
-make DESTDIR=${LFS} install
+make DESTDIR=${CLFS} install
Index: BOOK/final-system/common/gcc.xml
===================================================================
--- BOOK/final-system/common/gcc.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/gcc.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -62,5 +62,5 @@
../gcc-&gcc-version;/configure --prefix=/usr --libexecdir=/usr/lib \
- --build=${LFS_HOST} --host=${LFS_TARGET} --target=${LFS_TARGET} \
+ --build=${CLFS_HOST} --host=${CLFS_TARGET} --target=${CLFS_TARGET} \
--enable-shared --enable-threads=posix --enable-__cxa_atexit \
--enable-c99 --enable-long-long --enable-clocale=gnu \
@@ -73,5 +73,5 @@
Install the package:
-make DESTDIR=${LFS} install
+make DESTDIR=${CLFS} install
Some packages expect the C preprocessor to be installed in the
@@ -79,10 +79,10 @@
To support those packages, create this symlink:
-ln -sv ../usr/bin/cpp ${LFS}/lib
+ln -sv ../usr/bin/cpp ${CLFS}/lib
Many packages use the name cc to call the C
compiler. To satisfy those packages, create a symlink:
-ln -sv gcc ${LFS}/usr/bin/cc
+ln -sv gcc ${CLFS}/usr/bin/cc
Index: BOOK/final-system/common/gettext.xml
===================================================================
--- BOOK/final-system/common/gettext.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/gettext.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -30,5 +30,5 @@
Prepare Gettext for compilation:
-./configure --prefix=/usr --host=${LFS_TARGET}
+./configure --prefix=/usr --host=${CLFS_TARGET}
Compile the package:
@@ -38,5 +38,5 @@
Install the package:
-make DESTDIR=${LFS} install
+make DESTDIR=${CLFS} install
@@ -54,6 +54,6 @@
msgexec, msgfilter, msgfmt, msggrep, msginit, msgmerge, msgunfmt, msguniq,
ngettext, and xgettext
- libasprintf.[a,so], libgettextlib,so, libgettextpo.[a,so], and
- libgettextsrc,so
+ libasprintf.[a,so], libgettextlib.so, libgettextpo.[a,so], and
+ libgettextsrc.so
Index: BOOK/final-system/common/grep.xml
===================================================================
--- BOOK/final-system/common/grep.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/grep.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -29,5 +29,5 @@
./configure --prefix=/usr --bindir=/bin \
- --host=${LFS_TARGET} --disable-perl-regexp
+ --host=${CLFS_TARGET} --disable-perl-regexp
Compile the package:
@@ -37,5 +37,5 @@
Install the package:
-make DESTDIR=${LFS} install
+make DESTDIR=${CLFS} install
Index: BOOK/final-system/common/groff.xml
===================================================================
--- BOOK/final-system/common/groff.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/groff.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -33,5 +33,5 @@
Prepare Groff for compilation:
-PAGE=[paper_size] ./configure --prefix=/usr --host=${LFS_TARGET}
+PAGE=[paper_size] ./configure --prefix=/usr --host=${CLFS_TARGET}
Compile the package:
@@ -41,12 +41,12 @@
Install the package:
-make prefix=${LFS}/usr install
+make prefix=${CLFS}/usr install
Some documentation programs, such as xman,
will not work properly without the following symlinks:
-ln -sv soelim ${LFS}/usr/bin/zsoelim
-ln -sv eqn ${LFS}/usr/bin/geqn
-ln -sv tbl ${LFS}/usr/bin/gtbl
+ln -sv soelim ${CLFS}/usr/bin/zsoelim
+ln -sv eqn ${CLFS}/usr/bin/geqn
+ln -sv tbl ${CLFS}/usr/bin/gtbl
Index: BOOK/final-system/common/gzip.xml
===================================================================
--- BOOK/final-system/common/gzip.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/gzip.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -35,5 +35,5 @@
Prepare Gzip for compilation:
-./configure --prefix=/usr --host=${LFS_TARGET}
+./configure --prefix=/usr --host=${CLFS_TARGET}
The gzexe script has the location of the
@@ -52,5 +52,5 @@
Install the package:
-make DESTDIR=${LFS} install
+make DESTDIR=${CLFS} install
Move the gzip program to the
-mv -v ${LFS}/usr/bin/gzip ${LFS}/bin
-rm -v ${LFS}/usr/bin/{gunzip,zcat}
-ln -sv gzip ${LFS}/bin/gunzip
-ln -sv gzip ${LFS}/bin/zcat
-ln -sv gzip ${LFS}/bin/compress
-ln -sv gunzip ${LFS}/bin/uncompress
+mv -v ${CLFS}/usr/bin/gzip ${CLFS}/bin
+rm -v ${CLFS}/usr/bin/{gunzip,zcat}
+ln -sv gzip ${CLFS}/bin/gunzip
+ln -sv gzip ${CLFS}/bin/zcat
+ln -sv gzip ${CLFS}/bin/compress
+ln -sv gunzip ${CLFS}/bin/uncompress
Index: BOOK/final-system/common/iana-etc.xml
===================================================================
--- BOOK/final-system/common/iana-etc.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/iana-etc.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -34,5 +34,5 @@
Install the package:
-make DESTDIR=${LFS} install
+make DESTDIR=${CLFS} install
Index: BOOK/final-system/common/inetutils.xml
===================================================================
--- BOOK/final-system/common/inetutils.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/inetutils.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -45,5 +45,5 @@
Prepare Inetutils for compilation:
-./configure --prefix=/usr --host=${LFS_TARGET} \
+./configure --prefix=/usr --host=${CLFS_TARGET} \
--libexecdir=/usr/sbin --sysconfdir=/etc \
--localstatedir=/var --disable-logger \
@@ -102,10 +102,10 @@
Install the package:
-make DESTDIR=${LFS} install
+make DESTDIR=${CLFS} install
Move the ping program to its FHS-compliant
place:
-mv -v ${LFS}/usr/bin/ping ${LFS}/bin
+mv -v ${CLFS}/usr/bin/ping ${CLFS}/bin
Index: BOOK/final-system/common/iproute2.xml
===================================================================
--- BOOK/final-system/common/iproute2.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/iproute2.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -66,5 +66,5 @@
Install the package:
-make DESTDIR=${LFS} SBINDIR=/sbin install
+make DESTDIR=${CLFS} SBINDIR=/sbin install
Index: BOOK/final-system/common/kbd.xml
===================================================================
--- BOOK/final-system/common/kbd.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/kbd.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -52,5 +52,5 @@
Install the package:
-make DESTDIR=${LFS} install
+make DESTDIR=${CLFS} install
Index: BOOK/final-system/common/less.xml
===================================================================
--- BOOK/final-system/common/less.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/less.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -28,5 +28,5 @@
./configure --prefix=/usr --sysconfdir=/etc \
- --host=${LFS_TARGET}
+ --host=${CLFS_TARGET}
@@ -49,9 +49,9 @@
Install the package:
-make prefix=${LFS}/usr install
+make prefix=${CLFS}/usr install
Move less to /bin:
-mv -v ${LFS}/usr/bin/less ${LFS}/bin
+mv -v ${CLFS}/usr/bin/less ${CLFS}/bin
Index: BOOK/final-system/common/libtool.xml
===================================================================
--- BOOK/final-system/common/libtool.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/libtool.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -29,5 +29,5 @@
Prepare Libtool for compilation:
-./configure --prefix=/usr --host=${LFS_TARGET}
+./configure --prefix=/usr --host=${CLFS_TARGET}
Compile the package:
@@ -37,5 +37,5 @@
Install the package:
-make DESTDIR=${LFS} install
+make DESTDIR=${CLFS} install
Index: BOOK/final-system/common/m4.xml
===================================================================
--- BOOK/final-system/common/m4.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/m4.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -27,5 +27,5 @@
Prepare M4 for compilation:
-./configure --prefix=/usr --host=${LFS_TARGET}
+./configure --prefix=/usr --host=${CLFS_TARGET}
Compile the package:
@@ -35,5 +35,5 @@
Install the package:
-make DESTDIR=${LFS} install
+make DESTDIR=${CLFS} install
Index: BOOK/final-system/common/make.xml
===================================================================
--- BOOK/final-system/common/make.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/make.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -27,5 +27,5 @@
Prepare Make for compilation:
-./configure --prefix=/usr --host=${LFS_TARGET}
+./configure --prefix=/usr --host=${CLFS_TARGET}
Compile the package:
@@ -35,5 +35,5 @@
Install the package:
-make DESTDIR=${LFS} install
+make DESTDIR=${CLFS} install
Index: BOOK/final-system/common/man-pages.xml
===================================================================
--- BOOK/final-system/common/man-pages.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/man-pages.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -27,5 +27,5 @@
Install Man-pages by running:
-make prefix=${LFS} install
+make prefix=${CLFS} install
Index: BOOK/final-system/common/man.xml
===================================================================
--- BOOK/final-system/common/man.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/man.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -77,5 +77,5 @@
Install the package:
-make DESTDIR=${LFS} install
+make DESTDIR=${CLFS} install
Index: BOOK/final-system/common/mktemp.xml
===================================================================
--- BOOK/final-system/common/mktemp.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/mktemp.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -40,5 +40,5 @@
Prepare Mktemp for compilation:
-./configure --prefix=/usr --with-libc --host=${LFS_TARGET}
+./configure --prefix=/usr --with-libc --host=${CLFS_TARGET}
@@ -61,6 +61,6 @@
Install the package:
-make prefix=${LFS}/usr install
-make prefix=${LFS}/usr install-tempfile
+make prefix=${CLFS}/usr install
+make prefix=${CLFS}/usr install-tempfile
Index: BOOK/final-system/common/module-init-tools.xml
===================================================================
--- BOOK/final-system/common/module-init-tools.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/module-init-tools.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -28,5 +28,5 @@
Prepare Module-Init-Tools for compilation:
-./configure --prefix=/ --enable-zlib --host=${LFS_TARGET}
+./configure --prefix=/ --enable-zlib --host=${CLFS_TARGET}
@@ -49,5 +49,5 @@
Install the package:
-make DESTDIR=${LFS} INSTALL=install install
+make DESTDIR=${CLFS} INSTALL=install install
Index: BOOK/final-system/common/ncurses.xml
===================================================================
--- BOOK/final-system/common/ncurses.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/ncurses.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -29,5 +29,5 @@
./configure --prefix=/usr --libdir=/lib \
- --host=${LFS_TARGET} --with-shared \
+ --host=${CLFS_TARGET} --with-shared \
--without-debug --without-ada --with-build-cc=gcc
@@ -38,22 +38,22 @@
Install the package:
-make DESTDIR=${LFS} install
+make DESTDIR=${CLFS} install
Move the Ncurses static libraries to the proper location:
-mv -v ${LFS}/lib/lib{panel,menu,form,ncurses,ncurses++,curses}.a ${LFS}/usr/lib
+mv -v ${CLFS}/lib/lib{panel,menu,form,ncurses,ncurses++,curses}.a ${CLFS}/usr/lib
Create symlinks in /usr/lib:
-rm -v ${LFS}/lib/lib{ncurses,menu,panel,form,curses}.so
-ln -svf ../../lib/libncurses.so.5 ${LFS}/usr/lib/libcurses.so
-ln -svf ../../lib/libncurses.so.5 ${LFS}/usr/lib/libncurses.so
-ln -svf ../../lib/libmenu.so.5 ${LFS}/usr/lib/libmenu.so
-ln -svf ../../lib/libpanel.so.5 ${LFS}/usr/lib/libpanel.so
-ln -svf ../../lib/libform.so.5 ${LFS}/usr/lib/libform.so
+rm -v ${CLFS}/lib/lib{ncurses,menu,panel,form,curses}.so
+ln -svf ../../lib/libncurses.so.5 ${CLFS}/usr/lib/libcurses.so
+ln -svf ../../lib/libncurses.so.5 ${CLFS}/usr/lib/libncurses.so
+ln -svf ../../lib/libmenu.so.5 ${CLFS}/usr/lib/libmenu.so
+ln -svf ../../lib/libpanel.so.5 ${CLFS}/usr/lib/libpanel.so
+ln -svf ../../lib/libform.so.5 ${CLFS}/usr/lib/libform.so
Give the Ncurses libraries execute permissions:
-chmod -v 755 ${LFS}/lib/lib{panel,menu,form,ncurses}.so.&ncurses-version;
+chmod -v 755 ${CLFS}/lib/lib{panel,menu,form,ncurses}.so.&ncurses-version;
Index: BOOK/final-system/common/patch.xml
===================================================================
--- BOOK/final-system/common/patch.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/patch.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -29,5 +29,5 @@
Prepare Patch for compilation:
-./configure --prefix=/usr --host=${LFS_TARGET}
+./configure --prefix=/usr --host=${CLFS_TARGET}
Compile the package:
@@ -37,5 +37,5 @@
Install the package:
-make prefix=${LFS}/usr install
+make prefix=${CLFS}/usr install
Index: BOOK/final-system/common/perl.xml
===================================================================
--- BOOK/final-system/common/perl.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/perl.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -37,9 +37,9 @@
Compile the package:
-make ARCH= CROSS_COMPILE="${LFS_TARGET}-"
+make ARCH= CROSS_COMPILE="${CLFS_TARGET}-"
Install the package:
-make DESTDIR=${LFS} install
+make DESTDIR=${CLFS} install
Index: BOOK/final-system/common/procps.xml
===================================================================
--- BOOK/final-system/common/procps.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/procps.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -40,5 +40,5 @@
Install the package:
-make DESTDIR=${LFS} lib64=lib install
+make DESTDIR=${CLFS} lib64=lib install
Index: BOOK/final-system/common/psmisc.xml
===================================================================
--- BOOK/final-system/common/psmisc.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/psmisc.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -28,5 +28,5 @@
Prepare Psmisc for compilation:
-./configure --prefix=/usr --exec-prefix="" --host=${LFS_TARGET}
+./configure --prefix=/usr --exec-prefix="" --host=${CLFS_TARGET}
@@ -51,5 +51,5 @@
Install the package:
-make DESTDIR=${LFS} install
+make DESTDIR=${CLFS} install
There is no reason for the pstree and
@@ -58,5 +58,5 @@
class="directory">/usr/bin:
-mv -v ${LFS}/bin/pstree* ${LFS}/usr/bin
+mv -v ${CLFS}/bin/pstree* ${CLFS}/usr/bin
By default, Psmisc's pidof program is not installed.
@@ -66,5 +66,5 @@
of Psmisc by creating the following symlink:
-ln -sv killall ${LFS}/bin/pidof
+ln -sv killall ${CLFS}/bin/pidof
Index: BOOK/final-system/common/readline.xml
===================================================================
--- BOOK/final-system/common/readline.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/readline.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -33,5 +33,5 @@
Prepare Readline for compilation:
-./configure --prefix=/usr --libdir=/lib --host=${LFS_TARGET}
+./configure --prefix=/usr --libdir=/lib --host=${CLFS_TARGET}
Compile the package:
@@ -53,14 +53,14 @@
Install the package:
-make DESTDIR=${LFS} install
+make DESTDIR=${CLFS} install
Give Readline's dynamic libraries more appropriate
permissions:
-chmod -v 755 ${LFS}/lib/lib{readline,history}.so*
+chmod -v 755 ${CLFS}/lib/lib{readline,history}.so*
Now move the static libraries to a more appropriate location:
-mv -v ${LFS}/lib/lib{readline,history}.a ${LFS}/usr/lib
+mv -v ${CLFS}/lib/lib{readline,history}.a ${CLFS}/usr/lib
Next, remove the .so
@@ -68,7 +68,7 @@
/usr/lib.
-rm -v ${LFS}/lib/lib{readline,history}.so
-ln -svf ../../lib/libreadline.so.5 ${LFS}/usr/lib/libreadline.so
-ln -svf ../../lib/libhistory.so.5 ${LFS}/usr/lib/libhistory.so
+rm -v ${CLFS}/lib/lib{readline,history}.so
+ln -svf ../../lib/libreadline.so.5 ${CLFS}/usr/lib/libreadline.so
+ln -svf ../../lib/libhistory.so.5 ${CLFS}/usr/lib/libhistory.so
Index: BOOK/final-system/common/sed.xml
===================================================================
--- BOOK/final-system/common/sed.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/sed.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -28,5 +28,5 @@
./configure --prefix=/usr --bindir=/bin \
- --host=${LFS_TARGET} --enable-html
+ --host=${CLFS_TARGET} --enable-html
@@ -48,5 +48,5 @@
Install the package:
-make DESTDIR=${LFS} install
+make DESTDIR=${CLFS} install
Index: BOOK/final-system/common/shadow.xml
===================================================================
--- BOOK/final-system/common/shadow.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/shadow.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -43,5 +43,5 @@
./configure --libdir=/lib --sysconfdir=/etc --enable-shared \
--without-libpam --without-audit --without-selinux \
- --host=${LFS_TARGET} --cache-file=config.cache
+ --host=${CLFS_TARGET} --cache-file=config.cache
The meaning of the configure options:
@@ -84,5 +84,5 @@
Install the package:
-make DESTDIR=${LFS} install
+make DESTDIR=${CLFS} install
Instead of using the default
@@ -100,8 +100,8 @@
-cp ${LFS}/etc/login.defs login.defs.orig
+cp ${CLFS}/etc/login.defs login.defs.orig
sed -e's@#MD5_CRYPT_ENAB.no@MD5_CRYPT_ENAB yes@' \
-e 's@/var/spool/mail@/var/mail@' \
- login.defs.orig > ${LFS}/etc/login.defs
+ login.defs.orig > ${CLFS}/etc/login.defs
@@ -111,17 +111,17 @@
cp {LFS}/etc/login.defs login.defs.orig
-sed 's@DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@' login.defs.orig > ${LFS}/etc/login.defs
+sed 's@DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@' login.defs.orig > ${CLFS}/etc/login.defs
Move a misplaced program to its proper location:
-mv -v ${LFS}/usr/bin/passwd ${LFS}/bin
+mv -v ${CLFS}/usr/bin/passwd ${CLFS}/bin
Move Shadow's dynamic libraries to a more appropriate
location:
-mv -v ${LFS}/lib/libshadow.*a ${LFS}/usr/lib
-rm -v ${LFS}/lib/libshadow.so
-ln -svf ../../lib/libshadow.so.0 ${LFS}/usr/lib/libshadow.so
+mv -v ${CLFS}/lib/libshadow.*a ${CLFS}/usr/lib
+rm -v ${CLFS}/lib/libshadow.so
+ln -svf ../../lib/libshadow.so.0 ${CLFS}/usr/lib/libshadow.so
Index: BOOK/final-system/common/stripping.xml
===================================================================
--- BOOK/final-system/common/stripping.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/stripping.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -23,6 +23,6 @@
backup of the current situation.
-find ${LFS}/{,usr/}{bin,lib,sbin} -type f \
- -exec ${LFS_TARGET}-strip --strip-debug '{}' ';'
+find ${CLFS}/{,usr/}{bin,lib,sbin} -type f \
+ -exec ${CLFS_TARGET}-strip --strip-debug '{}' ';'
A large number of files will be reported as having their file
Index: BOOK/final-system/common/sysklogd.xml
===================================================================
--- BOOK/final-system/common/sysklogd.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/sysklogd.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -43,5 +43,5 @@
Install the package:
-make prefix=${LFS} install
+make prefix=${CLFS} install
@@ -61,5 +61,5 @@
the following:
-cat > ${LFS}/etc/syslog.conf << "EOF"
+cat > ${CLFS}/etc/syslog.conf << "EOF"
# Begin /etc/syslog.conf
Index: BOOK/final-system/common/sysvinit.xml
===================================================================
--- BOOK/final-system/common/sysvinit.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/sysvinit.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -52,9 +52,9 @@
make -C src clobber
-make -C src ROOT=${LFS} CC="${CC}"
+make -C src ROOT=${CLFS} CC="${CC}"
Install the package:
-make -C src ROOT=${LFS} INSTALL="install" install
+make -C src ROOT=${CLFS} INSTALL="install" install
@@ -74,5 +74,5 @@
following:
-cat > ${LFS}/etc/inittab << "EOF"
+cat > ${CLFS}/etc/inittab << "EOF"
# Begin /etc/inittab
Index: BOOK/final-system/common/tar.xml
===================================================================
--- BOOK/final-system/common/tar.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/tar.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -43,5 +43,5 @@
./configure --prefix=/usr --bindir=/bin \
- --libexecdir=/usr/sbin --host=${LFS_TARGET}
+ --libexecdir=/usr/sbin --host=${CLFS_TARGET}
Compile the package:
@@ -51,5 +51,5 @@
Install the package:
-make DESTDIR=${LFS} install
+make DESTDIR=${CLFS} install
Index: BOOK/final-system/common/texinfo.xml
===================================================================
--- BOOK/final-system/common/texinfo.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/texinfo.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -33,5 +33,5 @@
Prepare Texinfo for compilation:
-./configure --prefix=/usr --host=${LFS_TARGET}
+./configure --prefix=/usr --host=${CLFS_TARGET}
Compile the package:
@@ -41,10 +41,10 @@
Install the package:
-make DESTDIR=${LFS} install
+make DESTDIR=${CLFS} install
Optionally, install the components belonging in a TeX
installation:
-make DESTDIR=${LFS} TEXMF=/usr/share/texmf install-tex
+make DESTDIR=${CLFS} TEXMF=/usr/share/texmf install-tex
@@ -70,5 +70,5 @@
the following optional commands will accomplish the task:
-cd ${LFS}/usr/share/info
+cd ${CLFS}/usr/share/info
rm dir
for f in *
Index: BOOK/final-system/common/udev.xml
===================================================================
--- BOOK/final-system/common/udev.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/udev.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -28,5 +28,5 @@
Compile the package:
-make CROSS_COMPILE="${LFS_TARGET}-" CC="${CC}" LD="${CC}" \
+make CROSS_COMPILE="${CLFS_TARGET}-" CC="${CC}" LD="${CC}" \
EXTRAS="extras/floppy extras/cdrom_id extras/firmware \
extras/scsi_id extras/volume_id extras/ata_id extras/usb_id \
@@ -50,5 +50,5 @@
Install the package:
-make DESTDIR="${LFS}" \
+make DESTDIR="${CLFS}" \
EXTRAS="extras/floppy extras/cdrom_id extras/firmware \
extras/scsi_id extras/volume_id extras/ata_id extras/usb_id \
@@ -57,5 +57,5 @@
Install necessary helpers.
-install -v extras/eventrecorder.sh ${LFS}/lib/udev
+install -v extras/eventrecorder.sh ${CLFS}/lib/udev
Install the documentation that explains how to create
@@ -63,10 +63,10 @@
install -v -m644 -D docs/writing_udev_rules/index.html \
- ${LFS}/usr/share/doc/udev-&udev-version;/index.html
+ ${CLFS}/usr/share/doc/udev-&udev-version;/index.html
Create a directory for storing firmware that can be
loaded by udev:
-install -dv ${LFS}/lib/firmware
+install -dv ${CLFS}/lib/firmware
Index: BOOK/final-system/common/util-linux.xml
===================================================================
--- BOOK/final-system/common/util-linux.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/util-linux.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -37,5 +37,5 @@
sed 's@etc/adjtime@var/lib/hwclock/adjtime@g' \
hwclock/hwclock.c.orig > hwclock/hwclock.c
-mkdir -pv ${LFS}/var/lib/hwclock
+mkdir -pv ${CLFS}/var/lib/hwclock
@@ -121,6 +121,6 @@
make HAVE_KILL=yes HAVE_SLN=yes \
-CPUOPT="" ARCH="" CPU="" USE_TTY_GROUP=no DESTDIR=${LFS} install
-mv -v ${LFS}/usr/bin/logger ${LFS}/bin
+CPUOPT="" ARCH="" CPU="" USE_TTY_GROUP=no DESTDIR=${CLFS} install
+mv -v ${CLFS}/usr/bin/logger ${CLFS}/bin
Index: BOOK/final-system/common/variables.xml
===================================================================
--- BOOK/final-system/common/variables.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/variables.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -14,11 +14,11 @@
and linkers:
-export CC="${LFS_TARGET}-gcc"
-export CXX="${LFS_TARGET}-g++"
-export AR="${LFS_TARGET}-ar"
-export AS="${LFS_TARGET}-as"
-export RANLIB="${LFS_TARGET}-ranlib"
-export LD="${LFS_TARGET}-ld"
-export STRIP="${LFS_TARGET}-strip"
+export CC="${CLFS_TARGET}-gcc"
+export CXX="${CLFS_TARGET}-g++"
+export AR="${CLFS_TARGET}-ar"
+export AS="${CLFS_TARGET}-as"
+export RANLIB="${CLFS_TARGET}-ranlib"
+export LD="${CLFS_TARGET}-ld"
+export STRIP="${CLFS_TARGET}-strip"
Then add the build variables to ~/.bashrc to
Index: BOOK/final-system/common/vim.xml
===================================================================
--- BOOK/final-system/common/vim.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/vim.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -56,5 +56,5 @@
Prepare Vim for compilation:
-./configure --prefix=/usr --host=${LFS_TARGET} \
+./configure --prefix=/usr --host=${CLFS_TARGET} \
--enable-multibyte --enable-gui=no \
--disable-gtktest --disable-xim \
@@ -86,5 +86,5 @@
Install the package:
-make DESTDIR=${LFS} install
+make DESTDIR=${CLFS} install
Many users are accustomed to using vi
@@ -95,5 +95,5 @@
and allow programs that use vi to work:
-ln -sv vim ${LFS}/usr/bin/vi
+ln -sv vim ${CLFS}/usr/bin/vi
By default, Vim's documentation is installed in
@@ -103,5 +103,5 @@
it consistent with the location of documentation for other packages:
-ln -sv ../vim/vim&vim-version2;/doc ${LFS}/usr/share/doc/vim-&vim-version;
+ln -sv ../vim/vim&vim-version2;/doc ${CLFS}/usr/share/doc/vim-&vim-version;
If an X Window System is going to be installed on the LFS
@@ -132,5 +132,5 @@
following:
-cat > ${LFS}/etc/vimrc << "EOF"
+cat > ${CLFS}/etc/vimrc << "EOF"
" Begin /etc/vimrc
Index: BOOK/final-system/common/zlib.xml
===================================================================
--- BOOK/final-system/common/zlib.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/final-system/common/zlib.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -41,5 +41,5 @@
Install the pacakge:
-make prefix=${LFS}/usr install
+make prefix=${CLFS}/usr install
The previous command installed a /usr/lib:
-mv -v ${LFS}/usr/lib/libz.so.* ${LFS}/lib
-ln -svf ../../lib/libz.so.1 ${LFS}/usr/lib/libz.so
+mv -v ${CLFS}/usr/lib/libz.so.* ${CLFS}/lib
+ln -svf ../../lib/libz.so.1 ${CLFS}/usr/lib/libz.so
Now we fix the permissions on the static library:
-chmod -v 644 ${LFS}/usr/lib/libz.a
+chmod -v 644 ${CLFS}/usr/lib/libz.a
Index: BOOK/general.ent
===================================================================
--- BOOK/general.ent (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/general.ent (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -1,7 +1,7 @@
-
-
-
+
+
+
Index: BOOK/introduction/common/changelog.xml
===================================================================
--- BOOK/introduction/common/changelog.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/introduction/common/changelog.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -38,4 +38,19 @@
+ July 2, 2006
+
+
+ [jciccone] - Updated passwd and group file creation
+ to only create minimal users and groups and
+ include information on other users/groups.
+
+
+ [jciccone] - Updated to Cross-LFS Bootscripts. Added check for
+ for /etc/sysconfig/createfiles.
+
+
+
+
+
June 28, 2006
Index: BOOK/introduction/common/how.xml
===================================================================
--- BOOK/introduction/common/how.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/introduction/common/how.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -45,7 +45,7 @@
The process of building cross-compile tools first involves installing
- binutils into ${LFS}/cross-tools, so that we have an asembler and a linker
+ binutils into ${CLFS}/cross-tools, so that we have an asembler and a linker
for our target architecture. GCC is then compiled statically and installed
- into ${LFS}/cross-tools, this cross-compiler is used to build glibc for the
+ into ${CLFS}/cross-tools, this cross-compiler is used to build glibc for the
final-system. The GCC cross-compiler is then rebuilt dynamically - this final
cross-compiler is what will be used to build the final-system.
Index: BOOK/introduction/common/resources.xml
===================================================================
--- BOOK/introduction/common/resources.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/introduction/common/resources.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -76,5 +76,7 @@
accessing the website and downloading the required packages more
convenient. Please visit the LFS website at for a list of current mirrors.
+ url="&lfs-root;mirrors.html"/> for a list of current mirrors of
+ the LFS website, or for
+ mirrors of CLFS.
Index: BOOK/materials/common/introduction.xml
===================================================================
--- BOOK/materials/common/introduction.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/materials/common/introduction.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -30,5 +30,5 @@
that is conveniently available throughout the entire build. A working
directory is also required to unpack the sources and build them.
- $LFS/sources can be used both
+ $CLFS/sources can be used both
as the place to store the tarballs and patches and as a working
directory. By using this directory, the required elements will be
@@ -40,5 +40,5 @@
starting the download session:
-mkdir -v $LFS/sources
+mkdir -v $CLFS/sources
Make this directory writable and sticky. Sticky
@@ -48,5 +48,5 @@
sticky modes:
-chmod -v a+wt $LFS/sources
+chmod -v a+wt $CLFS/sources
Index: BOOK/materials/common/patches.xml
===================================================================
--- BOOK/materials/common/patches.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/materials/common/patches.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -308,5 +308,5 @@
In addition to the above required patches, there exist a number of
- optional patches created by the LFS community. These optional patches
+ optional patches created by the CLFS community. These optional patches
solve minor problems or enable functionality that is not enabled by
default. Feel free to peruse the patches database located at
Index: BOOK/packages.ent
===================================================================
--- BOOK/packages.ent (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/packages.ent (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -67,8 +67,8 @@
-
-
+
+
-
+
Index: BOOK/partitioning/common/mounting.xml
===================================================================
--- BOOK/partitioning/common/mounting.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/partitioning/common/mounting.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -21,11 +21,11 @@
environment variable by running:
-export LFS=/mnt/lfs
+export CLFS=/mnt/lfs
Next, create the mount point and mount the CLFS file system by
running:
-mkdir -pv $LFS
-mount -v /dev/[xxx] $LFS
+mkdir -pv $CLFS
+mount -v /dev/[xxx] $CLFS
Replace [xxx] with the designation of
@@ -36,8 +36,8 @@
class="directory">/usr), mount them using:
-mkdir -pv $LFS
-mount -v /dev/[xxx] $LFS
-mkdir -v $LFS/usr
-mount -v /dev/[yyy] $LFS/usr
+mkdir -pv $CLFS
+mount -v /dev/[xxx] $CLFS
+mkdir -v $CLFS/usr
+mount -v /dev/[yyy] $CLFS/usr
Replace [xxx] and
Index: BOOK/prologue/common/foreword.xml
===================================================================
--- BOOK/prologue/common/foreword.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/prologue/common/foreword.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -35,10 +35,10 @@
allowed me to create compact and streamlined Linux systems which are
faster and take up less space than traditional operating systems. I
- called this system a Linux From Scratch system, or an LFS system for
+ called this system a Linux From Scratch system, or an CLFS system for
short.
As I shared my goals and experiences with other members of the
Linux community, it became apparent that there was sustained interest
- in the ideas set forth in my Linux adventures. Such custom-built LFS
+ in the ideas set forth in my Linux adventures. Such custom-built CLFS
systems serve not only to meet user specifications and requirements, but
also serve as an ideal learning opportunity for programmers and system
@@ -57,5 +57,5 @@
system.
- I hope you will have a great time working on your own LFS
+ I hope you will have a great time working on your own CLFS
system, and enjoy the numerous benefits of having a system that is
truly your own.
Index: BOOK/prologue/common/prerequisites.xml
===================================================================
--- BOOK/prologue/common/prerequisites.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/prologue/common/prerequisites.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -51,5 +51,5 @@
This is an LFS Hint written specifically for users new to Linux.
It includes a list of links to excellent sources of information on a
- wide range of topics. Anyone attempting to install LFS should have an
+ wide range of topics. Anyone attempting to install CLFS should have an
understanding of many of the topics in this hint.
Index: BOOK/prologue/common/typography.xml
===================================================================
--- BOOK/prologue/common/typography.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/prologue/common/typography.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -23,5 +23,5 @@
referenced.
-install-info: unknown option '--dir-file=/mnt/lfs/usr/info/dir'
+install-info: unknown option '--dir-file=/mnt/clfs/usr/info/dir'
This form of text (fixed-width text) shows screen output,
@@ -34,5 +34,5 @@
Its main purpose is to emphasize important points or items.
-
+
This format is used for hyperlinks, both within the LFS
@@ -40,5 +40,5 @@
and websites.
-cat > $LFS/etc/group << "EOF"
+cat > $CLFS/etc/group << "EOF"
root:x:0:
bin:x:1:
@@ -48,5 +48,5 @@
This format is used when creating configuration files. The first
command tells the system to create the file
- $LFS/etc/group from whatever is typed on the
+ $CLFS/etc/group from whatever is typed on the
following lines until the sequence end of file (EOF) is encountered.
Therefore, this entire section is generally typed as seen.
Index: BOOK/the-end/reboot.xml
===================================================================
--- BOOK/the-end/reboot.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/the-end/reboot.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -37,20 +37,20 @@
Then unmount the virtual file systems:
-umount $LFS/dev/pts
-umount $LFS/dev/shm
-umount $LFS/dev
-umount $LFS/proc
-umount $LFS/sys
+umount $CLFS/dev/pts
+umount $CLFS/dev/shm
+umount $CLFS/dev
+umount $CLFS/proc
+umount $CLFS/sys
Unmount the LFS file system itself:
-umount $LFS
+umount $CLFS
If multiple partitions were created, unmount the other
partitions before unmounting the main one, like this:
-umount $LFS/usr
-umount $LFS/home
-umount $LFS
+umount $CLFS/usr
+umount $CLFS/home
+umount $CLFS
Now, reboot the system with:
Index: BOOK/the-end/theend.xml
===================================================================
--- BOOK/the-end/theend.xml (revision 89c10a942fad952f648ae41148013cafebe49803)
+++ BOOK/the-end/theend.xml (revision 586feb78b379b4fe653074e6a79b8d443176860f)
@@ -24,5 +24,5 @@
Create this file by running:
-echo &version; > ${LFS}/etc/clfs-release
+echo &version; > ${CLFS}/etc/clfs-release