Am Mon, 3 Jun 2019 13:50:55 +0200
schrieb Thorsten Kukuk <kukuk(a)suse.de>de>:
- long term: /etc/ only contains admin created
files, a Linux
Distribution does not install there anything
Is there already documentation how a pkg should deal with files in /etc
that will no longer be controlled by rpm? I can imagine the corner case
that has to be handled is the presence of /etc/file, /etc/file.rpmnew
and /etc/file.rpmsave at the same time. Somehow /etc/file has to be
preserved in %pre, and some %post has to decide if it was already changed
by the admin. If it was already admin controlled, it has to be preserved.
Otherwise it could be removed.
There are plenty of empty configuration files which exist only because
upstream installs them in /etc and the packagers did not know any better
and included them in our pkgs.