Skip to content

Commit

Permalink
Fix passing ,nfsvers=3 to dracut (#1161820)
Browse files Browse the repository at this point in the history
dracut cleans up the leading , but really we should pass it properly.
It now only adds the , if options already contains a value.

Resolves: rhbz#1161820
  • Loading branch information
bcl committed Jun 10, 2015
1 parent a8bdb30 commit 94d0ea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dracut/anaconda-netroot.sh
Expand Up @@ -36,7 +36,7 @@ case $repo in
# 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"
repo="nfs:${options:+$options,}nfsvers=3:$server:$path"
fi
# END HACK. FIXME: Figure out what is up with nfs4, jeez
if [ "${repo%.iso}" == "$repo" ]; then
Expand Down

0 comments on commit 94d0ea1

Please sign in to comment.