troglobit / finit

Fast init for Linux. Cookies included
https://troglobit.com/projects/finit/
MIT License
621 stars 61 forks source link

plugins: hook-scripts: new plugin for run-parts scripts on hooks #262

Closed wkz closed 2 years ago

wkz commented 2 years ago

Add a plugin that will allow the user to trigger the execution of scripts from plugin hook points. This is particularly useful for early boot debugging that needs to take place before regular services are available.

For example, let's say that you want to enable some kernel tracing before modules are loaded. With hook-scripts, you can just drop in a shell script in /libexec/finit/hook/mount/all/ that will poke the right control files in tracefs.