On Wed, Jul 11, 2018 at 12:58:44AM -0400, Jon Ringle wrote: > On Tue, Jul 10, 2018 at 3:48 AM Michael Olbrich > <[email protected]> wrote: > If you look into the `init` script and the `scripts/local` and > `scripts/nfs` scripts, you'll see that there are predefined hooks > where it call `run_scripts ...` with some predetermined directory > names. The package only provides some scripts in `scripts/init-top`, > and `scripts/local-premount`, but the hooks in the scripts allow for > the user to provide scripts in any of these directories: > init script calls: > run_scripts /scripts/init-top > run_scripts /scripts/init-premount > mount_top (depending on ${BOOT} value which should be either "local" > or "nfs", will call the function of that name in `local` or `nfs` > scripts, which will call either: `run_scripts /scripts/local-top` or > `run_scripts /scripts/nfs-top`) > mount_premount (same logic as mount_top... resolving to either > `run_scripts /scripts/local-premount` or `run_scripts > /scripts/nfs-premount`) > mount_bottom (ditto) > mountroot (defined in /scripts/local or /scripts/nfs) > > In all the following are the possible trees of user defined scripts > that could be installed: > /scripts/init-top > /scripts/init-premount > /scripts/init-bottom > /scripts/local-top > /scripts/local-block > /scripts/local-premount > /scripts/local-bottom > /scripts/nfs-top > /scripts/nfs-premount > /scripts/nfs-bottom > > I could just do an $(install_alternative_tree ...) for each of the above?
That sounds good. Note, that install_alternative_tree will fail if no source directory is found. So you either need to make them optional or create empty directories. Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ ptxdist mailing list [email protected]
