Summary: | mount should support bind mount with new options | ||
---|---|---|---|
Product: | systemd | Reporter: | Edward Z. Yang <ezyang> |
Component: | general | Assignee: | systemd-bugs |
Status: | RESOLVED NOTOURBUG | QA Contact: | systemd-bugs |
Severity: | normal | ||
Priority: | medium | CC: | gustavo |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Edward Z. Yang
2012-08-07 10:17:16 UTC
Yes this bit me also, but I'm using fstab entries like this: LABEL=var /var auto defaults,relatime 0 1 /var/home /home none bind,noatime,auto 0 0 /home does not get mounted noatime until I do mount -o remount,bind after boot. So a big +1 from me for fixing this. Karel Zak (util-linux maintainer) explains this stuff nicely in the context of the 'ro' attribute on his blog http://karelzak.blogspot.co.uk/2011/04/bind-mounts-mtab-and-read-only.html I am pretty sure should probably get this fixed in the kernel, so that we can actually create the bind mounts atomically. It's less than ideal if everybody sees two mount events and when apps react to that (such as nautilus and gvfs) they will first see a mount point with incorrect mount options... Closing, this should either be fixed in the kernel (ideally) or in util-linux' mount command. We shouldn't work around it in systemd. In case anybody stumbles over this problem, I've devised a possible workaround until there's a proper fix for this issue: https://blog.iwakd.de/systemd-fstab-and-bind-mounts-with-options |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.