rpm: fix meminfo-writer setup during system installation

We have no control over package installation, so it can happen to be
before qubes-release got installed. Simply enable both dom0 and VM
services - they contains relevant start conditions.
This commit is contained in:
Marek Marczykowski-Górecki 2014-03-21 02:47:49 +01:00
parent 11e9e89341
commit ed146390d6

View File

@ -52,13 +52,10 @@ make all
make install DESTDIR=%{buildroot}
%post
if [ -r /etc/qubes-release ]; then
# dom0
/bin/systemctl enable qubes-meminfo-writer-dom0.service > /dev/null 2>&1
else
# VM
/bin/systemctl enable qubes-meminfo-writer.service > /dev/null 2>&1
fi
# dom0
/bin/systemctl enable qubes-meminfo-writer-dom0.service > /dev/null 2>&1
# VM
/bin/systemctl enable qubes-meminfo-writer.service > /dev/null 2>&1
%postun
if [ $1 -eq 0 ]; then