From de4af34a4aae8494c26ca812fcc64e898d00e16a Mon Sep 17 00:00:00 2001 From: Christian Rößler Date: Wed, 11 Sep 2013 18:05:59 +0200 Subject: [vbox] Added path patch for vboxheadless, debian/ubuntu suid VBoxHeadless --- remote/modules/vbox/vbox.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-55-g7522