From 9210d8624c44d0efda356d4bbd7ac44b0afd60b9 Mon Sep 17 00:00:00 2001 From: "Devin J. Pohly" Date: Sat, 26 Nov 2011 12:47:30 +0100 Subject: hooks: add shutdown_preumount hook This would be useful for filesystem monitoring software which needs to capture all changes to the filesystem - including the final writes to the random seed and wtmp. [tomegun: this hook is now the same as the postkillall hook, but that might change, so I agree with adding it for the sake of having sane semantics.] Signed-off-by: Devin J. Pohly Signed-off-by: Tom Gundersen --- rc.shutdown | 2 ++ 1 file changed, 2 insertions(+) (limited to '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" -- cgit v1.2.3