chiark / gitweb /
swap: restore support for nofail
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 26 Nov 2014 15:36:52 +0000 (10:36 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 26 Nov 2014 20:17:07 +0000 (15:17 -0500)
commit5607d856b8606ba75446a07ab5e9048753e1d7a6
tree700fa0e14d4fc1ab28057fb04643c440cdda32e4
parentcb6531bee6e6f66c3a9d85b24fed68fae7fad6ad
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
man/systemd.swap.xml
src/core/swap.c
src/fstab-generator/fstab-generator.c