Bug 5139 - Zero-length files in /etc/sysconfig should be marked as %config(noreplace)
Summary: Zero-length files in /etc/sysconfig should be marked as %config(noreplace)
Status: CLOSED NOTABUG
Alias: None
Product: Sisyphus
Classification: Development
Component: startup (show other bugs)
Version: unstable
Hardware: all Linux
: P2 minor
Assignee: Alexey Gladkov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-02 05:18 MSD by evseev
Modified: 2005-09-12 15:25 MSD (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description evseev 2004-09-02 05:18:10 MSD
Files like /etc/syconfig/keyboard, i18n, ... are always generated by installer 
and edited later by hands. They's empty instances are included to startup.rpm 
for 'rpm -qf' only, I think.

But when we upgrade startup.rpm by 'rpm -U', empty files are created as *.
rpmnew. This is absolutely unneeded and even harmful.

So, such files should be declared in %files section of specfile as %
config(noreplace).
Steps to Reproduce:
1. rpm -U startup*.rpm
2. find /etc -name "*.rpmnew" -empty
Actual Results:  
/etc/sysconfig/i18n.rpmnew
/etc/sysconfig/keyboard.rpmnew
/etc/rpm/macros.rpmnew


Expected Results:  
Nothing to output
Comment 1 Dmitry V. Levin 2004-09-02 13:19:36 MSD
These files are already marked as %config(noreplace).