From 4b5553bfe6d639d9ecb75d6018ddc97421d5b8b9 Mon Sep 17 00:00:00 2001 From: ligc Date: Thu, 17 Jun 2010 07:38:54 +0000 Subject: [PATCH] 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 --- xCAT/postscripts/xcataixscript | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/xCAT/postscripts/xcataixscript b/xCAT/postscripts/xcataixscript index a1c7071cb..ce6a82268 100644 --- a/xCAT/postscripts/xcataixscript +++ b/xCAT/postscripts/xcataixscript @@ -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";