aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-08-13 10:21:10 +0300
committerCem Keylan <cem@ckyln.com>2020-08-13 10:21:10 +0300
commit95c655caffe9bd2c1cc2e99dda79cfeac4455fad (patch)
treea1f512f750d4567971c8e7b7016068bd54b1ea48
parent4dfeb5c8d100ffaa600fed52fc3b80efc02e4bba (diff)
downloadinit-95c655caffe9bd2c1cc2e99dda79cfeac4455fad.tar.gz
rc.shutdown: sync before unmounting file systems
-rwxr-xr-xrc.shutdown1
1 files changed, 1 insertions, 0 deletions
diff --git a/rc.shutdown b/rc.shutdown
index daa346d..4a0bee3 100755
--- a/rc.shutdown
+++ b/rc.shutdown
@@ -30,6 +30,7 @@ out "Sending KILL signal to all processes..."; {
}
out "Unmounting filesystems and disabling swap..."; {
+ sync
swapoff -a
umount -rat nosysfs,noproc,nodevtmpfs,notmpfs
} 2>&1 | log