Mock "Could not find useradd in chroot, maybe the install failed?"
Clark Williams
williams at redhat.com
Mon Jan 29 17:04:33 UTC 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jeroen Janssen wrote:
> Hi,
>
> I have been trying to build F7Test1 for a couple of days now, but I
> seem to be doing something wrong. Since I'm running a FC6 (latest
> updates) system, I need to run pungi within mock in order to generate
> the F7Test1 installation media.
>
> However, I can't seem to get mock to work, so I cannot build the
> installation media.
>
> As a test, I'm running the following:
> mock --debug -r fedora-6-i386-core init
>
> and the latest part of the output is:
>
> DEBUG: Executing /usr/sbin/mock-helper yum --installroot
> /var/lib/mock/fedora-6-i386-core/root update
> Could not find useradd in chroot, maybe the install failed?
> ending
>
> I get the same error when trying to setup a mock for fedora-devel.
>
> This is with mock 0.6.10-1.fc6, with the default mock configfiles.
>
> Anyone here having the same problem, or is it just me?
>
> Best regards,
>
> Jeroen Janssen
Well, I was going to say that it might not be in the path, since
mock-helper doesn't inherit a path, but /usr/sbin is in that path and
that's usually where useradd is found.
After a failure, try running :
mock -r fedora-6-i386-core --no-clean shell
and poke around in the chroot. Is useradd actually there?
Clark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFFvikhHyuj/+TTEp0RArJ0AJ9VwwFsg2bG8VpPnKvY0AtheJnrKwCffNEO
+E8neXWDzYJbxu/JbpCC1pQ=
=tPgs
-----END PGP SIGNATURE-----
More information about the Fedora-buildsys-list
mailing list