NFS Root Filesystem

Setup on Server

exportfs -o no_root_squash,rw ${CLIENT_IP}:${ROOTFS_DIR}

Use on Client

Put the following in your kernel's bootargs:

ip=dhcp root=/dev/nfs nfsroot=${SERVER_IP}:${ROOTFS_DIR},tcp,nfsvers=3

Tip

If you have issues, try adding nolock

Teardown on Server

exportfs -u ${CLIENT_IP}:${ROOTFS_DIR}