Run on activate / deactivate

written by Tomas M. 5 years ago

There was some confusion recently regarding how does the post-install feature work in Slax modules. So here is a short desscription. If you activate a module, it does this:

1) mount the module
2) add to aufs union to merge with current root filesystem
3) execute ./run/ from the module

If your module A requires other module B, it works this way:

1) mount module A
2) mount module B
3) add module B to aufs union
4) run ./run/ from module B
5) add module A to aufs union
6) run ./run/ from module A

So in general, the activation script is called for every module after it gets merged with the aufs unioned root. And in general, every module is added to aufs union only after all dependencies are firstly activated. It's recursive.

Tomas M.

(c) 2018, Tomas M; rss