add nonodestatus to kcmdline for both nfs-based statelite, ramdisk based statelite and stateless
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16686 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
9ecfc50b91
commit
f890d03ef3
@ -1319,9 +1319,7 @@ sub mknetboot
|
||||
$kcmdline = "imgurl=http://$imgsrv/$rootimgdir/rootimg-statelite.gz STATEMNT=";
|
||||
}
|
||||
|
||||
if(($nodestatus eq "n") or ($nodestatus eq "N") or ($nodestatus eq "0")){
|
||||
$kcmdline .= " nonodestatus ";
|
||||
}
|
||||
|
||||
|
||||
|
||||
# add support for subVars in the value of "statemnt"
|
||||
@ -1373,6 +1371,10 @@ sub mknetboot
|
||||
$kcmdline .= "XCAT=$xcatmaster:$xcatdport ";
|
||||
}
|
||||
|
||||
# if site.nodestatus='n', add "nonodestatus" to kcmdline to inform the node not to update nodestatus during provision
|
||||
if(($nodestatus eq "n") or ($nodestatus eq "N") or ($nodestatus eq "0")){
|
||||
$kcmdline .= " nonodestatus ";
|
||||
}
|
||||
# add one parameter: ifname=<eth0>:<mac address>
|
||||
# which is used for dracut
|
||||
# the redhat5.x os will ignore it
|
||||
|
Loading…
x
Reference in New Issue
Block a user