From a3d76c58a49bcb1b2f48d8b350c4683425195734 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Wed, 21 Jan 2015 19:34:01 +0100 Subject: [PATCH] Expand on how plugins can interact with system bootstrap. Signed-off-by: Joachim Nilsson --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 3ecdfcea..ca71a963 100644 --- a/README.md +++ b/README.md @@ -206,6 +206,16 @@ parallel and `run` in sequence, and in the order listed. Hence, to emulate a SysV `/etc/init.d/rcS` one could write a long file with only `run` statments. +Notice the five hook points that are called at various point in the +bootstrap process. This is where plugins can extend the boot in any way +they please. + +For instance, at `HOOK_BASEFS_UP` a plugin could read an XML file from a +USB stick, convert/copy its contents to the system's `/etc/` directory, +well before all 'S' runlevel tasks are started. This could be used with +system images that are created read-only and all configuration is stored +on external media. + Runlevels ---------