dom0-updates: use qvm-run, not qrexec-client directly
This commit is contained in:
parent
0be6f8431f
commit
793dec27ff
@ -75,12 +75,12 @@ fi
|
||||
# becuase otherwise yum might complain about future timestamps
|
||||
qvm-sync-clock
|
||||
|
||||
echo "Checking for dom0 updates" >&2
|
||||
echo "Using $UPDATEVM as updatevm to download updates for Dom0, this may take some of time..." >&2
|
||||
|
||||
# Start VM if not running already
|
||||
qvm-run $QVMRUN_OPTS -a $UPDATEVM true || exit 1
|
||||
|
||||
/usr/lib/qubes/qrexec-client -d "$UPDATEVM" -l 'tar c /var/lib/rpm /etc/yum.repos.d /etc/yum.conf 2>/dev/null' 'user:tar x -C /var/lib/qubes/dom0-updates' 2> /dev/null
|
||||
tar c /var/lib/rpm /etc/yum.repos.d /etc/yum.conf 2>/dev/null | qvm-run -p "$UPDATEVM" tar x -C /var/lib/qubes/dom0-updates 2> /dev/null
|
||||
|
||||
qvm-run $QVMRUN_OPTS --pass-io $UPDATEVM "/usr/lib/qubes/qubes-download-dom0-updates.sh --doit --nogui $ALL_OPTS"
|
||||
RETCODE=$?
|
||||
|
Loading…
Reference in New Issue
Block a user