summaryrefslogtreecommitdiffstats
path: root/Documentation/filesystems/nfs.rst
blob: ab51241549b60c8bb18be33f8100c5c7f1e7b217 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
.. index:: nfs (filesystem)

.. _filesystems_nfs:

NFS Support
===========

barebox has readonly support for NFSv3 in UDP mode.

Example::

   barebox:/ mount -t nfs 192.168.23.4:/home/user/nfsroot /mnt/nfs

The barebox NFS driver adds a ``linux.bootargs`` device parameter to the NFS device.
This parameter holds a Linux kernel commandline snippet containing a suitable root=
option for booting from exactly that NFS share.

Example::

  barebox:/ devinfo nfs0
  ...
  linux.bootargs: root=/dev/nfs nfsroot=192.168.23.4:/home/sha/nfsroot/generic-v7,v3,tcp

The options default to ``v3,tcp`` but can be adjusted before mounting the NFS share with
the ``global.linux.rootnfsopts`` variable