From 9d9284307fb8260e8758157f4b352b1f2612bf51 Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 4 Mar 2008 19:35:59 +0000 Subject: [PATCH] Fix export of /tftpboot and /install git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@665 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/lib/xcat/plugins/NFSsn.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server-2.0/lib/xcat/plugins/NFSsn.pm b/xCAT-server-2.0/lib/xcat/plugins/NFSsn.pm index 223e5c826..576777d2d 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/NFSsn.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/NFSsn.pm @@ -126,7 +126,7 @@ sub setup_NFS if ($::RUNCMD_RC != 0) { # need to add to export list my $cmd = - "echo '$installdir *(rw,no_root_squash,sync)' >> /etc/exports"; + "echo '$installdir *(ro,no_root_squash,sync)' >> /etc/exports"; xCAT::Utils->runcmd($cmd, -1); if ($::RUNCMD_RC != 0) { # error @@ -138,7 +138,7 @@ sub setup_NFS if ($::RUNCMD_RC != 0) { # need to add to export list my $cmd = - "echo '$tftpdir *(rw,root_squash,sync)' >> /etc/exports"; + "echo '$tftpdir *(ro,root_squash,sync)' >> /etc/exports"; xCAT::Utils->runcmd($cmd, -1); if ($::RUNCMD_RC != 0) { # error