Merge pull request #374 from ackalker/nfs-user-options

initramfs init: add user-defined mount options for NFS mounts
This commit is contained in:
Stephan Raue 2012-03-26 15:55:20 -07:00
commit e0aba60868

View File

@ -160,9 +160,12 @@ NBD_DEVS="0"
mount_nfs() { mount_nfs() {
# Mount NFS export # Mount NFS export
NFS_OPTIONS="nolock,retrans=10" NFS_EXPORT="${1%%,*}"
NFS_OPTIONS="${1#*,}"
mount_common "$1" "$2" "$3,$NFS_OPTIONS" "nfs" [ "$NFS_OPTIONS" = "$1" ] && NFS_OPTIONS=
mount_common "$NFS_EXPORT" "$2" "$3,nolock,retrans=10,$NFS_OPTIONS" "nfs"
} }
mount_part() { mount_part() {