mirror of
https://github.com/troglobit/finit.git
synced 2026-11-07 16:01:08 +00:00
Fix swapoff at shutdown, does not support -e flag
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
cbe8d56042
commit
b5df0a6274
1 file changed
+1
-1
@@ -323,7 +323,7 @@ void do_shutdown(shutop_t op)
|
|||||||
/* Unmount any tmpfs before unmounting swap ... */
|
/* Unmount any tmpfs before unmounting swap ... */
|
||||||
unmount_tmpfs();
|
unmount_tmpfs();
|
||||||
if (whichp("swapoff"))
|
if (whichp("swapoff"))
|
||||||
run("swapoff -e -a", "swapoff");
|
run("swapoff -a", "swapoff");
|
||||||
|
|
||||||
/* ... unmount remaining regular file systems. */
|
/* ... unmount remaining regular file systems. */
|
||||||
unmount_regular();
|
unmount_regular();
|
||||||
|
|||||||
Reference in new issue
Block a user