From 9b515d41d6c29446579dd7a97da599a477631d51 Mon Sep 17 00:00:00 2001 From: Joanna Rutkowska Date: Sat, 30 Jul 2011 11:15:47 +0200 Subject: [PATCH] vm: Blacklist unnecessary packge updates --- rpm_spec/core-commonvm.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rpm_spec/core-commonvm.spec b/rpm_spec/core-commonvm.spec index ad7b300..791ea7b 100644 --- a/rpm_spec/core-commonvm.spec +++ b/rpm_spec/core-commonvm.spec @@ -214,6 +214,9 @@ mkdir -p /rw #mv /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0.orig #grep -v HWADDR /etc/sysconfig/network-scripts/ifcfg-eth0.orig > /etc/sysconfig/network-scripts/ifcfg-eth0 +# Prevent unnecessary updates in VMs: +echo 'exclude = kernel, xorg-*' >> yum.conf + %preun if [ "$1" = 0 ] ; then # no more packages left