[rhn-users] Problem running "rpm --root"

Schirmer Joe joe.schirmer at craneae.com
Fri Mar 3 16:19:36 UTC 2006


I'm running a brand-new Enterprise 4 system and attempting to create a
clean chrooted environment in a directory created from RPMs. In order to
do this I use the '--root' option to install everthing relative to the
specified directory.

The following is run as root:

% rpm --root ~test/chrootenv --import /usr/share/rhn/RPM-GPG-KEY % rpm
--root ~test/chrootenv -I ~test/RPMdir/setup-2.5.37-1.3.noarch.rpm
% rpm --root ~test/chrootenv -i ~test/RPMdir/filesystem-2.3.0-1.i386.rpm
% rpm --root ~test/chrootenv -i ~test/RPMdir/basesystem-8.0-4.noarch.rpm
% rpm --root ~test/chrootenv -i
~test/RPMdir/tzdata-2005m-1.EL4.noarch.rpm
% rpm --root ~test/chrootenv -i
~test/RPMdir/glibc-common-2.3.4-2.13.i386.rpm
error: %post(glibc-common-2.3.4-2.13.i386) scriptlet failed, exit status
255 %

When I run the above using the '-vv' option to print out information I
get the following snipet:

D: install: %post(glibc-common-2.3.4-2.13.i386) asynchronous scriptlet
start
D: install: %post(glibc-common-2.3.4-2.13.i386)
execv(/usr/sbin/build-locale-archive) pid 11990
D: install: waitpid(11990) rc 11990 status ff00 secs 0.000
error: %post(glibc-common-2.3.4-2.13.i386) scriptlet failed, exit status
255

If I do a chroot command to run "/usr/sbin/build-locale-archive" in the
chroot environment it runs successfully. It appears as if the execv may
not be running in the chrooted environment properly.

This occurs for quite a few RPMs when I continue with the instalation of
the clean chrooted environment for both pre and post install scriptlets.
The pre-install scriptlets prevent the package from being installed such
that I am stuck.

This method worked well on our RedHat 9 system. So I'm not sure if this
is a problem with the new version of rpm (rpm-4.2-0.69 on RH9 vs.
rpm-4.3.3-11_nonptl on Enterprise 4) or what. Does anybody have any
suggestions?

 
R. Joe Schirmer
Software Engineering Lead
Crane Aerospace and Electronics
Signal Technology, Wireless Monitoring Solutions (WMS)
972-964-5178 x129
######################################################################
Attention: 
The information contained in this email message may be privileged and is confidential information intended only for the use of the recipient, or any employee or agent responsible to deliver it to the intended recipient. Any unauthorized use, distribution or copying of this information is strictly prohibited and may be unlawful.

If you have received this communication in error, please notify the sender immediately and destroy the original message and all attachments from your electronic files

################################################################################
This e-mail message has been scanned and cleared by the Crane Aerospace Mail server.
################################################################################




More information about the rhn-users mailing list