On Mon, Aug 03, Hans-Peter Jansen wrote:
Am Montag, 3. August 2020, 10:46:50 CEST schrieb Jan Engelhardt:
Isn't this the historic problem of rpm having been unable to deal with from-symlink and to-symlink changes.. (after all, it is trying to update/replace it with a drwx /home)
..along with the from-dir to-file and vice versa.
Considering, that we all get bitten by it from time to time, question is, why rpm refrains from solving this annoyance?
Because it is not solveable. Assume you have: /usr/lib/app/<scripts> Now you want to move that to /usr/libexec/app and replace /usr/lib/app with an symlink. What do you do with the content of /usr/lib/app during that time? Especially, if this is coming from different packages, some files got removed in the new package, ...
Another question is, if packages should touch /home at all?
Either we create /home with correct permissions in filesystem.rpm, or we trust that all tools (useradd, adduser, systemd-sysusers, ...) do create /home correct. If they create /home at all and don't fail to create a user, since /home is missing. Somebody needs to initialy create /home with the correct permissions, and on a RPM based distribution this is RPM. So yes, one package needs to contain and such touch /home. Thorsten -- Thorsten Kukuk, Distinguished Engineer, Senior Architect SLES & MicroOS SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany Managing Director: Felix Imendoerffer (HRB 36809, AG Nürnberg) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org