%pre scriptlets fail; trying to install rpms to a different root directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


List members,

I am newer at using rpm as a package manager, and need some direction as
to where to go to fix the problem.

I've spent the last week downloading source files and packaging them up
into RPMs so that I can create a basic Linux system.  Now that I have
all the packages I want, I add a second hard drive to my development
machine, format it, and mount it in /mnt/new.  The next thing I want to
do is install the rpms to /mnt/new -- so I create /mnt/new/var/lib/rpm,
and run: rpm --initdb --root=/mnt/new/var/lib/rpm and see that there are
new files in my /mnt/new/var/lib/rpm.

The way I'm installing rpms to my /mnt/new/ directory is this:

rpm -ivh --nodeps --root=/mnt/new dummy-0.0.1-1ns.i686.rpm

When I install any RPM that has a %pre tag in it, I get this message:

Preparing...		####################################### [100%]
error: %pre(dummy-0.0.1-1ns.i686) scriptlet failed, exit status 225
error:   install: %pre scriptlet failed (2), skipping dummy-0.0.1-1ns

However, if I install the same RPM on my base machine, it works just
fine, as follows:

root@myhost # rpm -ivh --nodeps dummy-0.0.1-1ns.i686.rpm
Preparing...            ######################################## [100%]
   1:dummy              ######################################## [100%]

Does it have to do with my /mnt/new?  Just to see if it is failing
because my /mnt/new doesn't have bash installed, I copied by /bin/bash
to /mnt/new/bin/bash and also made the symlink /mnt/new/bin/sh to point
to /mnt/new/bin/bash -- that didn't seem to solve the problem.

Sincerely,

Daniel Purcell
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCOvowA3S6iBF0EygRApZSAKCHJT56oT2m67/YRRYpWdUuD76AiwCfUmcK
IIuMI74UIBaXHKbvAYG8wtk=
=BdQz
-----END PGP SIGNATURE-----

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux