NFS over fchroot on Raspi

From Funtoo
Revision as of 20:10, June 16, 2022 by Windceltic (talk | contribs)
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!

The steps I took were the following:

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).
root # exportfs -rv
root # rc-update add nfs default
root # rc-service nfs start

On my Desktop Computer

root # mount /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/