diff options
author | Ruslan Bilovol <ruslan.bilovol@gmail.com> | 2017-02-13 21:50:22 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-02-13 20:50:22 +0100 |
commit | ae3251851aa64138f415567b0a0d0df143182803 (patch) | |
tree | 4e176e7d029c7f1d01622371e3e3f37d03cfe755 /man | |
parent | 53f7443a4302ca7950777f6140d7d87052a202d9 (diff) |
fstab-generator: add x-systemd.before and x-systemd.after fstab options (#5330)
Currently fstab entries with 'nofail' option are mounted
asynchronously and there is no way how to specify dependencies
between such fstab entry and another units. It means that
users are forced to write additional dependency units manually.
The patch introduces new systemd fstab options:
x-systemd.before=<PATH>
x-systemd.after=<PATH>
- to specify another mount dependency (PATH is translated to unit name)
x-systemd.before=<UNIT>
x-systemd.after=<UNIT>
- to specify arbitrary UNIT dependency
For example mount where A should be mounted before local-fs.target unit:
/dev/sdb1 /mnt/test/A none nofail,x-systemd.before=local-fs.target
Diffstat (limited to 'man')
-rw-r--r-- | man/systemd.mount.xml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/man/systemd.mount.xml b/man/systemd.mount.xml index bb372d788a..598b5772fd 100644 --- a/man/systemd.mount.xml +++ b/man/systemd.mount.xml @@ -194,6 +194,25 @@ </varlistentry> <varlistentry> + <term><option>x-systemd.before=</option></term> + <term><option>x-systemd.after=</option></term> + + <listitem><para>Configures a <varname>Before=</varname> + dependency or <varname>After=</varname> between the created + mount unit and another systemd unit, such as a mount unit. + The argument should be a unit name or an absolute path + to a mount point. This option may be specified more than once. + This option is particularly useful for mount point declarations + with <option>nofail</option> option that are mounted + asynchronously but need to be mounted before or after some unit + start, for example, before <filename>local-fs.target</filename> + unit. + See <varname>Before=</varname> and <varname>After=</varname> in + <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry> + for details.</para></listitem> + </varlistentry> + + <varlistentry> <term><option>x-systemd.requires-mounts-for=</option></term> <listitem><para>Configures a |