diff options
-rw-r--r-- | functions | 1 | ||||
-rwxr-xr-x | rc.shutdown | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -555,6 +555,7 @@ bootlogd_stop() { # single_prekillall: before all processes are being killed in rc.single # shutdown_postkillall: after all processes have been killed in rc.shutdown # single_postkillall: after all processes have been killed in rc.single +# shutdown_preumount: after last filesystem write, but before filesystems are unmounted # shutdown_postumount: after filesystems are unmounted # shutdown_poweroff: directly before powering off in rc.shutdown # diff --git a/rc.shutdown b/rc.shutdown index 30708ce..4b513f7 100755 --- a/rc.shutdown +++ b/rc.shutdown @@ -50,6 +50,8 @@ kill_all run_hook shutdown_postkillall +run_hook shutdown_preumount + # unmount any non-api partitions that are backed by swap, we don't want to # move their contents into memory (waste of time and might caues OOM). status "Unmounting Swap-backed Filesystems" umount_all "tmpfs" |