chiark / gitweb /
swap: handle "nofail" from fstab
authorKay Sievers <kay.sievers@vrfy.org>
Tue, 15 Feb 2011 17:38:15 +0000 (18:38 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Tue, 15 Feb 2011 17:38:15 +0000 (18:38 +0100)
src/swap.c

index db0614b..4ffe19f 100644 (file)
@@ -177,6 +177,7 @@ static int swap_add_target_links(Swap *s) {
                 return r;
 
         if (!p->noauto &&
                 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)
             (p->handle || s->meta.manager->swap_auto) &&
             s->from_etc_fstab &&
             s->meta.manager->running_as == MANAGER_SYSTEM)