diff --git a/chapter05/bash-exp.xml b/chapter05/bash-exp.xml
index 8338c3fd4..8e33c9c78 100644
--- a/chapter05/bash-exp.xml
+++ b/chapter05/bash-exp.xml
@@ -16,7 +16,7 @@ partition which has to be mounted at some point. Before that partition is
mounted a user needs and will want to have bash available (it will be hard to
execute the boot scripts without a shell for instance).
-ln -s bash sh: This command creates the sh
+ln -sf bash sh: This command creates the sh
symlink that points to bash. Most scripts run themselves via 'sh'
(invoked by the #!/bin/sh as the first line in the scripts) which
invokes a special bash mode. Bash will then behave (as closely as
diff --git a/chapter05/bash-inst.xml b/chapter05/bash-inst.xml
index eb6b96e1f..9dcd2775c 100644
--- a/chapter05/bash-inst.xml
+++ b/chapter05/bash-inst.xml
@@ -8,7 +8,7 @@
make &&
make install &&
cd $LFS/bin &&
-ln -s bash sh
+ln -sf bash sh
If the make install phase ends with something along the lines of
@@ -28,7 +28,7 @@ old version of the texinfo package. This error is not severe by any means: the
info pages will be installed when we recompile bash dynamically in
chapter 6, so you can ignore it. You do, however, have to run the last
two commands manually (the cd $LFS/bin and
-ln -s bash sh commands) because they won't be
+ln -sf bash sh commands) because they won't be
executed when the error occurs.
diff --git a/chapter05/bzip2-exp.xml b/chapter05/bzip2-exp.xml
index 9c8853566..83263ccbd 100644
--- a/chapter05/bzip2-exp.xml
+++ b/chapter05/bzip2-exp.xml
@@ -1,34 +1,6 @@
Command explanations
-
-
make CC="gcc -static": This is the method
we use to tell gcc that we want bzip2 to be linked statically.
diff --git a/chapter05/bzip2-inst.xml b/chapter05/bzip2-inst.xml
index aa5d87dd8..0490f0398 100644
--- a/chapter05/bzip2-inst.xml
+++ b/chapter05/bzip2-inst.xml
@@ -6,7 +6,7 @@
make CC="gcc -static" &&
make PREFIX=$LFS/usr install &&
cd $LFS/usr/bin &&
-mv bzcat bunzip2 bzip2 bzip2recover $LFS/bin
+mv -f bzcat bunzip2 bzip2 bzip2recover $LFS/bin
diff --git a/chapter05/fileutils-exp.xml b/chapter05/fileutils-exp.xml
index edb99ae09..fdaa829fd 100644
--- a/chapter05/fileutils-exp.xml
+++ b/chapter05/fileutils-exp.xml
@@ -2,13 +2,13 @@
Command explanations
sed 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \
- lib/Makefile.in > tmp &&
+ lib/Makefile.in > tmp &&
sed 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \
- tmp > lib/Makefile.in : This is used
-to fix a problem with building fileutils statically on glibc 2.2.3 systems. If
-this isn't done, then there is the possibility of all of the fileutils
-programs causing segmentation faults once chroot is entered in chapter
-6.
+ tmp > lib/Makefile.in : This
+is used to fix a problem with building fileutils statically on glibc 2.2.3
+systems. If this isn't done, then there is the possibility of all of the
+fileutils programs causing segmentation faults once chroot is entered
+in chapter 6.
--libexecdir=$LFS/bin: This configure option will
set the program executable directory to $LFS/bin. This is normally set
diff --git a/chapter05/fileutils-inst.xml b/chapter05/fileutils-inst.xml
index 80f4c87e2..bd8a39378 100644
--- a/chapter05/fileutils-inst.xml
+++ b/chapter05/fileutils-inst.xml
@@ -7,9 +7,9 @@ segmentation faults once we enter chroot in Chapter 6. The sed commands for
those using glibc-2.2.3 are:
sed 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \
- lib/Makefile.in > tmp &&
+ lib/Makefile.in > tmp &&
sed 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \
- tmp > lib/Makefile.in
+ tmp > lib/Makefile.in
Install fileutils by running the following commands:
./configure --disable-nls \
@@ -17,7 +17,7 @@ those using glibc-2.2.3 are:
make LDFLAGS=-static &&
make install &&
cd $LFS/usr/bin &&
-ln -s ../../bin/install
+ln -sf ../../bin/install
Once you have installed fileutils, you can test whether the
segmentation fault problem has been avoided by running
diff --git a/chapter05/gcc-exp.xml b/chapter05/gcc-exp.xml
index 22ca7b411..b38c62086 100644
--- a/chapter05/gcc-exp.xml
+++ b/chapter05/gcc-exp.xml
@@ -16,11 +16,11 @@ and C++ compilers and not the other available compilers as they are, on
the average, not often used. If those other compilers are needed,
the --enable-languages parameter can be omitted.
-ln -s ../usr/bin/cpp: This
+ln -sf ../usr/bin/cpp: This
creates the $LFS/lib/cpp symlink. Some packages explicitly try to find
cpp in /lib.
-ln -s ../bin/cpp: This
+ln -sf ../bin/cpp: This
creates the $LFS/usr/lib/cpp symlink as there are packages that expect
cpp to be in /usr/lib.
diff --git a/chapter05/gcc-inst.xml b/chapter05/gcc-inst.xml
index 37c54512a..a1b88c8f9 100644
--- a/chapter05/gcc-inst.xml
+++ b/chapter05/gcc-inst.xml
@@ -12,11 +12,11 @@
make -e LDFLAGS=-static bootstrap &&
make prefix=$LFS/usr install &&
cd $LFS/lib &&
-ln -s ../usr/bin/cpp &&
+ln -sf ../usr/bin/cpp &&
cd $LFS/usr/lib &&
-ln -s ../bin/cpp &&
+ln -sf ../bin/cpp &&
cd $LFS/usr/bin &&
-ln -s gcc cc
+ln -sf gcc cc
diff --git a/chapter05/gzip-inst.xml b/chapter05/gzip-inst.xml
index 8d19c3cbb..478d68caa 100644
--- a/chapter05/gzip-inst.xml
+++ b/chapter05/gzip-inst.xml
@@ -8,8 +8,8 @@ unpacked.
./configure --prefix=$LFS/usr &&
make LDFLAGS=-static &&
make install &&
-cp $LFS/usr/bin/gunzip $LFS/usr/bin/gzip $LFS/bin &&
-rm $LFS/usr/bin/gunzip $LFS/usr/bin/gzip
+cp -f $LFS/usr/bin/gunzip $LFS/usr/bin/gzip $LFS/bin &&
+rm -f $LFS/usr/bin/gunzip $LFS/usr/bin/gzip
diff --git a/chapter05/kernel-exp.xml b/chapter05/kernel-exp.xml
index 475984ee8..99890c9ed 100644
--- a/chapter05/kernel-exp.xml
+++ b/chapter05/kernel-exp.xml
@@ -20,13 +20,13 @@ checks, but what we do care about is that make dep creates those
aforementioned files in $LFS/usr/src/linux/include/linux we will be
needing later on.
-cp -a ../src/linux/include/linux . and
-mkdir asm && cp -a ../src/linux/include/asm/* .:
+cp -af ../src/linux/include/linux . and
+mkdir asm && cp -af ../src/linux/include/asm/* .:
These commands copy the kernel headers in the
$LFS/usr/include directory.
-chown root.root $LFS/usr/include/linux -R and
-chown root.root $LFS/usr/include/asm -R :
+chown -R root.root $LFS/usr/include/linux and
+chown -R root.root $LFS/usr/include/asm:
These commands change the ownership of the
$LFS/usr/include/linux and the
$LFS/usr/include/asm directories, plus all the
diff --git a/chapter05/kernel-inst.xml b/chapter05/kernel-inst.xml
index 3ac2f4e01..12b4ac51e 100644
--- a/chapter05/kernel-inst.xml
+++ b/chapter05/kernel-inst.xml
@@ -14,10 +14,10 @@ command:
yes "" | make config &&
make dep &&
cd $LFS/usr/include &&
-cp -a ../src/linux/include/linux . &&
+cp -af ../src/linux/include/linux . &&
chown -R root.root $LFS/usr/include/linux &&
mkdir asm &&
-cp -a ../src/linux/include/asm/* asm &&
+cp -af ../src/linux/include/asm/* asm &&
chown -R root.root $LFS/usr/include/asm
diff --git a/chapter05/oldnsslib.xml b/chapter05/oldnsslib.xml
index c7b3c2a17..30bda43cc 100644
--- a/chapter05/oldnsslib.xml
+++ b/chapter05/oldnsslib.xml
@@ -13,7 +13,7 @@ normal Linux system uses by simply executing the library, like this:
interesting information. If you have Glibc-2.0.x installed on your starting
distribution, copy the NSS library files by running:
-cp -av /lib/libnss* $LFS/lib
+cp -afv /lib/libnss* $LFS/lib
diff --git a/chapter05/shellutils-inst.xml b/chapter05/shellutils-inst.xml
index 6e784c0c0..e6241b1e1 100644
--- a/chapter05/shellutils-inst.xml
+++ b/chapter05/shellutils-inst.xml
@@ -9,8 +9,8 @@ to be unpacked.
make LDFLAGS=-static &&
make install &&
cd $LFS/usr/bin &&
-mv date echo false pwd stty $LFS/bin &&
-mv su true uname hostname $LFS/bin
+mv -f date echo false pwd stty $LFS/bin &&
+mv -f su true uname hostname $LFS/bin
diff --git a/chapter05/textutils-inst.xml b/chapter05/textutils-inst.xml
index fc56d6f8d..80f8e1d4c 100644
--- a/chapter05/textutils-inst.xml
+++ b/chapter05/textutils-inst.xml
@@ -6,7 +6,7 @@
./configure --prefix=$LFS/usr --disable-nls &&
make LDFLAGS=-static &&
make install &&
-mv $LFS/usr/bin/cat $LFS/bin
+mv -f $LFS/usr/bin/cat $LFS/bin
diff --git a/chapter06/bash-inst.xml b/chapter06/bash-inst.xml
index 6ca2e5600..ee2ee88f6 100644
--- a/chapter06/bash-inst.xml
+++ b/chapter06/bash-inst.xml
@@ -7,7 +7,7 @@
make &&
make install &&
logout
-mv $LFS/usr/bin/bash $LFS/usr/bin/bashbug $LFS/bin &&
+mv -f $LFS/usr/bin/bash $LFS/usr/bin/bashbug $LFS/bin &&
&c6-chrootcmd;
The static bash is replaced with the dynamic bash after we exit
diff --git a/chapter06/bzip2-inst.xml b/chapter06/bzip2-inst.xml
index 7f4ce03a0..ba92ead24 100644
--- a/chapter06/bzip2-inst.xml
+++ b/chapter06/bzip2-inst.xml
@@ -5,19 +5,19 @@
make -f Makefile-libbz2_so &&
make bzip2recover libbz2.a &&
-cp bzip2-shared /bin/bzip2 &&
-cp bzip2recover /bin &&
-cp bzip2.1 /usr/share/man/man1 &&
-cp bzlib.h /usr/include &&
-cp -a libbz2.so* libbz2.a /lib &&
-rm /usr/lib/libbz2.a &&
+cp -f bzip2-shared /bin/bzip2 &&
+cp -f bzip2recover /bin &&
+cp -f bzip2.1 /usr/share/man/man1 &&
+cp -f bzlib.h /usr/include &&
+cp -af libbz2.so* libbz2.a /lib &&
+rm -f /usr/lib/libbz2.a &&
cd /bin &&
ln -sf bzip2 bunzip2 &&
ln -sf bzip2 bzcat &&
cd /usr/share/man/man1 &&
-ln -s bzip2.1 bunzip2.1 &&
-ln -s bzip2.1 bzcat.1 &&
-ln -s bzip2.1 bzip2recover.1
+ln -sf bzip2.1 bunzip2.1 &&
+ln -sf bzip2.1 bzcat.1 &&
+ln -sf bzip2.1 bzip2recover.1
Although it's not strictly a part of a basic LFS system it's worth
mentioning that a patch for Tar can be downloaded which enables the tar
diff --git a/chapter06/e2fsprogs-inst.xml b/chapter06/e2fsprogs-inst.xml
index e5399db99..2bba4eb80 100644
--- a/chapter06/e2fsprogs-inst.xml
+++ b/chapter06/e2fsprogs-inst.xml
@@ -11,7 +11,7 @@ to be like that. We did not forget to supply a value there.
make &&
make install &&
make install-libs &&
-mv /usr/sbin/mklost+found /sbin
+mv -f /usr/sbin/mklost+found /sbin
diff --git a/chapter06/ed-inst.xml b/chapter06/ed-inst.xml
index 41f2545bc..698f0d299 100644
--- a/chapter06/ed-inst.xml
+++ b/chapter06/ed-inst.xml
@@ -11,7 +11,7 @@
./configure --prefix=/usr &&
make &&
make install &&
-mv /usr/bin/ed /usr/bin/red /bin
+mv -f /usr/bin/ed /usr/bin/red /bin
diff --git a/chapter06/flex-inst.xml b/chapter06/flex-inst.xml
index fedd2dc5e..abea4ae41 100644
--- a/chapter06/flex-inst.xml
+++ b/chapter06/flex-inst.xml
@@ -7,7 +7,7 @@
make &&
make install &&
cd /usr/bin &&
-ln -s flex lex
+ln -sf flex lex
diff --git a/chapter06/glibc-exp.xml b/chapter06/glibc-exp.xml
index dfb3bae3c..d49215c64 100644
--- a/chapter06/glibc-exp.xml
+++ b/chapter06/glibc-exp.xml
@@ -21,7 +21,7 @@ file tmp~. This is done because Glibc can't
autodetect perl since it's not installed yet at the time when we install
Glibc.
-mv tmp~ ../glibc-&glibc-version;/malloc/Makefile: The file
+mv -f tmp~ ../glibc-&glibc-version;/malloc/Makefile: The file
tmp~ is now moved back to
../glibc-&glibc-version;/malloc/Makefile. We do this because
when using sed, we can't write straight back to this file so we need to
@@ -35,7 +35,7 @@ because as we don't have glibc on the LFS system yet, usernames can't
be resolved to their user id's. Therefore, we replace the username
root with the id 0.
-mv tmp~ ../glibc-&glibc-version;/login/Makefile: Asabove, we are using a temporary file (tmp~) to store the
+mv -f tmp~ ../glibc-&glibc-version;/login/Makefile: Asabove, we are using a temporary file (tmp~) to store the
edited Makefile and then copying it back over the original.
--enable-add-ons: This enables the add-on that
@@ -52,7 +52,7 @@ test program to determine this, so it automatically defaults to a
cross-compiler. The reason for the failed program is because Glibc
hasn't been installed yet.
-mv config.make~ config.make: Again, we are moving
+mv -f config.make~ config.make: Again, we are moving
the temporary file over the original.
diff --git a/chapter06/glibc-inst.xml b/chapter06/glibc-inst.xml
index 0b52729e9..95ad570cb 100644
--- a/chapter06/glibc-inst.xml
+++ b/chapter06/glibc-inst.xml
@@ -14,15 +14,15 @@ would do.
cd ../glibc-build &&
sed 's|$(PERL)|/usr/bin/perl|' \
../glibc-&glibc-version;/malloc/Makefile > tmp~ &&
-mv tmp~ ../glibc-&glibc-version;/malloc/Makefile &&
+mv -f tmp~ ../glibc-&glibc-version;/malloc/Makefile &&
sed 's/root/0/' ../glibc-&glibc-version;/login/Makefile > tmp~ &&
-mv tmp~ ../glibc-&glibc-version;/login/Makefile &&
+mv -f tmp~ ../glibc-&glibc-version;/login/Makefile &&
../glibc-&glibc-version;/configure \
--prefix=/usr --enable-add-ons \
--libexecdir=/usr/bin &&
sed 's/cross-compiling = yes/cross-compiling = no/' \
config.make > config.make~ &&
-mv config.make~ config.make &&
+mv -f config.make~ config.make &&
make &&
make install &&
make localedata/install-locales &&
diff --git a/chapter06/gzip-inst.xml b/chapter06/gzip-inst.xml
index 5c59c88c1..2763417e2 100644
--- a/chapter06/gzip-inst.xml
+++ b/chapter06/gzip-inst.xml
@@ -7,13 +7,13 @@
make &&
make install &&
cd /usr/bin &&
-mv gzip /bin &&
-rm gunzip zcat &&
+mv -f gzip /bin &&
+rm -f gunzip zcat &&
cd /bin &&
ln -sf gzip gunzip &&
-ln -s gzip zcat &&
-ln -s gzip compress &&
-ln -s gunzip uncompress
+ln -sf gzip zcat &&
+ln -sf gzip compress &&
+ln -sf gunzip uncompress
diff --git a/chapter06/kbd-exp.xml b/chapter06/kbd-exp.xml
index a4260d5db..2cd5c9cba 100644
--- a/chapter06/kbd-exp.xml
+++ b/chapter06/kbd-exp.xml
@@ -5,7 +5,7 @@
data files (fonts, keymaps, and such) in the /usr/share/kbd directory, as
the FHS suggests.
-rm
+rm -f
/usr/share/kbd/keymaps/i386/qwerty/defkeymap.map.gz: We
remove this file because we don't know which keymap you
need to use. We will be defining the default keymap in
diff --git a/chapter06/kbd-inst.xml b/chapter06/kbd-inst.xml
index 27799dd47..f6211bddd 100644
--- a/chapter06/kbd-inst.xml
+++ b/chapter06/kbd-inst.xml
@@ -6,7 +6,7 @@
./configure --datadir=/usr/share/kbd &&
make &&
make install &&
-rm /usr/share/kbd/keymaps/i386/qwerty/defkeymap.map.gz
+rm -f /usr/share/kbd/keymaps/i386/qwerty/defkeymap.map.gz
diff --git a/chapter06/man-inst.xml b/chapter06/man-inst.xml
index ef36275a8..1c457fc90 100644
--- a/chapter06/man-inst.xml
+++ b/chapter06/man-inst.xml
@@ -5,7 +5,7 @@
for i in configure src/Makefile.in src/makewhatis.sh
do sed s/gawk/awk/g $i > $i.fixed
-mv $i.fixed $i
+mv -f $i.fixed $i
done
chmod 700 configure &&
./configure -default &&
diff --git a/chapter06/mawk-inst.xml b/chapter06/mawk-inst.xml
index 87380832b..3ae513357 100644
--- a/chapter06/mawk-inst.xml
+++ b/chapter06/mawk-inst.xml
@@ -8,7 +8,7 @@
make BINDIR=/usr/bin \
MANDIR=/usr/share/man/man1 install &&
cd /usr/bin &&
-ln -s mawk awk
+ln -sf mawk awk
diff --git a/chapter06/ncurses-inst.xml b/chapter06/ncurses-inst.xml
index 0b610591c..03782abe6 100644
--- a/chapter06/ncurses-inst.xml
+++ b/chapter06/ncurses-inst.xml
@@ -10,6 +10,6 @@
cd /lib &&
mv libncurses.a libncurses_g.a libncurses++.a /usr/lib &&
cd /usr/lib &&
-ln -s libncurses.a libcurses.a
+ln -sf libncurses.a libcurses.a
diff --git a/chapter06/netkitbase-inst.xml b/chapter06/netkitbase-inst.xml
index c4cc5d3ce..36f546600 100644
--- a/chapter06/netkitbase-inst.xml
+++ b/chapter06/netkitbase-inst.xml
@@ -7,7 +7,7 @@
make &&
make install &&
cd etc.sample &&
-cp services protocols /etc
+cp -f services protocols /etc
There are other files in the etc.sample directory which might be of
diff --git a/chapter06/procps-inst.xml b/chapter06/procps-inst.xml
index 29ff3d5f6..0b86b02fa 100644
--- a/chapter06/procps-inst.xml
+++ b/chapter06/procps-inst.xml
@@ -5,7 +5,7 @@
make &&
make XSCPT='' install &&
-mv /usr/bin/kill /bin
+mv -f /usr/bin/kill /bin
diff --git a/chapter06/removeoldnss.xml b/chapter06/removeoldnss.xml
index 3d2214870..2edf07397 100644
--- a/chapter06/removeoldnss.xml
+++ b/chapter06/removeoldnss.xml
@@ -5,7 +5,7 @@
to the LFS system (because the normal system runs glibc-2.0) it's time to remove
them now by running:
-rm /lib/libnss*.so.1 /lib/libnss*2.0*
+rm -f /lib/libnss*.so.1 /lib/libnss*2.0*
diff --git a/chapter06/shadowpwd-exp.xml b/chapter06/shadowpwd-exp.xml
index f9c311362..5a2684570 100644
--- a/chapter06/shadowpwd-exp.xml
+++ b/chapter06/shadowpwd-exp.xml
@@ -6,7 +6,7 @@
compilation bug which occurs due to a variable (nflg), being used but not
defined.
-cp limits login.access and others: These files
+cp -f limits login.access and others: These files
were not installed during the installation of the package so we copy
them manually as those files are used to configure authentication
details on the system.
diff --git a/chapter06/shadowpwd-inst.xml b/chapter06/shadowpwd-inst.xml
index 839eb7811..aa95add10 100644
--- a/chapter06/shadowpwd-inst.xml
+++ b/chapter06/shadowpwd-inst.xml
@@ -6,13 +6,13 @@ following commands:
sed 's/\(.*\) (nflg || \(.*\))\(.*\)/\1\2\3/' \
- src/useradd.c > useradd.c.temp &&
-mv useradd.c.temp src/useradd.c &&
+ src/useradd.c > useradd.c.temp &&
+mv -f useradd.c.temp src/useradd.c &&
./configure --prefix=/usr &&
make &&
make install &&
cd etc &&
-cp limits login.access /etc &&
+cp -f limits login.access /etc &&
sed "s|/var/spool/mail|/var/mail|" login.defs.linux > /etc/login.defs
diff --git a/chapter06/shellutils-inst.xml b/chapter06/shellutils-inst.xml
index 7b0ac4122..4c4a5255d 100644
--- a/chapter06/shellutils-inst.xml
+++ b/chapter06/shellutils-inst.xml
@@ -7,8 +7,8 @@
make &&
make install &&
cd /usr/bin &&
-mv date echo false pwd stty /bin &&
-mv su true uname hostname /bin
+mv -f date echo false pwd stty /bin &&
+mv -f su true uname hostname /bin
@@ -22,7 +22,7 @@ are built into the bash interpreter, but the FHS dictates that there should be a
[ binary. We create that in this way, while still in the
/usr/bin directory:
-ln -s test [
+ln -sf test [
diff --git a/chapter06/sysvinit-inst.xml b/chapter06/sysvinit-inst.xml
index 80fb6b2f3..5174d4601 100644
--- a/chapter06/sysvinit-inst.xml
+++ b/chapter06/sysvinit-inst.xml
@@ -15,7 +15,7 @@ processes started by init the TERM signal".
sed \
's/\(.*\)\(Sending processes\)\(.*\)/\1\2 started by init\3/' \
src/init.c > init.c.temp &&
-mv init.c.temp src/init.c &&
+mv -f init.c.temp src/init.c &&
make -C src &&
make -C src install
diff --git a/chapter06/textutils-inst.xml b/chapter06/textutils-inst.xml
index c22802455..6fe4e525d 100644
--- a/chapter06/textutils-inst.xml
+++ b/chapter06/textutils-inst.xml
@@ -6,7 +6,7 @@
./configure --prefix=/usr &&
make &&
make install &&
-mv /usr/bin/cat /bin
+mv -f /usr/bin/cat /bin
diff --git a/chapter06/utillinux-inst.xml b/chapter06/utillinux-inst.xml
index eb9d7e579..9bad2860e 100644
--- a/chapter06/utillinux-inst.xml
+++ b/chapter06/utillinux-inst.xml
@@ -7,7 +7,7 @@ util-linux package, FHS-compliant, run the following.
sed 's|etc/adjtime|var/lib/hwclock/adjtime|' \
hwclock/hwclock.c > hwclock~ &&
-mv hwclock~ hwclock/hwclock.c &&
+mv -f hwclock~ hwclock/hwclock.c &&
mkdir /var/lib/hwclock
diff --git a/chapter06/vim-inst.xml b/chapter06/vim-inst.xml
index 382404739..f75753935 100644
--- a/chapter06/vim-inst.xml
+++ b/chapter06/vim-inst.xml
@@ -18,7 +18,7 @@ in which order it is done. Install Vim by running the following commands:
make &&
make install &&
cd /usr/bin &&
-ln -s vim vi
+ln -sf vim vi
If you plan on installing the X Window system on your LFS
system, you might want to re-compile Vim after you have installed X. Vim
@@ -42,7 +42,7 @@ instead of the one presented above:
make &&
make install &&
cd /usr/bin &&
-ln -s vim vi &&
+ln -sf vim vi &&
mkdir /var/lib/vim
diff --git a/chapter07/symperm.xml b/chapter07/symperm.xml
index 32c4a0a1c..90206b947 100644
--- a/chapter07/symperm.xml
+++ b/chapter07/symperm.xml
@@ -18,38 +18,38 @@ K002otherdaemon.
chmod 754 sendsignals setclock sysklogd template &&
chmod 754 localnet ethnet &&
cd ../rc0.d &&
-ln -s ../init.d/ethnet K800ethnet &&
-ln -s ../init.d/sysklogd K900sysklogd &&
-ln -s ../init.d/sendsignals S800sendsignals &&
-ln -s ../init.d/mountfs S900mountfs &&
-ln -s ../init.d/halt S999halt &&
+ln -sf ../init.d/ethnet K800ethnet &&
+ln -sf ../init.d/sysklogd K900sysklogd &&
+ln -sf ../init.d/sendsignals S800sendsignals &&
+ln -sf ../init.d/mountfs S900mountfs &&
+ln -sf ../init.d/halt S999halt &&
cd ../rc6.d &&
-ln -s ../init.d/ethnet K800ethnet &&
-ln -s ../init.d/sysklogd K900sysklogd &&
-ln -s ../init.d/sendsignals S800sendsignals &&
-ln -s ../init.d/mountfs S900mountfs &&
-ln -s ../init.d/reboot S999reboot &&
+ln -sf ../init.d/ethnet K800ethnet &&
+ln -sf ../init.d/sysklogd K900sysklogd &&
+ln -sf ../init.d/sendsignals S800sendsignals &&
+ln -sf ../init.d/mountfs S900mountfs &&
+ln -sf ../init.d/reboot S999reboot &&
cd ../rcS.d &&
-ln -s ../init.d/localnet S100localnet &&
-ln -s ../init.d/checkfs S200checkfs &&
-ln -s ../init.d/mountfs S300mountfs &&
-ln -s ../init.d/setclock S400setclock &&
-ln -s ../init.d/loadkeys S500loadkeys &&
+ln -sf ../init.d/localnet S100localnet &&
+ln -sf ../init.d/checkfs S200checkfs &&
+ln -sf ../init.d/mountfs S300mountfs &&
+ln -sf ../init.d/setclock S400setclock &&
+ln -sf ../init.d/loadkeys S500loadkeys &&
cd ../rc1.d &&
-ln -s ../init.d/ethnet K800ethnet &&
-ln -s ../init.d/sysklogd K900sysklogd &&
+ln -sf ../init.d/ethnet K800ethnet &&
+ln -sf ../init.d/sysklogd K900sysklogd &&
cd ../rc2.d &&
-ln -s ../init.d/sysklogd S100sysklogd &&
-ln -s ../init.d/ethnet K800ethnet &&
+ln -sf ../init.d/sysklogd S100sysklogd &&
+ln -sf ../init.d/ethnet K800ethnet &&
cd ../rc3.d &&
-ln -s ../init.d/sysklogd S100sysklogd &&
-ln -s ../init.d/ethnet S200ethnet &&
+ln -sf ../init.d/sysklogd S100sysklogd &&
+ln -sf ../init.d/ethnet S200ethnet &&
cd ../rc4.d &&
-ln -s ../init.d/sysklogd S100sysklogd &&
-ln -s ../init.d/ethnet S200ethnet &&
+ln -sf ../init.d/sysklogd S100sysklogd &&
+ln -sf ../init.d/ethnet S200ethnet &&
cd ../rc5.d &&
-ln -s ../init.d/sysklogd S100sysklogd &&
-ln -s ../init.d/ethnet S200ethnet
+ln -sf ../init.d/sysklogd S100sysklogd &&
+ln -sf ../init.d/ethnet S200ethnet
diff --git a/chapter08/kernel.xml b/chapter08/kernel.xml
index c265ec668..cb88bc77c 100644
--- a/chapter08/kernel.xml
+++ b/chapter08/kernel.xml
@@ -17,8 +17,8 @@ following commands are run to build the kernel:
make bzImage &&
make modules &&
make modules_install &&
-cp arch/i386/boot/bzImage /boot/lfskernel &&
-cp System.map /boot
+cp -f arch/i386/boot/bzImage /boot/lfskernel &&
+cp -f System.map /boot
Note: the arch/i386/boot/bzImage path may vary on
different platforms.
diff --git a/chapter08/lilo.xml b/chapter08/lilo.xml
index 1596ce644..7a9458317 100644
--- a/chapter08/lilo.xml
+++ b/chapter08/lilo.xml
@@ -14,7 +14,7 @@ the host system or the LFS system).
system:
logout
-cp $LFS/boot/lfskernel /boot
+cp -f $LFS/boot/lfskernel /boot
The next step is adding an entry to /etc/lilo.conf so that we can
choose LFS when booting the computer:
@@ -36,8 +36,8 @@ partition's designation.
The last step is syncing the host system lilo config. files with the
LFS system:
-cp /etc/lilo.conf $LFS/etc &&
-cp <kernel images> $LFS/boot
+cp -f /etc/lilo.conf $LFS/etc &&
+cp -f <kernel images> $LFS/boot
To find out which kernel images files are being used, look at the
/etc/lilo.conf file and find the lines starting with