From d5b67a67a2eee58dc656ec0c428bf7c4eb52a67b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 11 May 2015 16:49:27 +0200 Subject: [PATCH] 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 --- dispvm/qubes-prepare-saved-domain.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dispvm/qubes-prepare-saved-domain.sh b/dispvm/qubes-prepare-saved-domain.sh index 6783a482..a50da278 100755 --- a/dispvm/qubes-prepare-saved-domain.sh +++ b/dispvm/qubes-prepare-saved-domain.sh @@ -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