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:
parent
11e9e89341
commit
ed146390d6
@ -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
|
||||
|
||||
%postun
|
||||
if [ $1 -eq 0 ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user