From 5607d856b8606ba75446a07ab5e9048753e1d7a6 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Wed, 26 Nov 2014 10:36:52 -0500 Subject: swap: restore support for nofail systemd stops adding automatic dependencies on swap.target to swap units. If a dependency is required, it has to be added by unit configuration. fstab-generator did that already, except that now it is modified to create a Requires or Wants type dependency, depending on whether nofail is specified in /etc/fstab. This makes .swap units obey the nofail/noauto options more or less the same as .mount units. Documentation is extended to clarify that, and to make systemd.mount(5) and system.swap(5) more similar. The gist is not changed, because current behaviour actually matches existing documentation. https://bugs.freedesktop.org/show_bug.cgi?id=86488 --- man/systemd.mount.xml | 37 +++++++++++++++++++------------------ man/systemd.swap.xml | 40 ++++++++++++++++++++++++++++++++++------ 2 files changed, 53 insertions(+), 24 deletions(-) (limited to 'man') diff --git a/man/systemd.mount.xml b/man/systemd.mount.xml index ba841c3bab..6d8eae6a93 100644 --- a/man/systemd.mount.xml +++ b/man/systemd.mount.xml @@ -124,7 +124,7 @@ - <filename>/etc/fstab</filename> + <filename>fstab</filename> Mount units may either be configured via unit files, or via /etc/fstab (see @@ -142,8 +142,7 @@ When reading /etc/fstab a few special mount options are understood by systemd which influence how dependencies are created for mount - points from /etc/fstab. systemd - will create a dependency of type + points. systemd will create a dependency of type or (see option below), from either local-fs.target or @@ -180,27 +179,14 @@ - - - - - With this - mount will be only wanted, not required, by the - local-fs.target. This means - that the boot will continue even if this mount - point is not mounted successfully. Option - has the opposite meaning and - is the default. - - - With , this mount will not be added as a dependency for - local-fs.target. This means + local-fs.target or + remote-fs.target. This means that it will not be mounted automatically during boot, unless it is pulled in by some other unit. Option has the @@ -208,6 +194,21 @@ + + + + + With this + mount will be only wanted, not required, by + local-fs.target or + remote-fs.target. This means + that the boot will continue even if this mount + point is not mounted successfully. Option + has the opposite meaning and + is the default. + + + diff --git a/man/systemd.swap.xml b/man/systemd.swap.xml index 44c16e7bcc..1155758e28 100644 --- a/man/systemd.swap.xml +++ b/man/systemd.swap.xml @@ -117,12 +117,40 @@ /etc/fstab and a unit file, the configuration in the latter takes precedence. - Unless the option is set - for them all swap units configured in - /etc/fstab are also added as - requirements to swap.target, so - that they are waited for and activated during - boot. + When reading /etc/fstab a + few special options are understood by systemd which + influence how dependencies are created for swap + units. + + + + + + + With the + swap unit will not be added as a dependency for + swap.target. This means that + it will not be activated automatically during + boot, unless it is pulled in by some other + unit. Option has the + opposite meaning and is the default. + + + + + + + + With the + swap unit will be only wanted, not required by + swap.target. This means that + the boot will continue even if this swap device is + not activated successfully. Option + has the opposite meaning and + is the default. + + + -- cgit v1.2.3-54-g00ecf