Fix swapoff at shutdown, does not support -e flag

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2022-04-12 21:33:54 +02:00
parent cbe8d56042
commit b5df0a6274
+1 -1
View File
@@ -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();