vm: Blacklist unnecessary packge updates

This commit is contained in:
Joanna Rutkowska 2011-07-30 11:15:47 +02:00
parent 03e7cb98d7
commit 9b515d41d6

View File

@ -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