### Prepare the rootfs folder

Mount the root file system. As explained in the buildroot manual, don't try to
use the `output/target` folder directly, but mount an image in `output/images`
```
mount /dev/loop0 /path/to/roots
```

### Setup the NFS server

install nfs_kernel_server
```
apt install -y nfs_kernel_server
```

Ensure the proper *module* are loaded:
```
modprobe nfsd
modprobe nfs
```

Ensure the proper *service* are loaded:
```
service rpcbind start
service nfs-kernel-server start
```

Create the export file:
```
cat >> /etc/exports
/path/to/roots 192.168.0.0/24(rw,no_root_squash)
```

Make nfs server reread the config
```
exportfs -rv
```

Try to connect
```
mount -t nfs -o proto=tcp,port=2049 <server-ip>:/path/to/roots /mnt/somewhere/
```

### Modify the RPi config to mount a nfsed root filesystem.

Modify the `cmdline.txt`
```
root=/dev/nfs ip=dhcp rootwait console=tty1 console=ttyAMA0,115200 nfsroot=<server-ip>:/path/to/roots
```

Add docs on how to connect the rpi to an nfs served root filesystem.
Add docs on how to connect the rpi to an nfs served root filesystem.
