aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/coreutils.xml
diff options
context:
space:
mode:
authorZack Winkles <winkie@linuxfromscratch.org>2004-05-03 21:28:58 +0000
committerZack Winkles <winkie@linuxfromscratch.org>2004-05-03 21:28:58 +0000
commit9dfc02ff38f26117daffe7d8b822ebb64a3fed04 (patch)
treec3ea0521973ac75238f6ab5f674d5b4fc4032df8 /chapter06/coreutils.xml
parent411ceb86b8150183a447f89b4789395bf16fddf0 (diff)
Current BE-LFS (but w/ GCC 3.3.3) merged -> 6.0 branch
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3445 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/coreutils.xml')
-rw-r--r--chapter06/coreutils.xml17
1 files changed, 6 insertions, 11 deletions
diff --git a/chapter06/coreutils.xml b/chapter06/coreutils.xml
index 8ac6c756e..7adb4ee60 100644
--- a/chapter06/coreutils.xml
+++ b/chapter06/coreutils.xml
@@ -57,11 +57,7 @@ so do it now:</para>
<screen><userinput>make install-root</userinput></screen>
-<para>Create a 'table of mounted filesystems' file with:</para>
-
-<screen><userinput>touch /etc/mtab</userinput></screen>
-
-<para>And create two dummy groups and a dummy user name:</para>
+<para>Create two dummy groups and a dummy user name:</para>
<screen><userinput>echo "dummy1:x:1000" &gt;&gt; /etc/group
echo "dummy2:x:1001:dummy" &gt;&gt; /etc/group
@@ -70,7 +66,7 @@ echo "dummy:x:1000:1000:::/bin/bash" &gt;&gt; /etc/passwd</userinput></screen>
<para>Now you're all set to run the test suite. First run the few tests that
are meant to be run as <emphasis>root</emphasis>:</para>
-<screen><userinput>export NON_ROOT_USERNAME=dummy; make check-root</userinput></screen>
+<screen><userinput>make NON_ROOT_USERNAME=dummy make check-root</userinput></screen>
<para>Then run the remainder of the tests as the <emphasis>dummy</emphasis>
user:</para>
@@ -79,7 +75,7 @@ user:</para>
<para>When you're done testing, remove the dummy user and groups:</para>
-<screen><userinput>sed -i.bak '/dummy/d' /etc/passwd /etc/group</userinput></screen>
+<screen><userinput>sed -i '/dummy/d' /etc/passwd /etc/group</userinput></screen>
<para>Install the package:</para>
@@ -87,7 +83,7 @@ user:</para>
<para>And move some programs to their proper locations:</para>
-<screen><userinput>mv /usr/bin/{basename,cat,chgrp,chmod,chown,cp,dd,df} /bin
+<screen><userinput>mv /usr/bin/{[,basename,cat,chgrp,chmod,chown,cp,dd,df} /bin
mv /usr/bin/{date,echo,false,head,install,ln,ls} /bin
mv /usr/bin/{mkdir,mknod,mv,pwd,rm,rmdir,sync} /bin
mv /usr/bin/{sleep,stty,su,test,touch,true,uname} /bin
@@ -99,10 +95,9 @@ Remove the one installed by Coreutils:</para>
<screen><userinput>rm /usr/bin/kill</userinput></screen>
-<para>Finally, create two symlinks to be FHS-compliant:</para>
+<para>Finally, create a symlink to be FHS-compliant:</para>
-<screen><userinput>ln -s test /bin/[
-ln -s ../../bin/install /usr/bin</userinput></screen>
+<screen><userinput>ln -s ../../bin/install /usr/bin</userinput></screen>
</sect2>