]> git.ipfire.org Git - thirdparty/systemd.git/commit
mount: remove obsolete -n 755/head
authorKarel Zak <kzak@redhat.com>
Tue, 28 Jul 2015 09:31:45 +0000 (11:31 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 28 Jul 2015 09:31:45 +0000 (11:31 +0200)
commit6f20f850f79df365c2533195214127142013d317
tree8316f66d61b7483d7085597b87af44b98bf5dcd5
parentcd3d7c00bfe8b87485bcbec57cce66d8cf98e056
mount: remove obsolete -n

It seems that systemd still uses legacy -n option. The option has been
originally designed to avoid write to /etc/mtab during boot when root
FS is not ready or read-only.

This is not necessary for long time, because /etc/mtab is not a real
file (it's symlink) and write to the file is impossible. All utils
should be able to detect the symlink and ignore mtab. This concept is
supported for very long time before systemd.

The userspase mount options are currently maintained by libmount
(mount(8) and mount.nfs) in /run/mount) which is tmpfs initialized
during early boot.
src/core/mount.c