On Thu, Jun 25, 2009 at 05:33:52PM -0400, Michael DeHaan wrote to To cobbler development
list:
I've been told it's a bad idea for RPM scriptlets to call RPM
in post.
Bad idea? It is impossible due to locking of the RPM database.
Calling condrestart on cobbler does this, certaintly.
? There is nothing in there that I see that calls RPM (just check
1.6.6)
I am confused.
As a result, I'm thinking about /not/ calling condrestart in
%post... so
effectively after an upgrade, you are still running the old cobbler with
the new CLI, and we'll have to detect that problem
and work around it... things looking for version data should of course
use /var/lib/cobbler/version first ... though perhaps we can avoid
calling RPM altogether where we do today ... thoughts?
Bad juju.
don
(Yes, I know we don't call RPM on non-RPM platforms, this much is
obvious... and we don't do so today)
--Michael
_______________________________________________
cobbler-devel mailing list
cobbler-devel(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler-devel --
.........................................................
. Don Harper, RHCE . All that we are is the result .
. duck(a)duckland.org . of what we have thought. - .
.
www.donharper.org . Buddha .
.........................................................