summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Rößler2013-09-11 18:05:59 +0200
committerChristian Rößler2013-09-11 18:05:59 +0200
commitde4af34a4aae8494c26ca812fcc64e898d00e16a (patch)
treec46fda1925bf5bd0db48979782e93f8474e501a5
parent[german] conf: directory names corrected: lowercase, minus hyphen (diff)
downloadtm-scripts-de4af34a4aae8494c26ca812fcc64e898d00e16a.tar.gz
tm-scripts-de4af34a4aae8494c26ca812fcc64e898d00e16a.tar.xz
tm-scripts-de4af34a4aae8494c26ca812fcc64e898d00e16a.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