Move bind mounts to happen regardless of nfs mount

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1340 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-05-09 18:20:38 +00:00
parent ef51eac418
commit 824c360204

View File

@ -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)