summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Rößler2013-09-11 18:05:59 +0200
committerJonathan Bauer2013-09-30 13:22:06 +0200
commit49cd6aa058ea1c47a474bf5f867585eee608c8f0 (patch)
treea0d360b689f5b0fe07a417365d47a43acfbc0093
parent[german] conf: directory names corrected: lowercase, minus hyphen (diff)
downloadtm-scripts-49cd6aa058ea1c47a474bf5f867585eee608c8f0.tar.gz
tm-scripts-49cd6aa058ea1c47a474bf5f867585eee608c8f0.tar.xz
tm-scripts-49cd6aa058ea1c47a474bf5f867585eee608c8f0.zip
[vbox] Added path patch for vboxheadless, debian/ubuntu suid VBoxHeadless
-rw-r--r--remote/modules/vbox/vbox.build3
1 files changed, 2 insertions, 1 deletions
diff --git a/remote/modules/vbox/vbox.build b/remote/modules/vbox/vbox.build
index 48cfe8c2..dfc9d27e 100644
--- a/remote/modules/vbox/vbox.build
+++ b/remote/modules/vbox/vbox.build
@@ -5,7 +5,7 @@ patch_vbox_scripts() {
# openslx paths need to be at the end of PATH to not impede with system binaries to not impede with system binaries
pinfo "Patching virtual box scripts to include openslx (busybox)-paths ..."
# vboxmanage is a link to VBox; will get unlinked. Original link will be vboxmanage.original
- for i in virtualbox vboxmanage; do
+ for i in virtualbox vboxmanage vboxheadless; do
pinfo "Patching virtual box script $i ..."
SCRIPTPATH=$(grep -m 1 PATH "${MODULE_BUILD_DIR}/usr/bin/$i"|sed 's/"//g') # assume first hit is real path
sed -i "-i.original" "/^PATH=/c ${SCRIPTPATH}:/opt/openslx/bin:/opt/openslx/usr/bin:/opt/openslx/sbin"\
@@ -104,6 +104,7 @@ build() {
dpkg -x ../src/vbox/$(basename "$REQUIRED_VBOXBASEURL") . || perror "Could not unpack deb-archive!"
# VirtualBox needs to be suid-root:
chmod u+s ${MODULE_BUILD_DIR}/usr/lib/virtualbox/VirtualBox || pwarning "(Debian/Ubuntu) Could not suid VirtualBox executable!"
+ chmod u+s ${MODULE_BUILD_DIR}/usr/lib/virtualbox/VBoxHeadless || pwarning "(Debian/Ubuntu) Could not suid VirtualBox executable!"
;;
*) perror "Unknown Distribution: $SYS_DISTRIBUTION - Please specify its packet manager in remote/setup_target" ;;
esac