<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Unhelpfull documentation on fstab and generation of mount units"
href="https://bugs.freedesktop.org/show_bug.cgi?id=89048">89048</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Unhelpfull documentation on fstab and generation of mount units
</td>
</tr>
<tr>
<th>Product</th>
<td>systemd
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>general
</td>
</tr>
<tr>
<th>Assignee</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>knizek.confy@gmail.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>Hi,
<a href="http://www.freedesktop.org/software/systemd/man/systemd.mount.html#fstab">http://www.freedesktop.org/software/systemd/man/systemd.mount.html#fstab</a> reads
that:
Mount units may either be configured via unit files, or via /etc/fstab (see
fstab(5) for details). Mounts listed in /etc/fstab will be converted into
native units dynamically at boot and when the configuration of the system
manager is reloaded. In general, configuring mount points through /etc/fstab is
the preferred approach. See systemd-fstab-generator(8) for details about the
conversion.
Once the user modifies the /etc/fstab, it is difficult to find out how to
regenerate the units. Usual advice given by many is to reload the configuration
"systemctl daemon-reload", which does not do the trick.
Running "/usr/lib/systemd/system-generators/systemd-fstab-generator" does not
change existing units ("systemctl list-units --all") either.
Someone on Arch Linux forum adviced that
"/usr/lib/systemd/system-generators/systemd-fstab-generator
/run/systemd/generator '' ''" should work.
Not obvious from the man pages of systemd-fstab-generator, which mentions
something in Examples, but without any reference to the actual location.
"systemd-fstab-generator converts /etc/fstab into native mount units. It uses
argv[1] as location to place the generated unit files in order to allow the
user to override fstab with his own native unit files, but also to ensure that
/etc/fstab overrides any vendor default from /usr."
Looking at it from today's perspective, it may seem clear - just read and
understand a buch of man pages. But without knowing the actual command argument
syntax, I guess I would have to stay with the easy-to-carry-out reboots of the
computer. The old style was simply "mount -a", written directly in the man
page.
How about an equivalent for systemd-fstab-generator, which would simply carry
out the default task, which is done during boot?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>