[systemd-bugs] [Bug 53205] New: mount should support bind mount with new options
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Aug 7 03:17:16 PDT 2012
https://bugs.freedesktop.org/show_bug.cgi?id=53205
Bug #: 53205
Summary: mount should support bind mount with new options
Classification: Unclassified
Product: systemd
Version: unspecified
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: general
AssignedTo: systemd-bugs at lists.freedesktop.org
ReportedBy: ezyang at mit.edu
QAContact: systemd-bugs at lists.freedesktop.org
systemd doesn't really understand how to do bind mounts with new options. Right
now, we can do:
[Mount]
What=/var/lib/mock
Where=/var/lib/mock
Type=none
Options=bind,nosuid
But this translates into:
mount /var/lib/mock /var/lib/mock -t none -o bind,nosuid
rather than the correct sequence:
mount /var/lib/mock /var/lib/mock -o bind
mount -o remount,nosuid /var/lib/mock
since mount doesn't support bind-mounting plus extra options (this is
documented in the manpage). It would be nice if systemd could apply some magic
here and make it work.
(Note you can't even make two mounts, because systemd's naming convention means
only one unit file can be specified per mountpoint.)
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the systemd-bugs
mailing list