summaryrefslogtreecommitdiffstats
path: root/remote/modules/vmware/vmware.build
diff options
context:
space:
mode:
authorChristian Rößler2014-03-24 16:01:42 +0100
committerChristian Rößler2014-03-24 16:01:42 +0100
commit395f941fda040b0f6b4350869ab6992af10e0977 (patch)
treeb5f181d699ecd8dca4a4045de99a37761246818d /remote/modules/vmware/vmware.build
parent[vmware, chroot] vmware pseudo-deletions in case workstation is installed in (diff)
parent[kernel] remove forgotten pinfo used while dev'ing (diff)
downloadtm-scripts-395f941fda040b0f6b4350869ab6992af10e0977.tar.gz
tm-scripts-395f941fda040b0f6b4350869ab6992af10e0977.tar.xz
tm-scripts-395f941fda040b0f6b4350869ab6992af10e0977.zip
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
Conflicts: remote/modules/vmware/vmware.build
Diffstat (limited to 'remote/modules/vmware/vmware.build')
-rw-r--r--remote/modules/vmware/vmware.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/remote/modules/vmware/vmware.build b/remote/modules/vmware/vmware.build
index b4baf9c2..98ee2b8d 100644
--- a/remote/modules/vmware/vmware.build
+++ b/remote/modules/vmware/vmware.build
@@ -22,12 +22,14 @@ fetch_source() {
build() {
local DELETE_FILES
- local OLDIFS="$IFS"
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"
cp -r "${MODULE_DIR}/patches" "${MODULE_BUILD_DIR}"
+
+ # sanity check to see if KERNEL_HEADERS_PATH is set and exists
+ [ -z "${KERNEL_HEADERS_PATH}" -o ! -e "${KERNEL_HEADERS_PATH}" ] && perror "KERNEL_HEADERS_PATH ('"${KERNEL_HEADERS_PATH}"') not found. Was the kernel module built?"
pinfo "Installing vmware per chroot..."
chroot_run "${MODULE_BUILD_DIR}" <<-EOF