On 5/16/05, Aizer Danny-BDA023 <Danny.Aizer@xxxxxxxxxxxx> wrote: > Well - we've figured it out: /var/tmp directory was missing (it was > there > previously, but was mistakenly deleted). > > It seems that RPM creates the temporary scripts for sh to run under > /var/tmp. > Yes it does. > Can it be changed to use /tmp ? > Don't know, but if you look in lib/psm.c at the runScript(s?) function, in there it makes the call to create the tmp file for the scriptlet. That is an internal function, and you can find it somewhere in the source. Looking at that function should answer your question (I'm a bit busy on non-rpm stuff, otherwise I would look for you). That said, it sure would have been nice if rpm would have generated a more meaningfull error (or any for that matter). You might consider creating a bugzilla report for that purpose. Cheers...james > /Danny > > -----Original Message----- > From: rpm-list-bounces@xxxxxxxxxx [mailto:rpm-list-bounces@xxxxxxxxxx]On > Behalf Of Paul Nasrat > Sent: Monday, May 16, 2005 5:14 PM > To: RPM Package Manager > Subject: Re: RPM chokes when "running preinstall script" > > On Mon, 2005-05-16 at 16:16 +0300, Aizer Danny-BDA023 wrote: > > I'm trying to install an rpm package on a new embedded system. > > The RPM db is empty, and the rpm version is 4.0 (for Monta Vista Linux > 2.4.18_mvl30). > > > > The installation fails without any message/error: > > > > # rpm -qa > > # rpm -i --nodeps /sm/bin/installer-1.00-20.rpm > > Why are you installing with nodeps? > > > Still not installed, so trying with --noscripts: > > > > # rpm -i --nodeps --noscripts /sm/bin/installer-1.00-20.rpm > > # rpm -qa > > installer-1.00-20 > > # > > > Installed... but without running my scripts (pre and post install > scripts exist, they only do an echo of some string)... > > Withouth knowledge of the package, install system and the particular > scripts we can't really comment > > rpm --scripts -qp /sm/bin/installer-1.00-20.rpm > rpm -qpR /sm/bin/installer-1.00-20.rpm > > > Any idea why this could happen? Can't RPM find the shell? Or something > else? > > Does /bin/sh exist? > > Paul > > _______________________________________________ > Rpm-list mailing list > Rpm-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/rpm-list > > _______________________________________________ > Rpm-list mailing list > Rpm-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/rpm-list >