summaryrefslogtreecommitdiffstats
path: root/builder/modules.d/slx-splash/module-setup.sh
diff options
context:
space:
mode:
authorJonathan Bauer2018-05-23 12:09:49 +0200
committerJonathan Bauer2018-05-23 12:09:49 +0200
commit9149d134cdd6c214ba0c253b8e9912ff8ff75045 (patch)
tree9b51aa87c804246a218444655bbfcf290eaeee25 /builder/modules.d/slx-splash/module-setup.sh
parentupdate to dracut v47 (diff)
downloadsystemd-init-9149d134cdd6c214ba0c253b8e9912ff8ff75045.tar.gz
systemd-init-9149d134cdd6c214ba0c253b8e9912ff8ff75045.tar.xz
systemd-init-9149d134cdd6c214ba0c253b8e9912ff8ff75045.zip
new slx-drm and slx-splash (PoC) modules
slx-drm pulls in dracut's drm module and provides a modprobe.d configurations file to always prioritize nvidia drivers, falling back to nouveau on failures. slx-splash uses the slx busybox's fbsplash (WIP). Busybox is still missing from defaults builds, so this won't function out of the box!
Diffstat (limited to 'builder/modules.d/slx-splash/module-setup.sh')
-rwxr-xr-xbuilder/modules.d/slx-splash/module-setup.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/builder/modules.d/slx-splash/module-setup.sh b/builder/modules.d/slx-splash/module-setup.sh
new file mode 100755
index 00000000..6abd06e0
--- /dev/null
+++ b/builder/modules.d/slx-splash/module-setup.sh
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+check() {
+ # Tell dracut that this module should only be included if it is required
+ # explicitly.
+ return 255
+}
+depends() {
+ echo slx-drm
+}
+install() {
+ cp "$moddir/data/splash.ppm.gz" "$initdir/etc/splash.ppm.gz"
+ inst_hook pre-trigger 10 "$moddir/scripts/slx-splash.sh"
+}