[opensuse-buildservice] local build problem ('su -c' in the build script)
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] + BUILD_USER_ABUILD_USED=true [ 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. Marcin -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
It seems that if RHEL4/5 is run in chroot, pam authentication doesn't work. In particular pam_rootok.so and pam_selinux.so don't work. Replacing these two with pam_permit.so (in $BUILD_ROOT/etc/pam.d/su) fixed the problem. Marcin On 5 September 2012 14:42, Marcin Wojdyr <wojdyr@gmail.com> 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] + BUILD_USER_ABUILD_USED=true [ 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.
Marcin -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (1)
-
Marcin Wojdyr