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

Re: Use of rpm --root to build a cross root filesystem: pre/post/preun/postun scripts problem



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.

-- 
--    Jos Vos <jos xos nl>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204


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