Re: mount nfs share in %post

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mike,

In the %post section, try this for NFS mounts:

  mkdir -p /mountpoint
  echo "servername:/share /mountpoint nfs defaults 0 0" >> /etc/fstab

This will not, of course, immediately mount the filesystem and you may want to
try using the command "mount -a" to do so, but this could create the same
problem you are experiencing now. I'm also assuming you want this machine to
automatically NFS mount servername:/share on boot.

If none of this works you may want to take a close look at /etc/exports on
your server, and at the permissions of /share.

After commenting out that line, and having a fresh install, will typing

  # mount servername:/share /mountpoint

at a root terminal be successful?

Good luck,
Josh





[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux