diff --git a/xCAT-server/lib/xcat/plugins/packimage.pm b/xCAT-server/lib/xcat/plugins/packimage.pm index 7a4a18d9d..6c5da2a6c 100644 --- a/xCAT-server/lib/xcat/plugins/packimage.pm +++ b/xCAT-server/lib/xcat/plugins/packimage.pm @@ -22,16 +22,11 @@ sub handled_commands { } sub process_request { - my $sitetab = xCAT::Table->new('site'); my $request = shift; my $callback = shift; my $doreq = shift; - my $ent = $sitetab->getAttribs({key=>'installdir'},['value']); - my $installroot = "/install"; + my $installroot = xCAT::Utils->getInstallDir(); - if ($ent and $ent->{value}) { - $installroot = $ent->{value}; - } @ARGV = @{$request->{arg}}; my $argc = scalar @ARGV; if ($argc == 0) {