aboutsummaryrefslogtreecommitdiff
path: root/release/i386
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2014-10-09 03:29:52 +0000
committerGlen Barber <gjb@FreeBSD.org>2014-10-09 03:29:52 +0000
commited79fb4ea9f41c41da98ff469f5aac5dfa435320 (patch)
tree67a64a5bdc63da7ffdae9c9ec5a4d00197d9cd6a /release/i386
parent655f2eb77006f34364c87647c1be210dc051f926 (diff)
downloadsrc-ed79fb4ea9f41c41da98ff469f5aac5dfa435320.tar.gz
src-ed79fb4ea9f41c41da98ff469f5aac5dfa435320.zip
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
Notes
Notes: svn path=/projects/release-vmimage/; revision=272793
Diffstat (limited to 'release/i386')
-rwxr-xr-xrelease/i386/mk-vmimage.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/release/i386/mk-vmimage.sh b/release/i386/mk-vmimage.sh
index b3ffd232f848..657fa52d37fa 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>"