nfsv4 support - use $::MOUNT to specify if -o vers=4 is required

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10825 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2011-10-18 10:54:49 +00:00
parent d3e616095a
commit fa4249df73

View File

@ -137,6 +137,7 @@ sub preprocess_request
my $imagehash;
my $attrs;
my $locs;
$::MOUNT = "mount";
# get this systems name as known by xCAT management node
my $Sname = xCAT::InstUtils->myxCATname();
@ -159,6 +160,7 @@ sub preprocess_request
if ($nfsv4entry->{value} =~ /1|Yes|yes|YES|Y|y/)
{
$::NFSv4 = 1;
$::MOUNT = "mount -o vers=4";
}
}
$sitetab->close;
@ -6654,7 +6656,7 @@ sub update_dd_boot
# statelite directory to mount
SLDIR=`echo \$SLLINE | /usr/bin/awk -F'|' '{print \$3}'`
mount \${SLSERV}:\${SLDIR} /tmp
$::MOUNT \${SLSERV}:\${SLDIR} /tmp
# - get the persistent version of basecust from the server
if [ -f /tmp/\${NIM_NAME}/etc/basecust ]; then
@ -6675,7 +6677,7 @@ sub update_dd_boot
if [ -n "\${SLDIR}" ]
then
# need to mount persistent basecust over the one in RAM FS
mount -o rw \${SLSERV}:\${SLDIR} /tmp
$::MOUNT -o rw \${SLSERV}:\${SLDIR} /tmp
/usr/bin/touch /etc/basecust
mount /tmp/\${NIM_NAME}/etc/basecust /etc/basecust
fi