[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#326873: Customized directories not mounted if NFS root is rw

Package: diskless

I installed the diskless package on a server and succeded to boot a diskless client successfully;

I successfully managed to start my diskless client (through PXE and recompiled kernel with appropriate options).The root file system is mounted as expected by the client though NFS. On my server, I did not chage the defaults proposed by both commands 'diskless-newimage' and 'diskless-newhost' at installation time: - the root file system for myclient to NFS mount is : /var/lib/diskless/default/root - the customized '/etc' '/tmp' and '/var' directories for my diskless client (with IP adress being are stored in : /var/lib/diskless/default/

However, during the client boot, the cutomized directories ( /var/lib/diskless/default/, /var/lib/diskless/default/ and /var/lib/diskless/default/ are not mounted as /etc, /var, /tmp). I believe they should.

I realize this is due to the fact that I boot I mount the NFS root file system with read-write option. I do this through my SYSLINUX/PXE boot script (otpion 'rw' of append insctruction in the PXE file below :

default diskless

label   diskless
       kernel bzImage
append rw root=/dev/nfs nfsroot= ip=dhcp

label   local
       localboot 0

When I mount the NFS root file system read-only, then the customized directories are mounted for my diskless client as expected.

I do not see where this kind of logic is implemented. I believe the customized directories should be mounted even if the root file system is mounted read-write.

Reply to: