diff options
author | gjb <gjb@FreeBSD.org> | 2014-10-09 03:29:52 +0000 |
---|---|---|
committer | gjb <gjb@FreeBSD.org> | 2014-10-09 03:29:52 +0000 |
commit | c7959ee139df450936383305caeccad4b39d1a7e (patch) | |
tree | 67a64a5bdc63da7ffdae9c9ec5a4d00197d9cd6a /release | |
parent | c40726934a0804f998b7ca499718750b6502cb3c (diff) | |
download | FreeBSD-src-c7959ee139df450936383305caeccad4b39d1a7e.zip FreeBSD-src-c7959ee139df450936383305caeccad4b39d1a7e.tar.gz |
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
Diffstat (limited to 'release')
-rwxr-xr-x | release/amd64/mk-vmimage.sh | 12 | ||||
-rwxr-xr-x | release/i386/mk-vmimage.sh | 12 |
2 files changed, 24 insertions, 0 deletions
diff --git a/release/amd64/mk-vmimage.sh b/release/amd64/mk-vmimage.sh index b3ffd23..657fa52 100755 --- a/release/amd64/mk-vmimage.sh +++ b/release/amd64/mk-vmimage.sh @@ -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>" diff --git a/release/i386/mk-vmimage.sh b/release/i386/mk-vmimage.sh index b3ffd23..657fa52 100755 --- a/release/i386/mk-vmimage.sh +++ b/release/i386/mk-vmimage.sh @@ -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>" |