'Twas brillig, and lux-integ at 29/07/13 12:39 did gyre and gimble: > 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?
I assume you just mean tmp and not tmpfs at the end there? All of those file systems are handled internally as "API" filesystems inside systemd. You do not need fstab entries or .mount units for the above - they should all "Just Work"(tm) But to answer the question theoretically: you would need one unit per mount point. If you want to keep things in one file, just keep them in fstab as before. > 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? systemd doesn't support a /etc/mtab which is a statically managed file. It basically requires that /etc/mtab is a symlink to /proc/mounts which is dynamically updated from the kernel. So there is no option for this because there is no need. All the best Col -- Colin Guthrie colin(at)mageia.org http://colin.guthr.ie/ Day Job: Tribalogic Limited http://www.tribalogic.net/ Open Source: Mageia Contributor http://www.mageia.org/ PulseAudio Hacker http://www.pulseaudio.org/ Trac Hacker http://trac.edgewall.org/ _______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
