From b5df0a62743ca21f085e8a56e74217f71b855f51 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Tue, 12 Apr 2022 21:33:54 +0200 Subject: [PATCH] Fix swapoff at shutdown, does not support `-e` flag Signed-off-by: Joachim Wiberg --- src/sig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sig.c b/src/sig.c index 6bce49d6..035907c7 100644 --- a/src/sig.c +++ b/src/sig.c @@ -323,7 +323,7 @@ void do_shutdown(shutop_t op) /* Unmount any tmpfs before unmounting swap ... */ unmount_tmpfs(); if (whichp("swapoff")) - run("swapoff -e -a", "swapoff"); + run("swapoff -a", "swapoff"); /* ... unmount remaining regular file systems. */ unmount_regular();