Bug 31172

Summary: mount units: Possibility to use '-n' mount flag
Product: systemd Reporter: Roman Weber <bugs.freedesktop.org>
Component: generalAssignee: Lennart Poettering <lennart>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Roman Weber 2010-10-27 12:21:03 UTC
Hi

When /etc/mtab is not writable (Like in readonly envs) the mount fails.

Is it possible to add a flag to the mount and automount units which I can define that systemd should use 'mount -n' instead of 'mount' or a check if /etc/mtab is writable then 'mount' else 'mount -n'?

Thanks in advance

Roman
Comment 1 Lennart Poettering 2010-10-27 13:45:39 UTC
Our recommendation is to symlink /etc/mtab to /proc/mounts to solve this problem.

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.