Add prototypes for build-specific tuning:

- vm_prebuild_setup():
	Steps to run prior to creating the file-backed
	disk image.

 - vm_setup():
	Steps to run while the file-backed disk image
	is mounted.

 - vm_postbuild_setup():
	Steps to run after the file-backed disk image
	is dismounted.

The intention is to override as necessary via build
configuration files, as needed.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Glen Barber 2014-10-09 03:29:52 +00:00
parent 655f2eb770
commit ed79fb4ea9
2 changed files with 24 additions and 0 deletions

View File

@ -35,6 +35,18 @@
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
export PATH
vm_prebuild_setup() {
return 0
}
vm_setup() {
return 0
}
vm_postbuild_setup() {
return 0
}
usage_vm_base() {
echo -n "$(basename ${0}) vm-base <base image> <source tree>"
echo " <dest dir> <disk image size>"

View File

@ -35,6 +35,18 @@
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
export PATH
vm_prebuild_setup() {
return 0
}
vm_setup() {
return 0
}
vm_postbuild_setup() {
return 0
}
usage_vm_base() {
echo -n "$(basename ${0}) vm-base <base image> <source tree>"
echo " <dest dir> <disk image size>"