Accepting request 453980 from home:Bumblebee-Project:branches:X11:Bumblebee
Start the dkms service before the display-manager service. Needed for the nvidia dkms module. Make the module building more secure with only root permissions to the build dir. OBS-URL: https://build.opensuse.org/request/show/453980 OBS-URL: https://build.opensuse.org/package/show/X11:Bumblebee/dkms?expand=0&rev=18
This commit is contained in:
parent
2e57348044
commit
8df0ee7d04
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 1 09:50:43 UTC 2017 - bumblebee.obs@gmail.com
|
||||
|
||||
- Start the dkms service before the display-manager service
|
||||
for the nvidia modules.
|
||||
- Make the module build more secure (JPoortvliet@suse.de)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 15 05:30:21 UTC 2017 - i@marguerite.su
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
[Unit]
|
||||
Description=Dynamic Kernel Modules System
|
||||
Before=display-manager.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
@ -83,6 +83,14 @@ rm -rf %{buildroot}%{_sysconfdir}/rc.d/init.d/dkms_autoinstaller
|
||||
exit 0
|
||||
|
||||
%post
|
||||
# make it more secure
|
||||
if [ ! -d %{_tmppath}/dkms ] ;
|
||||
then
|
||||
mkdir -p %{_tmppath}/dkms
|
||||
chmod 700 %{_tmppath}/dkms
|
||||
fi
|
||||
sed -i -e 's,# tmp_location="/tmp",tmp_location="%{_tmppath}/dkms",' %{_sysconfdir}/dkms/framework.conf
|
||||
|
||||
# enable on initial install
|
||||
%service_add_post dkms.service
|
||||
exit 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user