Re: Creating PXE boot image
You may look at the ltsp-build-image command, it does exactly what you want.
I'm not saying you should use ltsp-server, you could download the source
of this ltsp-build-image and see if you can use it in the way you want.
What that does, roughly is take a chroot filesystem (in ltsp case
normally it is on /opt/ltsp/$arch - being $arch i386, amd64, etc.) where
there's a fully working system with kernel and stuff, and it makes a
image out of that chroot so it can then be sent by pxe to the thin
clients machines. However in ltsp's case everything runs on the server
itself, the image sent by pxe is much smaller and have only the minimal
stuff to make the thin clients be able to run things on the root
filesystem on the server.