add chkFSspace before cpcosi
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8819 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
f825a36124
commit
22faf82624
@ -3676,17 +3676,29 @@ sub mk_spot
|
||||
}
|
||||
|
||||
# where to put it - the default is /install
|
||||
my $spotloc;
|
||||
if ($::opt_l)
|
||||
{
|
||||
$cpcosi_cmd .= "-l $::opt_l/spot ";
|
||||
$spotloc ="$::opt_l/spot";
|
||||
}
|
||||
else
|
||||
{
|
||||
$cpcosi_cmd .= "-l $install_dir/nim/spot ";
|
||||
$spotloc ="$install_dir/nim/spot";
|
||||
}
|
||||
|
||||
$cpcosi_cmd .= "$spot_name 2>&1";
|
||||
|
||||
# check the file system space needed
|
||||
# 800 MB for spot
|
||||
my $spotsize = 800;
|
||||
if (&chkFSspace($spotloc, $spotsize, $callback) != 0)
|
||||
{
|
||||
# error
|
||||
return undef;
|
||||
}
|
||||
|
||||
# run the cmd
|
||||
my $rsp;
|
||||
push @{$rsp->{data}},
|
||||
@ -3797,11 +3809,10 @@ sub mk_spot
|
||||
}
|
||||
|
||||
# check the file system space needed
|
||||
# 500 MB for spot ?? 64MB for tftpboot???
|
||||
my $spotsize = 500;
|
||||
# 800 MB for spot ?? 64MB for tftpboot???
|
||||
my $spotsize = 800;
|
||||
if (&chkFSspace($loc, $spotsize, $callback) != 0)
|
||||
{
|
||||
|
||||
# error
|
||||
return undef;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user