From fa72d66d5dfdeccb14031fb5f1736f554f1394ee Mon Sep 17 00:00:00 2001 From: unman Date: Thu, 20 Apr 2017 14:41:19 +0100 Subject: [PATCH] Flush dnf configuration on updateVM before starting dom0 update --- dom0-updates/qubes-dom0-update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom0-updates/qubes-dom0-update b/dom0-updates/qubes-dom0-update index 02541a4..0910980 100755 --- a/dom0-updates/qubes-dom0-update +++ b/dom0-updates/qubes-dom0-update @@ -163,7 +163,7 @@ echo "Using $UPDATEVM as UpdateVM to download updates for Dom0; this may take so # Start VM if not running already 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 | \ qvm-run -p "$UPDATEVM" 'LC_MESSAGES=C tar x -C /var/lib/qubes/dom0-updates 2>&1 | grep -v -E "s in the future"'