diff --git a/xCAT-server-2.0/lib/xcat/plugins/NFSsn.pm b/xCAT-server-2.0/lib/xcat/plugins/NFSsn.pm index d2525b0db..54b9288bd 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/NFSsn.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/NFSsn.pm @@ -34,6 +34,10 @@ sub handled_commands { my $rc = 0; + mkpath "/var/ftp/install"; + mkpath "/var/ftp/tftpboot"; + system "mount -o bind $installdir /var/ftp/install"; + system "mount -o bind /tftpboot /var/ftp/tftpboot"; if (xCAT::Utils->isServiceNode()) { my @nodeinfo = xCAT::Utils->determinehostname; @@ -104,10 +108,6 @@ sub setup_NFS my $arch; # make sure vsftpd is started - mkpath "/var/ftp/install"; - mkpath "/var/ftp/tftpboot"; - system "mount -o bind $installdir /var/ftp/install"; - system "mount -o bind /tftpboot /var/ftp/tftpboot"; my $cmd = "service vsftpd start"; xCAT::Utils->runcmd($cmd, 0); if ($::RUNCMD_RC != 0)