summaryrefslogtreecommitdiffstats
path: root/remote/modules/vmware/vmware.build
diff options
context:
space:
mode:
authorJonathan Bauer2014-03-24 18:36:04 +0100
committerJonathan Bauer2014-03-24 18:36:04 +0100
commita4d56f70c9e960517cb32d2463e87b554eb483c0 (patch)
tree0ea885ada78465356ae070de033b210927253f5d /remote/modules/vmware/vmware.build
parent[dhcpc-busybox] fix bad hostname setting logic (diff)
parent[vmware] vmware.conf.ubuntu added, var REQUIRED_VMWARE_DELETIONS as file/dir (diff)
downloadtm-scripts-a4d56f70c9e960517cb32d2463e87b554eb483c0.tar.gz
tm-scripts-a4d56f70c9e960517cb32d2463e87b554eb483c0.tar.xz
tm-scripts-a4d56f70c9e960517cb32d2463e87b554eb483c0.zip
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
Diffstat (limited to 'remote/modules/vmware/vmware.build')
-rw-r--r--remote/modules/vmware/vmware.build5
1 files changed, 5 insertions, 0 deletions
diff --git a/remote/modules/vmware/vmware.build b/remote/modules/vmware/vmware.build
index 5d91b02d..98ee2b8d 100644
--- a/remote/modules/vmware/vmware.build
+++ b/remote/modules/vmware/vmware.build
@@ -21,6 +21,8 @@ fetch_source() {
}
build() {
+ local DELETE_FILES
+ DELETE_FILES=$(for LINE in $REQUIRED_VMWARE_DELETIONS;do echo rm -rf $LINE; done)
# prepare the build directory with the files needed during the chroot
cp "${MODULE_DIR}/src/$VMWARE_BUNDLE_FILE" "${MODULE_BUILD_DIR}/$VMWARE_BUNDLE_FILE"
@@ -31,9 +33,12 @@ build() {
pinfo "Installing vmware per chroot..."
chroot_run "${MODULE_BUILD_DIR}" <<-EOF
+ # PS1='\[\e[1;33m\](chroot) \u@\h:\w\$ \[\e[1;32m\]' /bin/bash -norc # un-comment for debugging within chroot
+ $DELETE_FILES
yes | sh /"${VMWARE_BUNDLE_FILE}" --eulas-agreed --console --required
vmware-modconfig --console --build-mod -k "${SYS_UTS_RELEASE}" vmnet $(which gcc) "${KERNEL_HEADERS_PATH}/include" vmplayer vmnet
vmware-modconfig --console --build-mod -k "${SYS_UTS_RELEASE}" vmmon $(which gcc) "${KERNEL_HEADERS_PATH}/include" vmplayer vmmon
+ # PS1='\[\e[1;33m\](chroot) \u@\h:\w\$ \[\e[1;32m\]' /bin/bash -norc # un-comment for debugging within chroot
EOF
# cleanup unneeded files