[systemd-bugs] [Bug 81695] duplicate bind mounts
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Aug 18 17:59:20 PDT 2014
https://bugs.freedesktop.org/show_bug.cgi?id=81695
--- Comment #2 from Corey Hickey <bugfood-c at fatooh.org> ---
Thanks for the explanation. I do wish the default behavior hadn't changed, but
this does get me an acceptable workaround. I wasn't aware of those mount
options. I think what I actually want is --make-private, i.e.:
[root at dcoreytest01 mnt]# mount --bind --make-private / foo
[root at dcoreytest01 mnt]# mount --bind --make-private / bar
[root at dcoreytest01 mnt]# mount | egrep '(foo|bar)'
/dev/vda3 on /mnt/foo type ext4 (rw,relatime,data=ordered)
/dev/vda3 on /mnt/bar type ext4 (rw,relatime,data=ordered)
That works fine for me. Alternatively, making / private first works as well:
[root at dcoreytest01 mnt]# mount --make-private /
[root at dcoreytest01 mnt]# mount --bind / foo
[root at dcoreytest01 mnt]# mount --bind / bar
[root at dcoreytest01 mnt]# mount | egrep '(foo|bar)'
/dev/vda3 on /mnt/foo type ext4 (rw,relatime,data=ordered)
/dev/vda3 on /mnt/bar type ext4 (rw,relatime,data=ordered)
Thanks,
Corey
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20140819/b7ae2884/attachment.html>
More information about the systemd-bugs
mailing list