mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 21:56:42 +00:00
Merge pull request #374 from ackalker/nfs-user-options
initramfs init: add user-defined mount options for NFS mounts
This commit is contained in:
commit
e0aba60868
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user