From cf7bc53cc7e52bd7b15af272bde28351f26f5c6c Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Wed, 14 Sep 2011 00:37:07 +0200 Subject: [PATCH] dom0 spec: cleanup old entries from /etc/yum.conf before adding new one Fix whitespaces in sed. --- rpm_spec/core-dom0.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpm_spec/core-dom0.spec b/rpm_spec/core-dom0.spec index 8b0327e8..eba4c817 100644 --- a/rpm_spec/core-dom0.spec +++ b/rpm_spec/core-dom0.spec @@ -196,10 +196,10 @@ sed '/^autoballoon=/d;/^lockfile=/d' -i /etc/xen/xl.conf echo 'autoballoon=0' >> /etc/xen/xl.conf echo 'lockfile="/var/run/qubes/xl-lock"' >> /etc/xen/xl.conf -sed '/^reposdir=/d' -i /etc/yum.conf +sed '/^reposdir\s*=/d' -i /etc/yum.conf echo reposdir=/etc/yum.real.repos.d >> /etc/yum.conf -sed '/^installonlypkgs=/d' -i /etc/yum.conf +sed '/^installonlypkgs\s*=/d' -i /etc/yum.conf echo 'installonlypkgs = kernel, kernel-qubes-vm' >> /etc/yum.conf chkconfig --add qubes_core || echo "WARNING: Cannot add service qubes_core!"