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:
Marek Marczykowski 2012-01-16 03:26:39 +01:00
父節點 cfd22f8887
當前提交 cd64f8287c
共有 2 個文件被更改,包括 2 次插入7 次删除

查看文件

@ -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