diff --git a/xCAT-server/lib/xcat/plugins/mknb.pm b/xCAT-server/lib/xcat/plugins/mknb.pm index 575cd7716..4f57d13d3 100644 --- a/xCAT-server/lib/xcat/plugins/mknb.pm +++ b/xCAT-server/lib/xcat/plugins/mknb.pm @@ -39,8 +39,7 @@ sub process_request { $sitetab->close; } - my $installdir = "/install"; - my $tftpdir = "/tftpboot"; + my $tftpdir = xCAT::Utils->getTftpDir(); if (scalar(@{$request->{arg}}) != 1) { $callback->({error=>"Need to specifiy architecture (x86, x86_64 or ppc64)"},{errorcode=>[1]}); return;