Bug 1121832

Summary: config files not delared in spec file
Product: [Fedora] Fedora Reporter: Richard Keech <richard.keech>
Component: owfsAssignee: Tomasz Torcz <tomek>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: tomek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-22 05:32:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Richard Keech 2014-07-22 03:08:33 UTC
Description of problem:

When the owfs-fs package is updated, changes made to /usr/lib/systemd/system/owfs.service are lost.  This is because the config files are not appropriately declared in the spec file.


Expected results:

Modified config files are preserved as per normal RPM behaviour.


Additional info:

Suggest to add following line, or similar, to %files section of spec file:

%config /usr/lib/systemd/system/owfs.service

Comment 1 Tomasz Torcz 2014-07-22 05:32:02 UTC
Files in /usr are not config files, and they are supposed to be overwritten on upgrade. If you need to modify unit file, copy it to /etc/systemd/system or use snippets mechanism.