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:
parent
655f2eb770
commit
ed79fb4ea9
@ -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>"
|
||||
|
@ -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>"
|
||||
|
Loading…
Reference in New Issue
Block a user