mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-06 09:27:49 +00:00
busybox-initramfs: init: add support for NFS mounts
Example usage: boot=NFS=192.168.1.1:/tftpboot Signed-off-by: Alain Kalker <a.c.kalker@gmail.com>
This commit is contained in:
parent
ac1d0eb0d9
commit
cd052262f8
@ -139,6 +139,13 @@ NBD_DEVS="0"
|
||||
NBD_DEVS=$(( ${NBD_DEVS} + 1 ))
|
||||
}
|
||||
|
||||
mount_nfs() {
|
||||
# Mount NFS export
|
||||
NFS_OPTIONS="$3,nolock,retrans=10"
|
||||
|
||||
mount_common "$1" "$2" "$NFS_OPTIONS" "nfs"
|
||||
}
|
||||
|
||||
mount_part() {
|
||||
# Mount a local or network filesystem
|
||||
# $1:[TYPE=]target, $2:mountpoint, $3:mount options, [$4:fs type]
|
||||
@ -153,6 +160,9 @@ NBD_DEVS="0"
|
||||
NBD=*)
|
||||
MOUNT_CMD="mount_nbd"
|
||||
;;
|
||||
NFS=*)
|
||||
MOUNT_CMD="mount_nfs"
|
||||
;;
|
||||
*)
|
||||
error "mount_part" "Unknown filesystem $1"
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user