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

"revsuine" ([email protected] via lfs-support Mailing List) <[email protected]> Sat, 02 Aug 2025 09:06:24 +0100
Newsgroups gmane.linux.lfs.support
Message-ID <[email protected]>
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.

-- 
All emails from me will be signed with the key 8FB4 18CD 9520 22E5 BBC4 3261
3F25 7B68 F5BC 9339. You can download the public key at
https://revsuine.xyz/keys/openpgp_8FB418CD952022E5BBC432613F257B68F5BC9339.asc,
or if your mail client supports autocrypt, you can retrieve my public key from
the autocrypt header of this email.
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQSPtBjNlSAi5bvEMmE/JXto9byTOQUCaI3HAAAKCRA/JXto9byT
Ofa1AP9qqhsX3MxXSTAju/2Yw5e0FPq06O9pgEWviYjuPfDAvAD+IokllklLtAw4
NlABK0gJiVbcrmTT6UXS17qcWFiS1gQ=
=BUiS
-----END PGP SIGNATURE-----