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

Add support for FreeBSD "firstboot" script #22

Open
calvinhp opened this issue Jan 27, 2015 · 1 comment
Open

Add support for FreeBSD "firstboot" script #22

calvinhp opened this issue Jan 27, 2015 · 1 comment

Comments

@calvinhp
Copy link

It would be really nice to have a way to spin the machine up and do some setup things like get salt installed and pre-seeded with their respective master and to put them into a "highstate" on the first boot of the VM.

Maybe the template can specify a vm_firstboot FreeBSD specific key that can contain the path to a script to put inplace as firstboot on the filesystem?

@michaeldexter
Copy link
Owner

Note that the VM directory has a number of scripts and log that are generated at the first boot.

You should be able to simply check for the existence of $host_vmdir/$1/bhyve_cmd.sh with a preflight script. This is more or less what I would have to do to determine if the VM has been booted or not.

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