From 793a6c170968867abfd43882b85488c3a0bdb2fb Mon Sep 17 00:00:00 2001 From: daniceexi Date: Wed, 11 Mar 2015 06:04:50 -0400 Subject: [PATCH] defect 4539: for rh7, remove the HWADDR entry from ifcfg-ethx files to skip the deadlock of cfg in ifcfg-ethx and real system --- xCAT-server/share/xcat/install/scripts/post.rhels7 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-server/share/xcat/install/scripts/post.rhels7 b/xCAT-server/share/xcat/install/scripts/post.rhels7 index 5a15719d6..41127db68 100644 --- a/xCAT-server/share/xcat/install/scripts/post.rhels7 +++ b/xCAT-server/share/xcat/install/scripts/post.rhels7 @@ -6,4 +6,8 @@ do if ethtool $nicname|grep -E -i "Link detected.*yes" >/dev/null 2>&1 then sed -i 's/ONBOOT=no/ONBOOT=yes/' $i fi + + #remove the entry 'HWADDR' from ifcfg-ethx, this is used to skip the + #nic name change during the install and first_reboot + sed -i '/HWADDR/d' $i done