diff --git a/xCAT-server/lib/perl/xCAT/Postage.pm b/xCAT-server/lib/perl/xCAT/Postage.pm index 15a569451..378259b53 100644 --- a/xCAT-server/lib/perl/xCAT/Postage.pm +++ b/xCAT-server/lib/perl/xCAT/Postage.pm @@ -1866,6 +1866,7 @@ sub getPostScripts $result .= "setbootfromdisk\n"; } + #for redhat 7, append "disableconsistentNICrename" to default postscripts #if "net.ifnames=0" is specified in kcmdline/addkcmdline of node or osimage @@ -1876,7 +1877,7 @@ sub getPostScripts my $nrret = $::GLOBAL_TAB_HASH{noderes}{$node}; my $netboot = $nrret->{'netboot'}; - if( ($os =~ "rhel7*") || ($os =~ "rhels7*") ) + if( (($os =~ "rhel7*") || ($os =~ "rhels7*")) && ($nodesetstate) && ($nodesetstate eq "install") ) { my $nodecfg; if($netboot eq "grub2")