Red Hat Bugzilla – Bug 17609
kickstart won't mount non-linux nfs server exports
Last modified: 2008-05-01 11:37:58 EDT
I'm trying to mount an nfs share from a Sun during the %post section of a
kickstart. When I try to mount the share, it returns "mount failed:
Invalid argument". I am able to mount share's from a linux NFS server
although. Upon reboot the machine is able to mount shares exported from
the Sun NFS server without difficulty. I have also tried mounting shares
from an IRIX machine. Am I missing something?
I've spent some more time working on this and realized that I was confusing
chroot and non-chroot situations. While I have discovered what I was doing
wrong, the initial problem still remains. In a non-chroot account, I can only
mount nfs directories from a linux server. I tried referencing the server by
name and by IP with the same results. In a chroot account, I can mount both
linux and non-linux based NFS servers, by IP only though.
Yep, you are absolutely correct. Found that out as well.
The problem is it tries to mount with NFS version 3. The MNT (3) occurs, then
the GETPORT (2) occurs (both succeed) and then the install dies. Unless Red
Hat can guarantee the NFS 3 code works well with all (especially well-
established ver 3 servers like IRIX, Solaris, NetApp), it should have the
install use ver 2.
My fix was to recompile the anaconda install code, removing the '-DHAVE_NFSV3'
define in anaconda/isys/Makefile. I then installed the resulting RPM's,
rebuilt the install image with the buildinstall command, used the new
bootnet.img file and voila it mounts my Sun servers just fine.
I should also add that this is with 7.0 final. Also, my original problem had
to do with mounting the NFS install image. That's the part that failed for me,
I actually had no difficulties mounting the Sun server during %post.
Yup, same with me - bug #15190. Don't suppose you could make available your new
bootnet.img?? (Is that all that's required??)
Sure, I've put the updated images/ and RedHat/base/ directories <A HREF="http://www.cs.princeton.edu/redhat7-fix/">here</A>.
I think you'll be okay just replacing those two directories in your NFS install image. You might need to update the instimage directory however, if that's
the case I've included my updated anaconda RPMS at that URL as well. Just install those RPM's, then run the 'buildinstall' command in
/usr/lib/anaconda-runtime giving your install image as an argument. It appears that for the buildinstall command to work all you need is the
RedHat/RPMS/ directory to exist with all the RPMS in it, <b>including</b> the <b>updated</b> replacement anaconda RPMS.
Million thanks, your images fixed the problem for me!
*** Bug 17240 has been marked as a duplicate of this bug. ***
Good to see that this problem is fixed.
However has the unofficial fix been incorporated to the the official redhat 7
If this has not then I am very disappointed with redhat as this problem is quite
a fundamental to the heart of kickstart. I would urge to do this asap if not
I've made a fix available at
*** Bug 46069 has been marked as a duplicate of this bug. ***