Building a live ISO: Difference between revisions

From FAIWiki
Jump to navigation Jump to search
(first version)
 
(fix dracut version)
Line 5: Line 5:
tmpfs (means writable).  
tmpfs (means writable).  


It's pretty easy. (Tested with FAI 4.1 and dracut 043-2).
It's pretty easy. (Tested with FAI 4.1 and dracut 034-2).


First add all packages you like to have for your
First add all packages you like to have for your

Revision as of 17:31, 26 February 2015

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 034-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.