core dom0 rpm: restart qubes_netvm only when using netvm in Dom0

If we use a separate netvm, then core update in Dom0 doesn't really change the networking,
worse, if we restarted netvm it would get another XID, which would break our DispVM savefile.

One day we should fix it!
Tento commit je obsažen v:
Joanna Rutkowska 2010-10-04 17:51:01 +02:00
rodič 0ae51cfa73
revize 28e1f962e5

Zobrazit soubor

@ -173,7 +173,11 @@ for i in /usr/share/qubes/icons/*.png ; do
done done
/etc/init.d/qubes_core start /etc/init.d/qubes_core start
/etc/init.d/qubes_netvm start
NETVM=$(qvm-get-default-netvm)
if [ $NETVM = "dom0" ] ; then
/etc/init.d/qubes_netvm start
fi
%clean %clean
@ -186,7 +190,11 @@ fi
if [ "$1" -gt 1 ] ; then if [ "$1" -gt 1 ] ; then
# upgrading already installed package... # upgrading already installed package...
NETVM=$(qvm-get-default-netvm)
if [ $NETVM = "dom0" ] ; then
/etc/init.d/qubes_netvm stop /etc/init.d/qubes_netvm stop
fi
/etc/init.d/qubes_core stop /etc/init.d/qubes_core stop
fi fi