Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 623095 Details for
Bug 850285
Introduce new systemd-rpm macros in qemu spec file
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
specfile patch to use the new macros
qemu-systemd-macro.patch (text/plain), 2.27 KB, created by
Cole Robinson
on 2012-10-07 19:16:26 UTC
(
hide
)
Description:
specfile patch to use the new macros
Filename:
MIME Type:
Creator:
Cole Robinson
Created:
2012-10-07 19:16:26 UTC
Size:
2.27 KB
patch
obsolete
>diff --git a/qemu.spec b/qemu.spec >index 224a55c..2afe68f 100644 >--- a/qemu.spec >+++ b/qemu.spec >@@ -350,24 +350,13 @@ with the host over a virtio-serial channel named "org.qemu.guest_agent.0" > This package does not need to be installed on the host OS. > > %post guest-agent >-if [ $1 -eq 1 ] ; then >- # Initial installation. >- /bin/systemctl daemon-reload >/dev/null 2>&1 || : >-fi >+%systemd_post qemu-guest-agent.service > > %preun guest-agent >-if [ $1 -eq 0 ] ; then >- # Package removal, not upgrade. >- /bin/systemctl stop qemu-guest-agent.service > /dev/null 2>&1 || : >-fi >+%systemd_preun qemu-guest-agent.service > > %postun guest-agent >-/bin/systemctl daemon-reload >/dev/null 2>&1 || : >-if [ $1 -ge 1 ] ; then >- # Package upgrade, not uninstall. >- /bin/systemctl try-restart qemu-guest-agent.service >/dev/null 2>&1 || : >-fi >- >+%systemd_postun_with_restart qemu-guest-agent.service > > > %package user >@@ -852,11 +841,8 @@ sh %{_sysconfdir}/sysconfig/modules/kvm.modules || : > %endif > > %post common >-if [ $1 -eq 1 ] ; then >- # Initial installation >- /bin/systemctl enable ksm.service >/dev/null 2>&1 || : >- /bin/systemctl enable ksmtuned.service >/dev/null 2>&1 || : >-fi >+%systemd_post ksm.service >+%systemd_post ksmtuned.service > > getent group kvm >/dev/null || groupadd -g 36 -r kvm > getent group qemu >/dev/null || groupadd -g 107 -r qemu >@@ -865,22 +851,12 @@ getent passwd qemu >/dev/null || \ > -c "qemu user" qemu > > %preun common >-if [ $1 -eq 0 ] ; then >- # Package removal, not upgrade >- /bin/systemctl --no-reload disable ksmtuned.service > /dev/null 2>&1 || : >- /bin/systemctl --no-reload disable ksm.service > /dev/null 2>&1 || : >- /bin/systemctl stop ksmtuned.service > /dev/null 2>&1 || : >- /bin/systemctl stop ksm.service > /dev/null 2>&1 || : >-fi >+%systemd_preun ksm.service >+%systemd_preun ksmtuned.service > > %postun common >-/bin/systemctl daemon-reload >/dev/null 2>&1 || : >-if [ $1 -ge 1 ] ; then >- # Package upgrade, not uninstall >- /bin/systemctl try-restart ksmtuned.service >/dev/null 2>&1 || : >- /bin/systemctl try-restart ksm.service >/dev/null 2>&1 || : >-fi >- >+%systemd_postun_with_restart ksm.service >+%systemd_postun_with_restart ksmtuned.service > > %post user > /bin/systemctl --system try-restart systemd-binfmt.service &>/dev/null || :
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 850285
: 623095