The root.log output looks like this (there is no mention of shadow-utils) and 
shadow-utils is installed on the box. 
rpm -qa | grep shadow
shadow-utils-4.1.4.2-13.el6.x86_64


root.log

DEBUG util.py:65:  creating dir: /var/lib/mock/dist-ncp -build-13-8/root/dev/shm
DEBUG backend.py:472:  kver == 2.6.32-358.el6.x86_64
DEBUG util.py:314:  Executing command: ['/bin/mount', '-n', '-t', 'proc', 
'proc', '/var/lib/mock/dist-ncp -build-13-8/root/proc'] with env {'LANG': 
'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 
'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}
DEBUG util.py:354:  Child return code was: 0
DEBUG util.py:314:  Executing command: ['/bin/mount', '-n', '-t', 'sysfs', 
'mock_chroot_sys', '/var/lib/mock/dist-ncp -build-13-8/root/sys'] with env 
{'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 
'mock', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}
DEBUG util.py:354:  Child return code was: 0
DEBUG util.py:314:  Executing command: ['/bin/mount', '-n', '-t', 'tmpfs', 
'mock_chroot_shmfs', '/var/lib/mock/dist-ncp-build-13-8/root/dev/shm'] with env 
{'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 
'mock', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}
DEBUG util.py:354:  Child return code was: 0
DEBUG util.py:314:  Executing command: ['/bin/mount', '-n', '-t', 'devpts', 
'-o', 'gid=5,mode=0620,ptmxmode=0666,newinstance', 'mock_chroot_devpts', 
'/var/lib/mock/dist-ncp -build-13-8/root/dev/pts'] with env {'LANG': 
'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 
'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}
DEBUG util.py:354:  Child return code was: 0
DEBUG util.py:314:  Executing command: ['/bin/mount', '-n', '--bind', 
'/tmp/mock-selinux-plugin.eMHC0m', '/var/lib/mock/dist-ncp 
-build-13-8/root/proc/filesystems'] with env {'LANG': 'en_US.UTF-8', 'TERM': 
'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'PATH': 
'/usr/bin:/bin:/usr/sbin:/sbin'}
DEBUG util.py:354:  Child return code was: 0
DEBUG backend.py:948:  ['/usr/bin/yum', '--installroot', 
'/var/lib/mock/dist-ncp-build-13-8/root/', 'groupinstall', 'build']
DEBUG util.py:314:  Executing command: ['/usr/bin/yum', '--installroot', 
'/var/lib/mock/dist-ncp -build-13-8/root/', 'groupinstall', 'build', 
'--setopt=tsflags=nocontexts'] with env {'LANG': 'en_US.UTF-8', 'TERM': 
'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'echo -n 
"<mock-chroot>"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}
DEBUG util.py:264:  Warning: Group build does not have any packages.
DEBUG util.py:354:  Child return code was: 0
DEBUG util.py:314:  Executing command: /usr/bin/repoquery -c 
/var/lib/mock/dist-ncp -build-13-8/root//etc/yum.conf -a --qf '%{nevra} 
%{buildtime} %{size} %{pkgid} %{repoid}' > 
/var/lib/mock/dist-ncp-build-13-8/result/available_pkgs with env {'LANG': 
'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 
'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}
DEBUG util.py:354:  Child return code was: 0
DEBUG util.py:314:  Executing command: ['/bin/umount', '-n', 
'/var/lib/mock/dist-ncp -build-13-8/root/proc/filesystems'] with env {'LANG': 
'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 
'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}
DEBUG util.py:354:  Child return code was: 0
DEBUG util.py:314:  Executing command: ['/bin/umount', '-n', '-l', 
'/var/lib/mock/dist-ncp-build-13-8/root/dev/pts'] with env {'LANG': 
'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 
'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}
DEBUG util.py:354:  Child return code was: 0
DEBUG util.py:314:  Executing command: ['/bin/umount', '-n', '-l', 
'/var/lib/mock/dist-ncp -build-13-8/root/dev/shm'] with env {'LANG': 
'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 
'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}
DEBUG util.py:354:  Child return code was: 0
DEBUG util.py:314:  Executing command: ['/bin/umount', '-n', '-l', 
'/var/lib/mock/dist-ncp -build-13-8/root/sys'] with env {'LANG': 'en_US.UTF-8', 
'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'HOME': '/builddir', 
'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}
DEBUG util.py:354:  Child return code was: 0
DEBUG util.py:314:  Executing command: ['/bin/umount', '-n', '-l', 
'/var/lib/mock/dist-ncp -build-13-8/root/proc'] with env {'LANG': 
'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 
'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}
DEBUG util.py:354:  Child return code was: 0
DEBUG util.py:116:  kill orphans

Mock_output.log

INFO: mock.py version 1.1.32 starting...
Start: init plugins
INFO: selinux enabled
Finish: init plugins
Start: run
Start: lock buildroot
Start: clean chroot
Finish: clean chroot
Finish: lock buildroot
Start: chroot init
Start: lock buildroot
Mock Version: 1.1.32
INFO: Mock Version: 1.1.32
INFO: calling preinit hooks
Start: device setup
Finish: device setup
Start: yum update
Start: Outputting list of available packages
Finish: Outputting list of available packages
Finish: yum update
ERROR: Could not find useradd in chroot, maybe the install failed?

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Michael 
Cronenworth
Sent: Wednesday, September 04, 2013 2:45 PM
To: [email protected]
Subject: Re: ERROR: Could not find useradd in chroot, maybe the install failed? 
in mock_output.log

On 09/04/2013 11:17 AM, Radha Venkatesh (radvenka) wrote:
> ERROR: Could not find useradd in chroot, maybe the install failed?

Do you have the root.log output? Does it show shadow-utils to be installed
during the build?
--
buildsys mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/buildsys
--
buildsys mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/buildsys

Reply via email to