Revert "dom0/spec: fix HVM settings on upgrade"
This reverts commit 4b44f977db
.
This doesn't actually fix the problem, because in %post new qubes.py is already
installed and maxmem=memory is no longer true.
This commit is contained in:
parent
4b44f977db
commit
c5ae049e3b
@ -291,25 +291,6 @@ fi
|
|||||||
mkdir -p /var/lib/qubes/removed-udev-scripts
|
mkdir -p /var/lib/qubes/removed-udev-scripts
|
||||||
mv -f /lib/udev/rules.d/69-xorg-vmmouse.rules /var/lib/qubes/removed-udev-scripts/ 2> /dev/null || :
|
mv -f /lib/udev/rules.d/69-xorg-vmmouse.rules /var/lib/qubes/removed-udev-scripts/ 2> /dev/null || :
|
||||||
|
|
||||||
if [ "$1" -gt 1 ] ; then
|
|
||||||
# upgrade
|
|
||||||
|
|
||||||
# Fix HVM setting - meminfo-writer was erroneously enabled by default
|
|
||||||
cat << __EOF__ | python
|
|
||||||
from qubes.qubes import QubesVmCollection
|
|
||||||
qc = QubesVmCollection ()
|
|
||||||
qc.lock_db_for_writing ()
|
|
||||||
qc.load ()
|
|
||||||
for vm in qc.values():
|
|
||||||
if vm.type == "HVM" and vm.memory == vm.maxmem:
|
|
||||||
vm.services['meminfo-writer'] = False
|
|
||||||
|
|
||||||
qc.save()
|
|
||||||
qc.unlock_db ()
|
|
||||||
exit()
|
|
||||||
__EOF__
|
|
||||||
|
|
||||||
fi
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
rm -f %{name}-%{version}
|
rm -f %{name}-%{version}
|
||||||
|
Loading…
Reference in New Issue
Block a user