Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run HOST commands before FROM/INPLACE #63

Open
aniongithub opened this issue Mar 7, 2023 · 1 comment
Open

Cannot run HOST commands before FROM/INPLACE #63

aniongithub opened this issue Mar 7, 2023 · 1 comment

Comments

@aniongithub
Copy link
Contributor

However, this may be needed if we're creating the image from scratch or copying/modifying files from a raw rootfs or any other unforeseen scenario.

In any case, disallowing HOST before FROM/TO or INPLACE is unnecessary as they can always run regardless of chroot setup.

@oxzi
Copy link
Member

oxzi commented Mar 20, 2023

Thanks a lot for your request.

Based on pimod's stage based architecture, the setup stage's commands (FROM, TO, INPLACE) are always executed before those commands of the chroot stage (like HOST).
I just realized this isn't really documented in the README file, but more in the linked paper in section IV. Implementation. I am going to update the README to create a better understanding of pimod's internals and how those are affecting its usage.

However, back to your request, is there a real need for such a pre-stage, being executed before something else? Maybe this might be even out of pimod's scope? Please feel free to express your opinion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants