Hi, On Tue, Jun 11, Olaf Hering wrote:
Am Mon, 3 Jun 2019 13:50:55 +0200 schrieb Thorsten Kukuk
: - 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.
This depends on case by case. E.g.: if your package uses %config today, the result of the move will be identical to an update of that config file: RPM will create a *.rpmsave file and the admin has to merge his changes manual. In this case, I wouldn't bother about the problem at all. Thorsten -- Thorsten Kukuk, Distinguished Engineer, Senior Architect SLES & MicroOS SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany GF: Felix Imendoerffer, Mary Higgins, Sri Rasiah, HRB 21284 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org