Flush dnf configuration on updateVM before starting dom0 update

This commit is contained in:
unman 2017-04-20 14:41:19 +01:00
parent 9ea58a2ce2
commit fa72d66d5d
No known key found for this signature in database
GPG Key ID: FDD1B8244731B36C

View File

@ -163,7 +163,7 @@ echo "Using $UPDATEVM as UpdateVM to download updates for Dom0; this may take so
# Start VM if not running already # Start VM if not running already
qvm-run $QVMRUN_OPTS -a $UPDATEVM true || exit 1 qvm-run $QVMRUN_OPTS -a $UPDATEVM true || exit 1
qvm-run $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 | \ tar c /var/lib/rpm /etc/yum.repos.d /etc/yum.conf 2>/dev/null | \
qvm-run -p "$UPDATEVM" 'LC_MESSAGES=C tar x -C /var/lib/qubes/dom0-updates 2>&1 | grep -v -E "s in the future"' qvm-run -p "$UPDATEVM" 'LC_MESSAGES=C tar x -C /var/lib/qubes/dom0-updates 2>&1 | grep -v -E "s in the future"'