]> err.no Git - systemd/commitdiff
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 db0614b9f9a488d8ba2620d638c724a7ef685074..4ffe19f1e84a3052f60d48e3ba3d38388264925e 100644 (file)
@@ -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)