dom0/qvm-dom0-update: do not use GUI when called from cmdline
This commit is contained in:
parent
2bbdb93594
commit
2107191ca9
@ -26,7 +26,7 @@ echo "Checking for dom0 updates"
|
||||
# Start VM if not running already
|
||||
qvm-run -a $UPDATEVM true || exit 1
|
||||
/usr/lib/qubes/sync_rpmdb_updatevm.sh || exit 1
|
||||
qvm-run --pass_io $UPDATEVM "/usr/lib/qubes/qubes_download_dom0_updates.sh $*" || exit 1
|
||||
qvm-run --pass_io $UPDATEVM "/usr/lib/qubes/qubes_download_dom0_updates.sh --doit --nogui $*" || exit 1
|
||||
# Wait for download completed
|
||||
while pidof -x qubes-receive-updates >/dev/null; do sleep 0.5; done
|
||||
if [ $# -gt 0 ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user