Author: bdubbs Date: Fri May 29 15:05:38 2020 New Revision: 11868 Log: Tweak additions and deletion of tester user. Explain test filures in bash.
Modified: trunk/BOOK/chapter06/bash.xml trunk/BOOK/chapter06/createfiles.xml trunk/BOOK/chapter06/revisedchroot.xml Modified: trunk/BOOK/chapter06/bash.xml ============================================================================== --- trunk/BOOK/chapter06/bash.xml Fri May 29 06:26:19 2020 (r11867) +++ trunk/BOOK/chapter06/bash.xml Fri May 29 15:05:38 2020 (r11868) @@ -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> Modified: trunk/BOOK/chapter06/createfiles.xml ============================================================================== --- trunk/BOOK/chapter06/createfiles.xml Fri May 29 06:26:19 2020 (r11867) +++ trunk/BOOK/chapter06/createfiles.xml Fri May 29 15:05:38 2020 (r11868) @@ -345,8 +345,9 @@ <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" >> /etc/passwd -echo "tester:x:101:dummy" >> /etc/group</userinput></screen> +<screen><userinput>echo "tester:x:101:101::/home/tester:/bin/bash" >> /etc/passwd +echo "tester:x:101:dummy" >> /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 Modified: trunk/BOOK/chapter06/revisedchroot.xml ============================================================================== --- trunk/BOOK/chapter06/revisedchroot.xml Fri May 29 06:26:19 2020 (r11867) +++ trunk/BOOK/chapter06/revisedchroot.xml Fri May 29 15:05:38 2020 (r11868) @@ -73,5 +73,6 @@ <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> -- http://lists.linuxfromscratch.org/listinfo/lfs-book FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page