summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-05-12 02:45:12 +0200
committerDave Reisner <dreisner@archlinux.org>2012-05-18 15:39:04 +0200
commitd858992503af95549961d982b98a727a2ede937e (patch)
treeda0694fbf5a268aa853511b001feea872f90381f /install
parent0ccb5f6e037bcbb0817cdb76274a37624c28cb5a (diff)
downloadmkinitcpio-d858992503af95549961d982b98a727a2ede937e.tar.gz
mkinitcpio-d858992503af95549961d982b98a727a2ede937e.tar.xz
init: add support for early, late and cleanup hooks
This adds support for three more rounds of hooks during early userspace. Users can define a 'run_latehook' in their hook script similar to the declaration of 'run_hook' (which continue to run at the same point in execution). These are run in the same order as the original "early" hooks shortly after root is mounted. Additionally, 'run_cleanup' hook can be defined which will run right after the late hooks. These scripts are executed after mounting root in reverse order of how they're clared in mkinitcpio'c config. These late running hooks should take care of things such as: - mounting /usr (possibly encrypted) - moving config to the real root (mostly for liveCDs) - shutting down previously started daemons (e.g. udev or dropbear) Finally, we add run_earlyhook which is run as soon as possible. There will likely be only a few subscribers to this, but udev will certainly be one of them, as it needs to be started as early as possible when present, to avoid problems with firmware loading. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'install')
0 files changed, 0 insertions, 0 deletions