|
Re: Samba cifs client in VE's [message #26842 is a reply to message #26828] |
Sun, 03 February 2008 08:26 |
piavlo
Messages: 159 Registered: January 2007
|
Senior Member |
|
|
You can share the portage with bind mounts.
If you are worried about security put the shared portage tree on a separate file system, and use vps.mount & vps.umount scripts
to auto mount the portage tree inside VE then it is started.
There are also read only bind mounts implementation which would
solve your problem perfectly but i not shure if this was ever inserted into linux mainline kernel (i tried with kernels up to 2.6.23 and it never worked for me)
But you can make the shared portage filesystem mounted readonly
in the HN, and make it r/w only for a short period of time then you're updating portage.
[Updated on: Sun, 03 February 2008 08:27] Report message to a moderator
|
|
|
Re: Samba cifs client in VE's [message #26843 is a reply to message #26842] |
Sun, 03 February 2008 09:25 |
piavlo
Messages: 159 Registered: January 2007
|
Senior Member |
|
|
piavlo wrote on Sun, 03 February 2008 10:26 | You can share the portage with bind mounts.
If you are worried about security put the shared portage tree on a separate file system, and use vps.mount & vps.umount scripts
to auto mount the portage tree inside VE then it is started.
There are also read only bind mounts implementation which would
solve your problem perfectly but i not shure if this was ever inserted into linux mainline kernel (i tried with kernels up to 2.6.23 and it never worked for me)
But you can make the shared portage filesystem mounted readonly
in the HN, and make it r/w only for a short period of time then you're updating portage.
|
Looks like read only bind mounts were added only recently to 2.6.24, see
http://kernelnewbies.org/LinuxChanges#head-0da4f463de7038980 b699b6a2c91e5f16eac361b
|
|
|