aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2020-05-29 22:05:38 +0000
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2020-05-29 22:05:38 +0000
commit1f5a5864d2e3a4a04bbc1a76f2ac4665ff485650 (patch)
tree71d0efe919a84cc758a2dc886e39795a5dceaf04
parent18fa90938b1505e9a0142883599fd560057a56ff (diff)
Tweak additions and deletion of tester user.
Explain test filures in bash. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11868 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r--chapter06/bash.xml12
-rw-r--r--chapter06/createfiles.xml5
-rw-r--r--chapter06/revisedchroot.xml3
3 files changed, 10 insertions, 10 deletions
diff --git a/chapter06/bash.xml b/chapter06/bash.xml
index 03a3e0614..ae42cf4cb 100644
--- a/chapter06/bash.xml
+++ b/chapter06/bash.xml
@@ -81,15 +81,13 @@
class="username">tester</systemitem> user:</para>
<screen><userinput remap="test">su tester -c "PATH=$PATH make tests"</userinput></screen>
-<!--
- <para>The <command>su</command> command above is slightly different from
- other places in the book. The
- reason is that the <option>-c</option> option runs the command without
- a controlling terminal, while the bash test suite needs one.</para>
--->
+
<para>The <systemitem class="username">tester</systemitem>
user does not have enough permissions for all the tests to pass. This shows
- up in some <quote>diff</quote> output in four test results.</para>
+ up in some <quote>diff</quote> output in four test results. Portions of the
+ run-execscript, run-lastpipe, run-read, and run-test programs
+ are known to fail in the LFS chroot environment, but pass if the tests
+ are run in a full system.</para>
<para>Install the package and move the main executable to
<filename class='directory'>/bin</filename>:</para>
diff --git a/chapter06/createfiles.xml b/chapter06/createfiles.xml
index 8e7b78410..74a071df0 100644
--- a/chapter06/createfiles.xml
+++ b/chapter06/createfiles.xml
@@ -345,8 +345,9 @@ EOF</userinput></screen>
<para>Some tests later in the chapter need a regular user. We add this
user here and delete this account at the end of the chapter.</para>
-<screen><userinput>echo "tester:x:101:101::/tmp:/bin/bash" &gt;&gt; /etc/passwd
-echo "tester:x:101:dummy" &gt;&gt; /etc/group</userinput></screen>
+<screen><userinput>echo "tester:x:101:101::/home/tester:/bin/bash" &gt;&gt; /etc/passwd
+echo "tester:x:101:dummy" &gt;&gt; /etc/group
+install -o tester -d /home/tester</userinput></screen>
<para>To remove the <quote>I have no name!</quote> prompt, start a new
shell. Since a full Glibc was installed in <xref
diff --git a/chapter06/revisedchroot.xml b/chapter06/revisedchroot.xml
index c39084882..ffe648865 100644
--- a/chapter06/revisedchroot.xml
+++ b/chapter06/revisedchroot.xml
@@ -73,5 +73,6 @@ rm -f /usr/lib/libz.a</userinput></screen>
<para>Finally, remove the temporary 'tester' usr account created at the
beginning of this chapter.</para>
-<screen><userinput>sed -i '/tester/d' /etc/passwd /etc/group</userinput></screen>
+<screen><userinput>sed -i '/tester/d' /etc/passwd /etc/group
+rm -rf /home/tester</userinput></screen>
</sect1>