Changeset 1f5a586
- Timestamp:
- 05/29/2020 10:05:38 PM (3 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, arm, bdubbs/gcc13, ml-11.0, multilib, old-trunk, s6-init, trunk, xry111/arm64, xry111/clfs-ng, xry111/git-transition, xry111/glibc-2.34, xry111/glibc-2.37, xry111/kcfg-revise, xry111/lfs-next, xry111/pip3, xry111/queue-11.3, xry111/rust-wip-20221008, xry111/tester-nohack, xry111/usr-move
- Children:
- b51bb68
- Parents:
- 18fa909
- Location:
- chapter06
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/bash.xml
r18fa909 r1f5a586 82 82 83 83 <screen><userinput remap="test">su tester -c "PATH=$PATH make tests"</userinput></screen> 84 <!-- 85 <para>The <command>su</command> command above is slightly different from 86 other places in the book. The 87 reason is that the <option>-c</option> option runs the command without 88 a controlling terminal, while the bash test suite needs one.</para> 89 --> 84 90 85 <para>The <systemitem class="username">tester</systemitem> 91 86 user does not have enough permissions for all the tests to pass. This shows 92 up in some <quote>diff</quote> output in four test results.</para> 87 up in some <quote>diff</quote> output in four test results. Portions of the 88 run-execscript, run-lastpipe, run-read, and run-test programs 89 are known to fail in the LFS chroot environment, but pass if the tests 90 are run in a full system.</para> 93 91 94 92 <para>Install the package and move the main executable to -
chapter06/createfiles.xml
r18fa909 r1f5a586 346 346 user here and delete this account at the end of the chapter.</para> 347 347 348 <screen><userinput>echo "tester:x:101:101::/tmp:/bin/bash" >> /etc/passwd 349 echo "tester:x:101:dummy" >> /etc/group</userinput></screen> 348 <screen><userinput>echo "tester:x:101:101::/home/tester:/bin/bash" >> /etc/passwd 349 echo "tester:x:101:dummy" >> /etc/group 350 install -o tester -d /home/tester</userinput></screen> 350 351 351 352 <para>To remove the <quote>I have no name!</quote> prompt, start a new -
chapter06/revisedchroot.xml
r18fa909 r1f5a586 74 74 beginning of this chapter.</para> 75 75 76 <screen><userinput>sed -i '/tester/d' /etc/passwd /etc/group</userinput></screen> 76 <screen><userinput>sed -i '/tester/d' /etc/passwd /etc/group 77 rm -rf /home/tester</userinput></screen> 77 78 </sect1>
Note:
See TracChangeset
for help on using the changeset viewer.