2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-29 15:51:18 +00:00

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:
nott
2009-10-20 16:48:18 +00:00
parent 4dbf2cf7fd
commit 729ffb178d

View File

@@ -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;