|
Bugzilla – Full Text Bug Listing |
| Summary: | "mount --rbind /sys /whereever" cannot be undone due to systemd | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE Tumbleweed | Reporter: | Forgotten User 7XRNh5WElB <forgotten_7XRNh5WElB> |
| Component: | Basesystem | Assignee: | E-mail List <bnc-team-screening> |
| Status: | RESOLVED FIXED | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | fcrozat |
| Version: | 13.1 Milestone 1 | ||
| Target Milestone: | 13.1 Milestone 1 | ||
| Hardware: | x86-64 | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
|
Description
Forgotten User 7XRNh5WElB
2013-05-04 11:54:50 UTC
This bug is also present in current Factory (KDE live CD build 0466). I'm updating Product/OS. mounts are being shared by default (see http://cgit.freedesktop.org/systemd/systemd/commit/?id=b3ac5f8cb98757416d8660023d6564a7c411f0a0 ) and --rbind is propagating mounts in /sys to /mnt/mysys (which are not "different mounts"), so you would need to unmount everything in /mnt/mysys in the reserve order. This should be fixed with next util-linux (2.23): http://karelzak.blogspot.com.br/2013/04/umount8-mount8-and-nsenter1.html. Another simple solution for you could be to set / with private mounts: http://permalink.gmane.org/gmane.comp.sysutils.systemd.devel/10575 Thanks for the references. I'm not sure if I fully understand you. > and --rbind is propagating mounts in /sys to > /mnt/mysys (which are not "different mounts"), Does that mean "mount --rbind" should be the same as multiple "mount --bind"? The man page suggests that, but my script above indicates that there is in fact a difference. > so you would need to unmount everything > in /mnt/mysys in the reserve order. That's what I'm doing (see the script in my bug report). Yet the unmounts fail after "mount --rbind". > Another simple solution for you could be to set / with private mounts: > http://permalink.gmane.org/gmane.comp.sysutils.systemd.devel/10575 OK, "mount --make-private /sys/fs/cgroup" solves the problem. I don't understand what this does and why it is needed. According to the mount man page, this is about "mirrors of mounts", but I've never used such things --- at least not knowingly. (In reply to comment #3) > Thanks for the references. > I'm not sure if I fully understand you. > > > and --rbind is propagating mounts in /sys to > > /mnt/mysys (which are not "different mounts"), > Does that mean "mount --rbind" should be the same as multiple "mount --bind"? > The man page suggests that, but my script above indicates that there is in fact > a difference. > > > so you would need to unmount everything > > in /mnt/mysys in the reserve order. > That's what I'm doing (see the script in my bug report). Yet the unmounts fail > after "mount --rbind". The difference is caused by rbind + / being setup to use shared mounts by default (so /mnt/mysys and /sys are virtually the same, therefore causing unmount /mnt/mysys impossible) > > Another simple solution for you could be to set / with private mounts: > > http://permalink.gmane.org/gmane.comp.sysutils.systemd.devel/10575 > OK, "mount --make-private /sys/fs/cgroup" solves the problem. I don't > understand what this does and why it is needed. According to the mount man > page, this is about "mirrors of mounts", but I've never used such things --- at > least not knowingly. systemd is setting / as "shared mounts" by default (to ease container usage). And using rbind is doing some kind of "mirrors of mounts".. Closing as fixed. |