Hello list, I am back on track :)
I dug the archives but [1] does not really seem to be a solution since / is not the nfs and I most likely also get Invalid Arugment on doing that pivot_root. [1] http://www.fsl.cs.sunysb.edu/pipermail/unionfs/2005-June/002830.html So here is the setup: # uname -a 2.6.17.8-jen32-default (with unionfs 1.3) # cat /proc/mounts rootfs / rootfs rw 0 0 (initramfs) udev /dev tmpfs rw 0 0 proc /proc proc rw 0 0 sysfs /sys sysfs rw 0 0 192.168.222.1:/tftpboot/terran /.STATIC nfs rw,vers=3,rsize=8192,wsize=8192,hard,intr,proto=tcp,timeo=600,retrans=3,addr=192.168.222.1 0 0 /dev/disk/by-label/tmp /.DYNAMIC xfs rw 0 0 none /root unionfs rw,dirs=/.DYNAMIC=rw:/.STATIC=nfsro,debug=4294967295,delete=whiteout 0 0 Then I move the two to be inside the union, # mount -n --move /.STATIC /root/.STATIC # mount -n --move /.DYNAMIC /root/.DYNAMIC The run_init program will pivot_root to /root, and do the Usual Duty. After run_init is done, /proc/mounts contains # mount /proc; cat /proc/mounts rootfs / rootfs rw 0 0 udev /dev tmpfs rw 0 0 proc /proc proc rw 0 0 sysfs /sys sysfs rw 0 0 192.168.222.1:/tftpboot/terran /.STATIC nfs rw,vers=3,rsize=8192,wsize=8192,hard,intr,proto=tcp,timeo=600,retrans=3,addr=192.168.222.1 0 0 /dev/disk/by-label/tmp /.DYNAMIC xfs rw 0 0 none / unionfs rw,dirs=/.DYNAMIC=rw:/.STATIC=nfsro,debug=4294967295,delete=whiteout 0 0 Problem remains, programs will have /.STATIC in their /proc/$$/exe link. Some people here seem to have workarounds that involve only binding and mounting. What are the possibilities? Jan Engelhardt -- _______________________________________________ unionfs mailing list [email protected] http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs
