summaryrefslogtreecommitdiff
path: root/src/swap.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-02-15 18:38:15 +0100
committerKay Sievers <kay.sievers@vrfy.org>2011-02-15 18:38:15 +0100
commit853856101be1c396afcb0ec1338774d62c863337 (patch)
tree20f2aeb482bb1f434336c20d77735e9a40f4d231 /src/swap.c
parentf959c5e63a9080cbff42ac4160154f8a6b508e7a (diff)
swap: handle "nofail" from fstab
Diffstat (limited to 'src/swap.c')
-rw-r--r--src/swap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/swap.c b/src/swap.c
index db0614b9f9..4ffe19f1e8 100644
--- a/src/swap.c
+++ b/src/swap.c
@@ -177,6 +177,7 @@ static int swap_add_target_links(Swap *s) {
return r;
if (!p->noauto &&
+ !p->nofail &&
(p->handle || s->meta.manager->swap_auto) &&
s->from_etc_fstab &&
s->meta.manager->running_as == MANAGER_SYSTEM)