/tmp not writable when booting from NFS

Dieter Scholz rd-disc at gmx.net
Sun Feb 12 11:41:31 CET 2017


Hello,

currently I'm working on a project to create a customized live CD based
on Debian Stretch that contains a FAI server. For this I use the
live-build tools.

During the live-build run I execute 'fai-setup -e' in a chrooted
environment. This seems to work.

Because the live-build tools use overlay-fs - which does not support NFS
- I cannot export /srv/fai/{config,nfsroot} directly. But mounting and
exporting the squashfs image works. Now when I try to setup a demo PC
the setup fails. The messages state that it's not possible to create
/tmp/fai and /target, because it's a read-only filesystem. I see in the
logs, that the NFS shares are mounted.

I think there's something wrong with the generated initramfs (/tmp is
not mounted as tmpfs?) or with my NFS squashfs export.

By the way: I tried my setup with the Jessie. There the live-build tools
use aufs as overlay. With my Jessie setup I have no problem starting the
NFS boot and install.

Because I don't know much about dracut and the starting up of the FAI
install, I'm a bit lost ...

Thanks for your help.

Kind regards,

Dieter


More information about the linux-fai mailing list