diff --git a/xCAT-server/lib/xcat/plugins/aixinstall.pm b/xCAT-server/lib/xcat/plugins/aixinstall.pm index aff48a92a..644f141da 100644 --- a/xCAT-server/lib/xcat/plugins/aixinstall.pm +++ b/xCAT-server/lib/xcat/plugins/aixinstall.pm @@ -1540,6 +1540,7 @@ sub spot_updates # if there is a shared_root then remove that also # - see if the shared_root exist and if it is allocated + if ( $SRname ) { my $alloc_count = xCAT::InstUtils->get_nim_attr_val($SRname, "alloc_count", $callback, $sn, $subreq); if (defined($alloc_count)) { # then the res exists @@ -1570,6 +1571,7 @@ sub spot_updates xCAT::MsgUtils->message("E", $rsp, $callback); } } + } } } } # end UPDATE @@ -2652,15 +2654,15 @@ sub mknimimage { # don't update spot unlees it is for diskless/dataless - if ($imagedef{$::image_name}{nimtype} eq "standalone") - { - my $rsp; - push @{$rsp->{data}}, - "The \'-u\' option is only valid for diskless and dataless nodes.\n"; - xCAT::MsgUtils->message("E", $rsp, $callback); - &mknimimage_usage($callback); - return 1; - } +# if ($imagedef{$::image_name}{nimtype} eq "standalone") +# { +# my $rsp; +# push @{$rsp->{data}}, +# "The \'-u\' option is only valid for diskless and dataless nodes.\n"; +# xCAT::MsgUtils->message("E", $rsp, $callback); +# &mknimimage_usage($callback); +# return 1; +# } # if it doesn't exist we can't update it! if (!$is_defined)