What I am proposing is that you: - create a 'template' directory let us call it /Template
- copy the /var contents to that directory, for example:
# rsync -aviH /var/ /Template . Please note that the trailing "/" of /var/ is critical.
EDIT: As pointed out by IdOp this is wrong, it should be:
# rsync -aviH /var /Template
You will now have a /Template/var with a clone of /var
- create a directory for testing the mount:
# mdir /monkey
- edit your /etc/fstab to:
Code:
swap /monkey mfs rw,noexec,nosuid,-P=Template/var,s=80000 0 0
- make an offering to Puffy and reboot
If I did not make a mistake you will now have the /var contents in /monkey.
I have to go out now, I could only test the rsync part ....
Good luck
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Last edited by J65nko; 11th January 2016 at 10:40 AM.
Reason: Corrected according to IdOp's remark, and added '=" after -P option
|