[rhn-users] rpm --root is not running pre-instalation and post-instalation scripts in chrooted environment

Schirmer Joe joe.schirmer at craneae.com
Mon Mar 13 14:08:26 UTC 2006


When I try to install an rpm using the latest version (RPM version
4.3.3) that requires a pre-instalation or post-instalation script I get
the following error:

	[root at aisd-linux01 rjschirmer]# rpm --root
/home/rjschirmer/testenv/ -i
/home/rjschirmer/newRPMs/glibc-common-2.3.4-2.13.i386.rpm 
	error: %post(glibc-common-2.3.4-2.13.i386) scriptlet failed,
exit status 255
	[root at aisd-linux01 rjschirmer]# 

When I run with the verify on (-ivv) I see that the post-instalation
script fails:

	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 8911
	D:   install: waitpid(8911) rc 8911 status ff00 secs 0.000
	error: %post(glibc-common-2.3.4-2.13.i386) scriptlet failed,
exit status 255

But I have no problem running the post-install script manually

	[root at aisd-linux01 rjschirmer]# rpm -qp --scripts
/home/rjschirmer/newRPMs/glibc-common-2.3.4-2.13.i386.rpm 
	postinstall program: /usr/sbin/build-locale-archive
	[root at aisd-linux01 rjschirmer]# chroot /home/rjschirmer/testenv
/usr/sbin/build-locale-archive
	[root at aisd-linux01 rjschirmer]# echo $?
	0
	[root at aisd-linux01 rjschirmer]# 

 
How do I report this bug?  When I go to the Red Hat support page I see
no place to report bugs for Red Hat Enterprise customers.
 
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.
################################################################################
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/rhn-users/attachments/20060313/5c86be0b/attachment.htm>


More information about the rhn-users mailing list