From a0b0824e1f5a4fac989e2e6e33151afdf04dddc3aa652f44589ae2e302187e71 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Tue, 1 Sep 2015 23:16:44 +0000 Subject: [PATCH] Accepting request 328398 from home:wolfi323:branches:Virtualization - Install and enable the vboxadd-service init script, to make auto-mounting of shared folders and time synchronization work - Install VBoxService to /usr/sbin/ instead of /usr/bin/ so that vboxadd-service can find it, it cannot be run as user anyway - Create the /media folder with appropriate permissions on distributions higher than 13.1, it doesn't exist any more and the one that VBoxService creates automatically cannot be accessed by normal users - Fixes boo#908669 and boo#936254 OBS-URL: https://build.opensuse.org/request/show/328398 OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=221 --- virtualbox.changes | 13 +++++++++++++ virtualbox.spec | 18 ++++++++++++++++-- 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/virtualbox.changes b/virtualbox.changes index f055496..c4b37b1 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Tue Sep 1 15:03:14 UTC 2015 - wbauer@tmo.at + +- Install and enable the vboxadd-service init script, to make + auto-mounting of shared folders and time synchronization work +- Install VBoxService to /usr/sbin/ instead of /usr/bin/ so that + vboxadd-service can find it, it cannot be run as user anyway +- Create the /media folder with appropriate permissions on + distributions higher than 13.1, it doesn't exist any more and the + one that VBoxService creates automatically cannot be accessed by + normal users +- Fixes boo#908669 and boo#936254 + ------------------------------------------------------------------- Fri Aug 14 13:23:25 UTC 2015 - Larry.Finger@lwfinger.net diff --git a/virtualbox.spec b/virtualbox.spec index 5cc4b37..9b1978f 100644 --- a/virtualbox.spec +++ b/virtualbox.spec @@ -445,12 +445,18 @@ done echo "entering guest-tools install section" ########################################### install -m 755 out/linux.*/release/bin/additions/VBoxControl %{buildroot}%{_bindir}/VBoxControl -install -m 755 out/linux.*/release/bin/additions/VBoxService %{buildroot}%{_bindir}/VBoxService +install -m 755 out/linux.*/release/bin/additions/VBoxService %{buildroot}%{_sbindir}/VBoxService install -m 755 out/linux.*/release/bin/additions/mount.vboxsf %{buildroot}/sbin/mount.vboxsf install -m 744 src/VBox/Additions/linux/installer/vboxadd.sh %{buildroot}%{_sysconfdir}/init.d/vboxadd +install -m 744 src/VBox/Additions/linux/installer/vboxadd-service.sh %{buildroot}%{_sysconfdir}/init.d/vboxadd-service ln -s %{_sysconfdir}/init.d/vboxadd %{buildroot}%{_sbindir}/rcvboxadd +ln -s %{_sysconfdir}/init.d/vboxadd-service %{buildroot}%{_sbindir}/rcvboxadd-service # udev rule for guest (virtualbox-guest-tools) install -m 644 %{SOURCE3} %{buildroot}%{_udevrulesdir}/60-vboxguest.rules +# /media is used for auto-mounting of shared folders +%if 0%{?suse_version} > 1310 +install -d 755 %{buildroot}/media +%endif # ############################################################## echo "entering guest-x11 install section" @@ -641,6 +647,7 @@ getent group vboxsf >/dev/null || groupadd -r vboxsf %post guest-tools %fillup_and_insserv -f -y vboxadd +%fillup_and_insserv -f -y vboxadd-service %post websrv %fillup_and_insserv -f -y vboxweb-service @@ -653,6 +660,7 @@ getent group vboxsf >/dev/null || groupadd -r vboxsf exit 0 %preun guest-tools +%stop_on_removal vboxadd-service %stop_on_removal vboxadd exit 0 @@ -671,6 +679,7 @@ exit 0 %postun guest-tools %restart_on_update vboxadd +%restart_on_update vboxadd-service %insserv_cleanup %postun websrv @@ -781,11 +790,16 @@ exit 0 %files guest-tools %defattr(-, root, root) %{_bindir}/VBoxControl -%{_bindir}/VBoxService +%{_sbindir}/VBoxService /sbin/mount.vboxsf %{_udevrulesdir}/60-vboxguest.rules %config %{_sysconfdir}/init.d/vboxadd +%config %{_sysconfdir}/init.d/vboxadd-service %{_sbindir}/rcvboxadd +%{_sbindir}/rcvboxadd-service +%if 0%{?suse_version} > 1310 +%dir /media +%endif %files -n python-%{name} -f %{_tmppath}/SITE_FILES %defattr(-, root, root)