aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-09-13 21:33:30 +0300
committerCem Keylan <cem@ckyln.com>2020-09-13 21:33:30 +0300
commitaadceacdbcb1c381247e6d3dbd465ac929d46e68 (patch)
tree7edd0b110a4c207df9c11b9b8518308628abf814
parent263ba8f1f634fecdb72ab5665ab7fd7849826d27 (diff)
downloadinit-aadceacdbcb1c381247e6d3dbd465ac929d46e68.tar.gz
init: add unmount hooks
-rwxr-xr-xrc.shutdown1
1 files changed, 1 insertions, 0 deletions
diff --git a/rc.shutdown b/rc.shutdown
index 4a0bee3..f159174 100755
--- a/rc.shutdown
+++ b/rc.shutdown
@@ -33,6 +33,7 @@ out "Unmounting filesystems and disabling swap..."; {
sync
swapoff -a
umount -rat nosysfs,noproc,nodevtmpfs,notmpfs
+ run_hook umount
} 2>&1 | log
out "Remounting rootfs as readonly..."; {