From 1f5a5864d2e3a4a04bbc1a76f2ac4665ff485650 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Fri, 29 May 2020 22:05:38 +0000 Subject: 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 --- chapter06/bash.xml | 12 +++++------- chapter06/createfiles.xml | 5 +++-- chapter06/revisedchroot.xml | 3 ++- 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 user: su tester -c "PATH=$PATH make tests" - + The tester user does not have enough permissions for all the tests to pass. This shows - up in some diff output in four test results. + up in some diff 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. Install the package and move the main executable to /bin: 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 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. -echo "tester:x:101:101::/tmp:/bin/bash" >> /etc/passwd -echo "tester:x:101:dummy" >> /etc/group +echo "tester:x:101:101::/home/tester:/bin/bash" >> /etc/passwd +echo "tester:x:101:dummy" >> /etc/group +install -o tester -d /home/tester To remove the I have no name! prompt, start a new shell. Since a full Glibc was installed in Finally, remove the temporary 'tester' usr account created at the beginning of this chapter. -sed -i '/tester/d' /etc/passwd /etc/group +sed -i '/tester/d' /etc/passwd /etc/group +rm -rf /home/tester -- cgit v1.2.3-54-g00ecf