From e978b4fe84ec9153a4d8c158c9a4cc655d9b6443 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Wed, 29 Nov 2017 00:39:08 +0100 Subject: [PATCH] fix /var/log/qga-fsfreeze-hook.log --- qemu.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qemu.spec b/qemu.spec index 48c5bc3..1960f93 100644 --- a/qemu.spec +++ b/qemu.spec @@ -1155,7 +1155,8 @@ install -m 0644 %{_sourcedir}/99-qemu-guest-agent.rules %{buildroot}%{_udevdir} mkdir -p %{buildroot}%{_sysconfdir}/qemu-ga/fsfreeze-hook.d install -p -m 0755 scripts/qemu-guest-agent/fsfreeze-hook %{buildroot}%{_sysconfdir}/qemu-ga install -p -m 0644 scripts/qemu-guest-agent/fsfreeze-hook.d/*.sample %{buildroot}%{_sysconfdir}/qemu-ga/fsfreeze-hook.d/ -touch %{buildroot}%{_localstatedir}/qga-fsfreeze-hook.log +mkdir -p %{buildroot}%{_localstatedir}/log +touch %{buildroot}%{_localstatedir}/log/qga-fsfreeze-hook.log # Install qemu-pr-helper service install -m 0644 %{_sourcedir}/qemu-pr-helper.service %{buildroot}%{_unitdir} @@ -1509,7 +1510,7 @@ getent passwd qemu >/dev/null || \ %{_udevdir}/99-qemu-guest-agent.rules %config(noreplace) %{_sysconfdir}/sysconfig/qemu-ga %{_sysconfdir}/qemu-ga -%ghost %{_localstatedir}/qga-fsfreeze-hook.log +%ghost %{_localstatedir}/log/qga-fsfreeze-hook.log %files img