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

Schirmer Joe joe.schirmer at craneae.com
Fri Mar 3 19:09:50 UTC 2006


> -----Original Message-----
> From: rhn-users-bounces at redhat.com 
> [mailto:rhn-users-bounces at redhat.com] On Behalf Of Joe Ogulin
> Sent: Friday, March 03, 2006 12:31 PM
> To: Red Hat Network Users List
> Subject: Re: [rhn-users] Problem running "rpm --root"
> 
> Schirmer Joe wrote:
> > 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 %
> [snip]
> > 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?
> 
> Try:
> 	rpm --root=~test/chrootenv --import /usr/share/rhn/RPM-GPG-KEY
> 
> Note the option is "--root=<dir>"

The I've tried it with and without the equal sign and the both work
equally as well.  The rpm commands work as expected until the rpm tries
to do a pre-install or post-install script which is when I get the
error.  My the investigation I've done so far it appears as if rpm is
not executing the pre or post-install scripts in a chrooted environment
as the man page claims it does.

Thanks,

--Joe
######################################################################
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