New hook/mount/post, runs after mount -a but before hook/mount/all

This gives the operator a way to add a post-mount script, e.g. to peform
a 2nd stage mount or mount preparations, before the bootmisc.so plugin
and others run in hook/mount/all

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2018-01-18 13:34:28 +01:00
1 parent c969bda62d
commit 7f62a69f74
2 files changed
+4

No files matched your search

+3
View File
@@ -448,6 +448,9 @@ int main(int argc, char* argv[])
if (run_interactive("mount -na", "Mounting filesystems"))
plugin_run_hooks(HOOK_MOUNT_ERROR);
_d("Calling extra mount hook, after mount -a ...");
plugin_run_hooks(HOOK_MOUNT_POST);
run("swapon -ea");
umask(0022);
}