Building a live ISO
Jump to navigation
Jump to search
How to turn the FAI nfsroot into a file system for diskless clients
Someone asked me about using the FAI nfsroot for a diskless client setup. The clients should PXE boot and have /tmp and /var as tmpfs (means writable).
It's pretty easy. (Tested with FAI 4.1 and dracut 043-2).
First add all packages you like to have for your diskless clients to /etc/fai/NFSROOT.
Create the FAI nfsroot
fai-make-nfsroot -v
Then disable some FAI specific things inside the nfsroot:
chroot /srv/fai/nfsroot bash rm -f /etc/init.d/rcS dpkg-divert --package fai-nfsroot --remove --rename /etc/init.d/rcS insserv -r fai-abort exit
That's it. Now, boot your client. Since FAI is using aufs (advanced multi layered unification filesystem version 3.x), the whole filesystem is writeable for the client, even it's mounted read-only.