[systemd-bugs] [Bug 89048] New: Unhelpfull documentation on fstab and generation of mount units

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Feb 9 11:54:20 PST 2015


https://bugs.freedesktop.org/show_bug.cgi?id=89048

            Bug ID: 89048
           Summary: Unhelpfull documentation on fstab and generation of
                    mount units
           Product: systemd
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
          Assignee: systemd-bugs at lists.freedesktop.org
          Reporter: knizek.confy at gmail.com
        QA Contact: systemd-bugs at lists.freedesktop.org

Hi,

http://www.freedesktop.org/software/systemd/man/systemd.mount.html#fstab 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?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20150209/3ab8c800/attachment-0001.html>


More information about the systemd-bugs mailing list