mirror of
https://github.com/troglobit/finit.git
synced 2026-10-27 12:20:54 +00:00
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:
1 parent
c969bda62d
commit
7f62a69f74
2 files changed
+4
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user