rpm loses configs!

Jeffrey Johnson n3npq at me.com
Mon May 4 16:04:22 CEST 2015


On May 4, 2015, at 10:01 AM, Elan Ruusamäe wrote:

> On 04.05.2015 16:42, Jeffrey Johnson wrote:
>> On May 4, 2015, at 7:37 AM, Elan Ruusamäe wrote:
>> ...
>>> warning: /etc/ssh/sshd_config saved as /etc/ssh/sshd_config.rpmsave
>>> warning: /etc/pam.d/sshd saved as /etc/pam.d/sshd.rpmsave
>> ...
>>>   5:openssh-server         warning: /etc/ssh/sshd_config created as /etc/ssh/sshd_config.rpmnew
>> ...
>> 
>> Um no.
>> 
>> rpm renames modified configs with .rpmsave and does not clobber modified configs
>> by installing with .rpmnew. There is no "loses" there", all configuration was saved.
>> 
>> However the erase should have followed the install, you have an ordering
>> issue for some reason.
> old and new ssh packages have same file as %config.

And you also need to take into account the file on disk which is likely modified.

> yet as result of that transaction:
> 
> 1. warning: /etc/ssh/sshd_config saved as /etc/ssh/sshd_config.rpmsave
> 2. warning: /etc/ssh/sshd_config created as /etc/ssh/sshd_config.rpmnew
> 
> resulting /etc/ssh/sshd_config not present at all!
> 

But renaming != lossage. The %config behavior is exactly as expected,
the ordering is the real problem.

> haven't seen such issue for quite long time!
> 

Nor has anything changed in an even longer time.

73 de Jeff

> -- 
> glen
> 
> _______________________________________________
> pld-devel-en mailing list
> pld-devel-en at lists.pld-linux.org
> http://lists.pld-linux.org/mailman/listinfo/pld-devel-en



More information about the pld-devel-en mailing list