Run swapoff interactively, let user know what's happening.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2022-04-12 22:21:52 +02:00
1 parent b37fa2b417
commit 86c1398778
1 file changed
+1 -1
+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 -a", "swapoff");
run_interactive("swapoff -a", "Disabling system swap");
/* ... unmount remaining regular file systems. */
unmount_regular();