Note
The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
NFS over fchroot on Raspi
Jump to navigation
Jump to search
I will briefly explain on this page how I did fchroot on my desktop computer to my Raspberry Pi 3b over the network using NFS, following in part Daniel Robbins' instructions contained in the following links Nfs, Frankenchroot/Live NFS Frankenchroot and also in the following video: Emulation magic with fchroot!
I took the following steps:
On Raspberry Pi
root # emerge -av net-fs/libnfs root # emerge -av net-fs/nfs-utils
/etc/exports
- NFS file systems being exported# /etc/exports: NFS file systems being exported. See exports(5).
/ 192.168.1.0/24(insecure,no_root_squash,nohide,rw,sync,no_subtree_check)
/boot/ 192.168.1.0/24(insecure,no_root_squash,nohide,rw,sync,no_subtree_check)
/dev/ 192.168.1.0/24(insecure,no_root_squash,nohide,rw,sync,no_subtree_check,fsid=77)
root # exportfs -rv root # rc-update add nfs default root # rc-service nfs start
On my Desktop Computer
root # mount 192.168.1.2:/ /mnt/piroot root # mount -v -t tmpfs -o size=8G,mode=775,uid=portage,gid=portage,nr_inodes=0 tmpfs /mnt/piroot/var/tmp/portage root # /root/fchroot/bin/fchroot /mnt/piroot/