But supposing I want to use --root to be able to install two independent
installations of an RPM? I think that might be a valid use of --root. I.e.
I'm not going to run the installed rpm in a chroot environment, I just
want two independent installations of the same version of the software.
So my question is, is it possible to access the arg to --root
in the %post script of my rpm?
Jos Vos wrote:
On Thu, Mar 09, 2006 at 03:50:03PM +0100, Patrick Monnerat wrote:
I use "rpm --root ..." to build a cross root filesystem. Some of the
packages I install start, restart or stop a daemon from their
install/erase scripts. [...]
Packages doing that are wrong, IMHO. Packages may do a "condrestart"
(restarting them *only* if they are already running), but never start
(or stop) a service. In fact, the system install itself is done in
another root.
So, IMHO packages should never *need* to check this, they just should
work fine in a chroot environment or they should be fixed.
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list