Skip to content

Q. re. plugins #61

Answered by gitbls
dshaw619 asked this question in Q&A
Jan 25, 2023 · 4 comments · 8 replies
Discussion options

You must be logged in to vote

Great questions! I just looked at the docs, and indeed...the questions you are asking are not answered there, so will do some wordsmithing there once the extent of the gap is clear.

Here's what I think is the missing piece: How Plugins work

When a --plugin plug-name switch is given, all 3 phases of the plugin plug-name are called, and in a context that is correct for each phase (Phase 0, Phase 1, post-install). This means that

  • Phase 0 code can make references to the network, host storage, etc.
  • Phase 1 and post-install code runs in a container and can only see local storage in the container (IMG, SSD/SD, etc)

In the case of --customize, the 3 phases of the plugin are called by sdm at the…

Replies: 4 comments 8 replies

Comment options

You must be logged in to vote
2 replies
@dshaw619
Comment options

@gitbls
Comment options

Answer selected by dshaw619
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@dshaw619
Comment options

@gitbls
Comment options

Comment options

You must be logged in to vote
4 replies
@dshaw619
Comment options

@gitbls
Comment options

@1stcall
Comment options

@dshaw619
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants