On Tue, Jun 11, 2019 at 11:44 AM Thorsten Kukuk <kukuk(a)suse.de> wrote:
On Tue, Jun 11, Neal Gompa wrote:
On Tue, Jun 11, 2019 at 7:38 AM Thorsten Kukuk
<kukuk(a)suse.de> wrote:
But a
real problem with update-alternatives is /var
There, we really mixed up everything and this does currently not work
with transactional-updates (not even really with snapshots and rollback).
I assume you're referring to /var/lib/alternatives?
Yes, that's what I mean.
A file is modified every time an admin calls update-alternatives to
change defaults and at install time.
If openSUSE
switched to the version of alternatives shipped in chkconfig[1], we
could probably make adjustments to the implementation to deal with
this problem. I don't see the Debian guys wanting to change this in
their implementation, because they don't care about this problem.
I proposed already to switch some time ago, but the package maintainer
refused this ...
Well, I've wanted to swap out chkconfig and alternatives in SUSE
distributions for this implementation for a while, but I've never had
sufficient motivation to do it...
It probably
makes sense to move it to /usr/lib/sysimage/alternatives,
actually. I could easily package this up and make it a drop-in
replacement for what we have now in SUSE distributions.
Das the chkconfig variant modifies the files during every call, too?
I need to double check to be sure, but I think it only updates
/var/lib/alternatives for an alternative when alternatives is being
told to adjust alternatives info (such as adding and removing
alternatives).
--
真実はいつも一つ!/ Always, there's only one truth!
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe(a)opensuse.org
To contact the owner, e-mail: opensuse-factory+owner(a)opensuse.org