Quoting Sebastian Bachmann ([email protected]):
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 2012-04-26 05:41, Serge Hallyn wrote:
> >> lxc.mount.entry = proc    proc   proc    nodev,noexec,nosuid 0 0 
> >> lxc.mount.entry = /shared shared none    bind 0 0
> 
> according to the debian manpage this will not work, and it does not
> work somehow:
>     lxc.mount
>               specify a file location in the fstab format, containing
> the mount informations. If the rootfs is an image file or a device
> block and the fstab is used  to  mount  a  point  somewhere  in  this
>               rootfs, the path of the rootfs mount point should be
> prefixed with the ${prefix}/lib/x86_64-linux-gnu/lxc default path or
> the value of lxc.rootfs.mount if specified.
> 
>             lxc.mount.entry
>               specify a mount point corresponding to a line in the
> fstab format.
> 
> the ubuntu man page says something different, there i dont need to
> prefix the path...
> Is it only working on ubuntu?

No, the code for that is upstream, i.e. mount_entry_on_relative_rootfs()
in src/lxc/conf.c.  So long as the target doesn't start with '/', it's
assumed to be relative to / in the container.  I can't imagine why it
wouldn't be working in debian.

-serge

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Lxc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to