Bug 850040

Summary: Introduce new systemd-rpm macros in autofs spec file
Product: [Fedora] Fedora Reporter: Lukáš Nykrýn <lnykryn>
Component: autofsAssignee: Ian Kent <ikent>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 18CC: ikent, vpavlin
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: autofs-5.0.7-2.fc18 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-17 23:11:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 850016    

Description Lukáš Nykrýn 2012-08-21 13:26:10 UTC
Fedora 18 changes the way how to work with services in spec files. It introduces new macros - %systemd_post, %systemd_preun and %systemd_postun; which replace scriptlets from Fedora 17 and older (see https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Systemd, https://bugzilla.redhat.com/show_bug.cgi?id=850016).

Comment 1 Ian Kent 2012-08-27 10:04:14 UTC
So what should be done in this case in %post, since autofs is
permitted to be enable by default?

AFAICS the predefined macro doesn't do this.

Comment 2 Václav Pavlín 2012-08-27 10:58:23 UTC
Thank's for the information. Simply use the %systemd_post, autofs will be added to the presets as enabled.

Comment 3 Fedora Update System 2012-08-27 11:24:59 UTC
autofs-5.0.7-2.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/autofs-5.0.7-2.fc18

Comment 4 Fedora Update System 2012-08-27 16:29:47 UTC
Package autofs-5.0.7-2.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing autofs-5.0.7-2.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-12752/autofs-5.0.7-2.fc18
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2012-09-17 23:11:04 UTC
autofs-5.0.7-2.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.