IPv6 fix: add -o vers=4 to the mount command for IPv6

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6497 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2010-06-17 07:38:54 +00:00
parent 53b4fdb42e
commit 4b5553bfe6

View File

@ -88,7 +88,15 @@ if (!$installdir) {
# get the contents of the $installdir/postscripts dir on the server
# - mount dir from server and copy files
my $mcmd = "/bin/mkdir -p /xcatmnt; /usr/sbin/mount -o nolock $servnode:$installdir/postscripts /xcatmnt";
# IPv6, should only use NFS version 4 mount
my $mcmd;
my $snipcmd = "host $servnode";
if ((&runcmd($snipcmd) == 0) && ($::outref =~ /:/))
{
$mcmd = "mkdir -p /xcatmnt; mount -o nolock -o vers=4 $servnode:$installdir/postscripts /xcatmnt";
} else {
$mcmd = "mkdir -p /xcatmnt; mount -o nolock $servnode:$installdir/postscripts /xcatmnt";
}
if (&runcmd($mcmd) != 0) {
print "$::sdate xcataixscript: Could not mount $installdir/postscripts from $servnode.\n";
print $::LOG_FILE "$::sdate xcataixscript: Could not mount $installdir/postscripts from $servnode.\n";