From 715b7745dcf4f8c33ed0d03094ef86dc6dfc4e28 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Wed, 14 Sep 2011 00:35:49 +0200 Subject: [PATCH] dom+vm: Copy dom0 yum.conf to UpdateVM At least to use dom0 'exclude' options, not VM one. Especially to not exlude kernel and xorg updates... --- common/qubes_check_for_updates.sh | 2 +- common/qubes_download_dom0_updates.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/qubes_check_for_updates.sh b/common/qubes_check_for_updates.sh index 038637a..abb1fd1 100755 --- a/common/qubes_check_for_updates.sh +++ b/common/qubes_check_for_updates.sh @@ -8,7 +8,7 @@ if ! [ -d "$DOM0_UPDATES_DIR" ]; then fi mkdir -p $DOM0_UPDATES_DIR/etc -cp /etc/yum.conf $DOM0_UPDATES_DIR/etc/ +sed -i '/^reposdir\s*=/d' $DOM0_UPDATES_DIR/etc/yum.conf # check also for template updates echo "Checking for template updates..." >&2 diff --git a/common/qubes_download_dom0_updates.sh b/common/qubes_download_dom0_updates.sh index 132a161..eb2b229 100755 --- a/common/qubes_download_dom0_updates.sh +++ b/common/qubes_download_dom0_updates.sh @@ -34,7 +34,7 @@ if ! [ -d "$DOM0_UPDATES_DIR" ]; then fi mkdir -p $DOM0_UPDATES_DIR/etc -cp /etc/yum.conf $DOM0_UPDATES_DIR/etc/ +sed -i '/^reposdir\s*=/d' $DOM0_UPDATES_DIR/etc/yum.conf if [ "x$CLEAN" = "1" ]; then yum $OPTS clean all