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