summaryrefslogtreecommitdiffstats
path: root/remote
diff options
context:
space:
mode:
Diffstat (limited to 'remote')
-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