<xi:include href="version-info.xml" xpointer="v220"/></listitem>
</varlistentry>
+ <varlistentry>
+ <term><option>x-systemd.wants=</option></term>
+
+ <listitem><para>Configures a <varname>Wants=</varname> and
+ an <varname>After=</varname> dependency between the created
+ mount unit and another systemd unit, similar to the
+ <varname>x-systemd.requires=</varname> option.</para>
+
+ <xi:include href="version-info.xml" xpointer="v257"/></listitem>
+ </varlistentry>
+
<varlistentry>
<term><option>x-systemd.before=</option></term>
<term><option>x-systemd.after=</option></term>
"x-systemd.requires\0", STRV_MAKE_CONST("Requires", "After"));
}
+static int write_wants_after(FILE *f, const char *where, const char *opts) {
+ return write_dependency(f, where, opts,
+ "x-systemd.wants\0", STRV_MAKE_CONST("Wants", "After"));
+}
+
static int write_before(FILE *f, const char *where, const char *opts) {
return write_dependency(f, where, opts,
"x-systemd.before\0", STRV_MAKE_CONST("Before"));
if (r < 0)
return r;
+ r = write_wants_after(f, where, opts);
+ if (r < 0)
+ return r;
+
r = write_before(f, where, opts);
if (r < 0)
return r;