Re: coreutils-9.6 tests/chroot/chroot-credentials failure

"Rainer Fiebig" ([email protected] via lfs-support Mailing List) <[email protected]> Sat, 2 Aug 2025 18:26:28 +0200
Newsgroups gmane.linux.lfs.support
Message-ID <[email protected]>
Am 02.08.25 um 10:06 schrieb revsuine:
> On Wed, 2025-07-30 at 14:04 +0200, Rainer Fiebig wrote:
>> Although it may not have immediate negative consequences, the failed
>> test is an indication that you made a mistake somewhere.  Perhaps when
>> entering the chroot-environment?
> 
> I'm using the following script to enter the chroot environment, starting from
> the LFS partition (of which my LFS system is one root partition and one swap
> partition) already being mounted and the other filesystems not being mounted:
> 
> ```
> #!/bin/bash
> 
> mount -v --bind /dev $LFS/dev
> mount -vt devpts devpts -o gid=5,mode=0620 $LFS/dev/pts
> mount -vt proc proc $LFS/proc
> mount -vt sysfs sysfs $LFS/sys
> mount -vt tmpfs tmpfs $LFS/run
> 
> if [ -h $LFS/dev/shm ]; then
> 	install -v -d -m 1777 $LFS$(realpath /dev/shm)
> else
> 	mount -vt tmpfs -o nosuid,nodev tmpfs $LFS/dev/shm
> fi
> 
> chroot "$LFS" /usr/bin/env -i       \
> 	HOME=/root                  \
> 	TERM="$TERM"                \
> 	PS1='(lfs chroot) \u:\w\$ ' \
> 	PATH=/usr/bin:/usr/sbin     \
> 	MAKEFLAGS="-j$(nproc)"      \
> 	TESTSUITEFLAGS="-j$(nproc)" \
> 	/bin/bash --login
> ```
> 
> So it's just the commands from chapter 7 of the LFS book.
> 
>> Or when configuring user "tester"?
>> For the latter you could check whether the the output of
>> 	grep 'tester' /etc/{passwd,group}
>> is in line with what's in the book.
> 
> ```
> /etc/passwd:tester:x:101:101::/home/tester:/bin/bash
> /etc/group:tester:x:101:
> ```
> 
> In any case, the test failure seems to have not caused problems, as I have been
> able to get to the end of the LFS book and boot into my new system without any
> noticeable problems. I'm doing BLFS now so perhaps problems will crop up in
> future, but I think this particular thing may not be an issue.
To make sure you could re-build and re-test coreutils in your LFS-system
and see whether the tests now all succeed.

Rainer

-- 
http://lists.linuxfromscratch.org/sympa/info/lfs-support
Unsubscribe: See the above information page