mirror of
https://github.com/gryf/gryf-overlay.git
synced 2026-04-21 10:21:24 +02:00
Make virtualbox-guest-additions to compile
Currently official build for guest additions will fail due to some unset/wrong set variables. This is an workaround for it - added KERN_VER variable which is set to current kernel version, so this ebuild cannot be run against new kernel version while executed on older/other kernel version.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=VirtualBox Guest Additions
|
||||
ConditionVirtualization=oracle
|
||||
Before=display-manager.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStartPre=/sbin/modprobe vboxguest
|
||||
ExecStartPre=/sbin/modprobe vboxsf
|
||||
ExecStart=/usr/sbin/vboxguest-service --foreground
|
||||
ExecStopPost=/sbin/modprobe -r vboxsf
|
||||
ExecStopPost=/sbin/modprobe -r vboxguest
|
||||
PIDFile=/var/run/vboxguest-service.pid
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user