summaryrefslogtreecommitdiffstats
path: root/core/modules/gfx-driver
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/gfx-driver')
-rw-r--r--core/modules/gfx-driver/data/etc/systemd/system/load-gfx-driver.service9
l---------core/modules/gfx-driver/data/etc/systemd/system/sysinit.target.wants/load-gfx-driver.service1
-rwxr-xr-xcore/modules/gfx-driver/data/opt/openslx/scripts/systemd-load_gfx_driver7
-rw-r--r--core/modules/gfx-driver/module.build12
-rw-r--r--core/modules/gfx-driver/module.conf3
5 files changed, 32 insertions, 0 deletions
diff --git a/core/modules/gfx-driver/data/etc/systemd/system/load-gfx-driver.service b/core/modules/gfx-driver/data/etc/systemd/system/load-gfx-driver.service
new file mode 100644
index 00000000..0534f45c
--- /dev/null
+++ b/core/modules/gfx-driver/data/etc/systemd/system/load-gfx-driver.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Load DRM GFX driver and 3D
+Before=sysinit.target shutdown.target
+DefaultDependencies=no
+
+[Service]
+Type=oneshot
+ExecStart=/opt/openslx/scripts/systemd-load_gfx_driver
+RemainAfterExit=yes
diff --git a/core/modules/gfx-driver/data/etc/systemd/system/sysinit.target.wants/load-gfx-driver.service b/core/modules/gfx-driver/data/etc/systemd/system/sysinit.target.wants/load-gfx-driver.service
new file mode 120000
index 00000000..b72d0453
--- /dev/null
+++ b/core/modules/gfx-driver/data/etc/systemd/system/sysinit.target.wants/load-gfx-driver.service
@@ -0,0 +1 @@
+../load-gfx-driver.service \ No newline at end of file
diff --git a/core/modules/gfx-driver/data/opt/openslx/scripts/systemd-load_gfx_driver b/core/modules/gfx-driver/data/opt/openslx/scripts/systemd-load_gfx_driver
new file mode 100755
index 00000000..7d6ddb88
--- /dev/null
+++ b/core/modules/gfx-driver/data/opt/openslx/scripts/systemd-load_gfx_driver
@@ -0,0 +1,7 @@
+#!/bin/ash
+# nvidia-libs is handled as a stage4 addon during stage3
+
+# Seems we can finally always do that; in fact, not doing so seems to crash VMs left and right
+echo -e "# Written by load-gfx-driver\nSLX_VMWARE_3D=yes" >> "/opt/openslx/config"
+
+exit 0
diff --git a/core/modules/gfx-driver/module.build b/core/modules/gfx-driver/module.build
new file mode 100644
index 00000000..241bcd5e
--- /dev/null
+++ b/core/modules/gfx-driver/module.build
@@ -0,0 +1,12 @@
+#!/bin/bash
+fetch_source() {
+ :
+}
+
+build() {
+ pinfo "Static module, nothing to build."
+}
+
+post_copy() {
+ :
+}
diff --git a/core/modules/gfx-driver/module.conf b/core/modules/gfx-driver/module.conf
new file mode 100644
index 00000000..bcd2acc3
--- /dev/null
+++ b/core/modules/gfx-driver/module.conf
@@ -0,0 +1,3 @@
+REQUIRED_MODULES="
+ rootfs-kernel
+"