Mailinglist Archive: opensuse-buildservice (178 mails)

< Previous Next >
[opensuse-buildservice] Re: local build problem ('su -c' in the build script)
  • From: Marcin Wojdyr <wojdyr@xxxxxxxxx>
  • Date: Wed, 5 Sep 2012 18:45:54 +0100
  • Message-id: <>
It seems that if RHEL4/5 is run in chroot, pam authentication doesn't work.
In particular and don't work. Replacing
these two with (in $BUILD_ROOT/etc/pam.d/su) fixed the


On 5 September 2012 14:42, Marcin Wojdyr <wojdyr@xxxxxxxxx> wrote:
While local build works for most of targets, I have problem with RHEL-5.

When I do:
$ osc build RHEL_5 x86_64

the build stops after message "now finalizing build dir...".
Actually it waits for root password, but there is no prompt.
I've added '-x' to the build script and could see that it's caused by
'su' in line 1963 in build.

[ 6s] + test spec = spec
[ 6s] ++ chroot /run/media/wojdyr/b/osbuild-root su -c 'rpm --eval
'\''%_topdir'\''' - abuild

Somehow it's specific to RHEL5. Is there a workaround? In osc I use
sudo as su-wrapper, so I don't need root password.

To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >