Fix "dispvm: sanitize used memory info received from VM"
There should be no -q option - we actually want the result. Fixes qubesos/qubes-issues#994
This commit is contained in:
parent
b159f544d3
commit
d5b67a67a2
@ -42,7 +42,7 @@ qubesdb-read -d $1 /qubes-gateway | \
|
||||
kill `cat /var/run/qubes/guid-running.$ID`
|
||||
# FIXME: get connection URI from core scripts
|
||||
virsh -c xen:/// detach-disk $1 xvdb
|
||||
MEM=$(qubesdb-read -d $1 /qubes-used-mem | grep -q '^[0-9]\+$' | head -n 1)
|
||||
MEM=$(qubesdb-read -d $1 /qubes-used-mem | grep '^[0-9]\+$' | head -n 1)
|
||||
echo "DVM boot complete, memory used=$MEM. Saving image..." >&2
|
||||
QMEMMAN_STOP=/var/run/qubes/do-not-membalance
|
||||
touch $QMEMMAN_STOP
|
||||
|
Loading…
Reference in New Issue
Block a user