Merge remote-tracking branch 'qubesos/pr/32'

* qubesos/pr/32:
  qubes-dom0-update: Simplify
This commit is contained in:
Marek Marczykowski-Górecki 2017-12-05 23:06:12 +01:00
commit 7902979470
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -157,8 +157,7 @@ rm -f /var/lib/qubes/updates/errors
echo "Using $UPDATEVM as UpdateVM to download updates for Dom0; this may take some time..." >&2
# Start VM if not running already
qvm-start --skip-if-running $UPDATEVM
# qvm-run by default auto-starts the VM if not running
qvm-run --nogui -q $UPDATEVM 'rm -rf /var/lib/qubes/dom0-updates/etc' || exit 1
tar c /var/lib/rpm /etc/yum.repos.d /etc/yum.conf 2>/dev/null | \
qvm-run --nogui --pass-io "$UPDATEVM" 'LC_MESSAGES=C tar x -C /var/lib/qubes/dom0-updates 2>&1 | grep -v -E "s in the future"'