Replying to self. Someone else might find this useful.

- Create /etc/vservers/<vserver-name>/bcapabilites
- Add the following line:
  CAP_SYS_ADMIN

The mount should work now. 

Question is now should keep that capability?

Philippe


Philippe Clérié wrote:

> I'm trying to dist-upgrade a breezy guest and getting an error when
> upgrading the initscripts package. The error occurs while running the
> postinst script, when it tries this:
> 
> mount -n --bind / /.root
> 
> The output from that is:
> 
> mount: permission denied.
> 
> I suspect I need to enable some capability to allow the mount. So far I
> haven't found a clue and I thought I'd ask. What is the minimum capability
> needed for this? And what are the downsides, if any?
> 
> Is there any other way?
> 
> Thanks in advance
> Philippe
> 
> 
> _______________________________________________
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver


_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver

Reply via email to