Hybrid NFS support added.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1188 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
3c27aa56cd
commit
49984f20b1
@ -154,8 +154,12 @@ sub mknetboot {
|
||||
if (-r "/$installroot/netboot/$osver/$arch/$profile/rootimg.sfs") {
|
||||
$suffix = 'sfs';
|
||||
}
|
||||
if (-r "/$installroot/netboot/$osver/$arch/$profile/rootimg.nfs") {
|
||||
$suffix = 'nfs';
|
||||
}
|
||||
unless ((-r "/$installroot/netboot/$osver/$arch/$profile/rootimg.gz" or
|
||||
-r "/$installroot/netboot/$osver/$arch/$profile/rootimg.sfs") and
|
||||
-r "/$installroot/netboot/$osver/$arch/$profile/rootimg.sfs" or
|
||||
-r "/$installroot/netboot/$osver/$arch/$profile/rootimg.nfs") and
|
||||
-r "/$installroot/netboot/$osver/$arch/$profile/kernel" and
|
||||
-r "/$installroot/netboot/$osver/$arch/$profile/initrd.gz") {
|
||||
$callback->({error=>["No packed image for platform $osver, architecture $arch, and profile $profile, please run packimage (i.e. packimage -o $osver -p $profile -a $arch"],errorcode=>[1]});
|
||||
@ -188,7 +192,13 @@ sub mknetboot {
|
||||
$callback->({error=>["Unable to determine or reasonably guess the image server for $node"],errorcode=>[1]});
|
||||
next;
|
||||
}
|
||||
my $kcmdline = "imgurl=http://$imgsrv/install/netboot/$osver/$arch/$profile/rootimg.$suffix ";
|
||||
my $kcmdline;
|
||||
if($suffix eq "nfs") {
|
||||
$kcmdline = "imgurl=nfs://$imgsrv/install/netboot/$osver/$arch/$profile/rootimg ";
|
||||
}
|
||||
else {
|
||||
$kcmdline = "imgurl=http://$imgsrv/install/netboot/$osver/$arch/$profile/rootimg.$suffix ";
|
||||
}
|
||||
if (defined $ent->{serialport}) {
|
||||
my $sent = $hmtab->getNodeAttribs($node,['serialspeed','serialflow']);
|
||||
unless ($sent->{serialspeed}) {
|
||||
|
Loading…
Reference in New Issue
Block a user