From c5803483b46fe4afb211150d137aa67c7cddab2a Mon Sep 17 00:00:00 2001 From: Joanna Rutkowska Date: Fri, 18 Jun 2010 01:53:48 +0200 Subject: [PATCH] appvm spec: do not attempt to remove HWADDR from ifcfg-eth0 Again, this is important when installing on an image created using yum --instalroot, in which case there will be no ifcfg file. Besides, seems like we don't need it anymore, do we? --- rpm_spec/core-appvm.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rpm_spec/core-appvm.spec b/rpm_spec/core-appvm.spec index 5059326..75ce853 100644 --- a/rpm_spec/core-appvm.spec +++ b/rpm_spec/core-appvm.spec @@ -153,9 +153,9 @@ do done mkdir -p /rw #rm -f /etc/mtab -echo "--> Removing HWADDR setting from /etc/sysconfig/network-scripts/ifcfg-eth0" -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 +#echo "--> Removing HWADDR setting from /etc/sysconfig/network-scripts/ifcfg-eth0" +#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 %preun if [ "$1" = 0 ] ; then