dom0/init: Do not exclude NetVM at shutdown (#396)
In fact all VMs can be stopped at the same time, no need to keep order. Also use qvm-shutdown to do it.
This commit is contained in:
parent
cfd22f8887
commit
cd64f8287c
@ -61,11 +61,7 @@ start()
|
||||
stop()
|
||||
{
|
||||
echo -n $"Shutting down all Qubes VMs:"
|
||||
NETVM=$(qvm-get-default-netvm)
|
||||
if [ "X"$NETVM = "X" ] ; then
|
||||
NETVM="dom0"
|
||||
fi
|
||||
qvm-run -q --shutdown --all --wait --exclude $NETVM
|
||||
qvm-shutdown -q --all --wait
|
||||
rm -f /var/lock/subsys/qubes_core
|
||||
killall meminfo-writer
|
||||
killall qmemman_daemon.py
|
||||
|
@ -58,10 +58,9 @@ stop()
|
||||
echo -n $"Doing nothing:"
|
||||
|
||||
else
|
||||
|
||||
echo -n $"Stopping NetVMs:"
|
||||
for VM in `get_running_netvms`; do
|
||||
qvm-run -q --force --shutdown --wait $VM
|
||||
qvm-shutdown -q --force --wait $VM
|
||||
done
|
||||
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user