<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt"><div>It's 0.7.3 on Gentoo ~amd64. I didn't upgrade to 0.7.4, yet..</div><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><br><div style="font-family:arial, helvetica, sans-serif;font-size:13px"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Daniel Lezcano <daniel.lezcano@free.fr><br><b><span style="font-weight: bold;">To:</span></b> panca sorin <psihozefir@yahoo.com><br><b><span style="font-weight: bold;">Cc:</span></b> lxc-users@lists.sourceforge.net<br><b><span style="font-weight: bold;">Sent:</span></b> Wed, March 23, 2011 6:32:45 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Lxc-users] Bind mounts in container's fstab don't work if the directory is on the same device as
rootfs<br></font><br>
On 03/23/2011 05:26 PM, panca sorin wrote:<br>> Hello LXC developers!<br>><br>> As the subject says, I'm having some problems getting directories bind mounted<br>> inside containers. So, here's my container config:<br>> lxc.rootfs = /var/lib/lxc/zero<br>> lxc.mount.entry=/var/lib/lxc/zero_home /var/lib/lxc/zero/home none<br>> bind,ro,defaults 0 0 # added later hoping it'll work<br>> lxc.mount = /etc/lxc/zero.fstab<br>><br>> and fstab:<br>> none /var/lib/lxc/zero/dev/pts devpts defaults 0 0<br>> none /var/lib/lxc/zero/proc proc defaults 0 0<br>> none /var/lib/lxc/zero/sys sysfs defaults 0 0<br>> none /var/lib/lxc/zero/dev/shm tmpfs defaults 0 0<br>> /var/lib/lxc/zero_home /var/lib/lxc/zero/home none bind,rw,defaults 0 0 # also<br>> tried read-only<br>><br>> I have to mention /var/lib/lxc is a symlink. But this should not matter, right?<br>> What am I doing wrong?<br>><br>What version are you
using ?<br></div></div><div style="position:fixed"></div>
</div><br>
</body></html>