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

Is there a customisation hook? #15

Open
SvenDowideit opened this issue Nov 25, 2021 · 6 comments
Open

Is there a customisation hook? #15

SvenDowideit opened this issue Nov 25, 2021 · 6 comments

Comments

@SvenDowideit
Copy link

SvenDowideit commented Nov 25, 2021

I'd love to add a URL to a bash script that gets called at the end of the provisioning (of any Linux based profile).

I've not found mention of one, but I thought I'd check before i go deeply in the wrong direction :)

Ideally, this script would be generated by ESP based based on running an ESP side customisation hook

yes, I'm pondering how to make a pre-FDO magic deployment and onboarding network...

@inteltiger
Copy link
Contributor

@dvintel
Copy link
Contributor

dvintel commented Dec 3, 2021

Hi @SvenDowideit, the idea behind having profiles is exactly this. You can clone a sample profile and add a step at the end to meet your specific requirements.

If you would like even more flexibility in the tool, you could put in a feature request. Something like: "Add ability to call a custom script at the end of a build" or something similar.

@brod-intel
Copy link
Contributor

Sven this may exist already. Can you explain what you are thinking?

@SvenDowideit
Copy link
Author

SvenDowideit commented Dec 6, 2021

@dvintel that sounds like what I was wondering - and I asked this way explicitly because i don't know if it might already exist :)

basically, I was wondering if making my own profile was the only way to add a trivial post step - which then means we're all maintaining forks, and needing to get the updated, instead of (somehow?) being able to do something like Set a POST_SCRIPT env var that is a URL to an external script on "this" container, and the device will curl and sh it.

honestly, there's so much magic in ESP that i'm hoping for shortcuts

@dvintel
Copy link
Contributor

dvintel commented Dec 6, 2021

@brod-intel, are you thinking of something like having @SvenDowideit add a line to the bottom of his custom profile, similar to: https://github.com/intel/rni-profile-base-ubuntu/blob/slim/bootstrap.sh

That's an easy way to get the desired effect, but I think @SvenDowideit wants one step further that would enable him to add another call without having to have a custom profile.

@SvenDowideit
Copy link
Author

Actually - the basic reason I originally thought of this, is i'd like to make a final customisation script that could be pplied to most, if not all exiting profiles - given that I mostly work via containers :)

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

4 participants