فهرست منبع

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

Bruce Dubbs 5 سال پیش
والد
کامیت
1f5a5864d2
3فایلهای تغییر یافته به همراه10 افزوده شده و 10 حذف شده
  1. 5 7
      chapter06/bash.xml
  2. 3 2
      chapter06/createfiles.xml
  3. 2 1
      chapter06/revisedchroot.xml

+ 5 - 7
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>

+ 3 - 2
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

+ 2 - 1
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>