chiark / gitweb /
swap: create .wants symlink to 'auto' swap devices
authorTom Gundersen <teg@jklm.no>
Sun, 15 Sep 2013 23:08:32 +0000 (01:08 +0200)
committerTom Gundersen <teg@jklm.no>
Sun, 15 Sep 2013 23:11:52 +0000 (01:11 +0200)
commit4e82fe5213bedcb70e25c0270e516d5f2706d8c8
treed00a7169c7b53dc58ca96572a6bfa9c73c365201
parenta5c724b25b2930ecb4a64bb4d9b8619a1354afed
swap: create .wants symlink to 'auto' swap devices

As we load unit files lazily, we need to make sure something pulls in swap
units that should be started automatically, otherwise the default dependencies
will never be applied.

This partially reinstates code removed in
commit 64347fc2b983f33e7efb0fd2bb44e133fb9f30f4.

Also don't order swap devices after swap.target when they are 'nofail'.
src/core/swap.c
src/fstab-generator/fstab-generator.c