Add check for diskless if -r provided.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4428 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
4dbf2cf7fd
commit
729ffb178d
@ -1219,6 +1219,16 @@ sub mknimimage
|
||||
return 0;
|
||||
}
|
||||
|
||||
if ($::SHAREDROOT) {
|
||||
if ($::NIMTYPE ne 'diskless') {
|
||||
my $rsp;
|
||||
push @{$rsp->{data}}, "The \'-r\' option is only valid for diskless images.\n";
|
||||
xCAT::MsgUtils->message("E", $rsp, $callback);
|
||||
&mknimimage_usage($callback);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
# get this systems name as known by xCAT management node
|
||||
my $Sname = &myxCATname();
|
||||
chomp $Sname;
|
||||
|
Loading…
x
Reference in New Issue
Block a user