[systemd-devel] systemd.mount questions
Dave Reisner
d at falconindy.com
Mon Jul 29 05:57:21 PDT 2013
On Mon, Jul 29, 2013 at 12:39:40PM +0100, lux-integ wrote:
> I am attempting to learn how to use systemd. I read the man page on
> systemd.mount
>
> ( http://www.freedesktop.org/software/systemd/man/systemd.mount.html )
>
> and I have two questions
>
> 1: say you want to mount proc, sys, run, dev, devpts, tmpfs
> do you need multiple systemd.mount files (1 for each) or can one file do and
> if so how so?
1 mount unit = 1 mounted filesystem
But, why? These things are already mounted for you. If you really need
to override options, you can still use /etc/fstab
> 2. I did not see an option for passing the --no-mtab (-n ) option when
> calling mount.
> ( http://linux.die.net/man/8/mount )
>
> So when using systemd.mount how is the --no-mtab option inserted?
You couldn't possibly make use of this option, even if you were able to
pass it. systemd requires that /etc/mtab is a symlink to
/proc/self/mounts:
http://cgit.freedesktop.org/systemd/systemd/tree/src/core/main.c#n1136
d
More information about the systemd-devel
mailing list