Re: [PATCH f17-branch] dracut: use nfs3 by default (#811242)

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

 



On Fri, May 11, 2012 at 06:45:57PM -0400, Will Woods wrote:
> For some unknown reason, nfs-root installs will hang after a couple of
> minutes if you're using nfs4. This doesn't happen with nfs3, so force
> nfs3 by default.
> 
> This breaks the normal fallback to nfs2, so if nfs3 doesn't work you'll
> need to change your repo arg to something like 'nfs:vers=2:SERVER:PATH'.
> I'm told that nfs2-only servers should be pretty rare at this point, so
> I think this is a reasonable requirement.
> ---
>  dracut/anaconda-netroot.sh |    7 +++++++
>  1 files changed, 7 insertions(+), 0 deletions(-)
> 
> diff --git a/dracut/anaconda-netroot.sh b/dracut/anaconda-netroot.sh
> index c7d528a..043a51f 100755
> --- a/dracut/anaconda-netroot.sh
> +++ b/dracut/anaconda-netroot.sh
> @@ -25,6 +25,13 @@ case $repo in
>          . /lib/nfs-lib.sh
>          info "anaconda mounting NFS repo at $repo"
>          str_starts "$repo" "nfsiso:" && repo=nfs:${repo#nfsiso:}
> +        # HACK: work around some Mysterious NFS4 Badness (#811242 and friends)
> +        # by defaulting to nfsvers=3 when no version is requested
> +        nfs_to_var $repo $netif
> +        if [ "$nfs" != "nfs4" ] && ! strstr "$options" "vers="; then
> +            repo="nfs:$options,nfsvers=3:$server:$path"
> +        fi
> +        # END HACK. FIXME: Figure out what is up with nfs4, jeez
>          if [ "${repo%.iso}" == "$repo" ]; then
>              mount_nfs "$repo" "$repodir" "$netif" || warn "Couldn't mount $repo"
>              anaconda_live_root_dir $repodir
> -- 
> 1.7.7.6

Ack

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)

Attachment: pgp6Ag0itxPx5.pgp
Description: PGP signature

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux