summaryrefslogtreecommitdiffstats
path: root/builder/modules.d/slx-splash
diff options
context:
space:
mode:
Diffstat (limited to 'builder/modules.d/slx-splash')
-rw-r--r--builder/modules.d/slx-splash/data/splash.ppm.gzbin11233 -> 0 bytes
-rwxr-xr-xbuilder/modules.d/slx-splash/module-setup.sh14
-rw-r--r--builder/modules.d/slx-splash/scripts/restore-cursor.sh11
-rw-r--r--builder/modules.d/slx-splash/scripts/slx-splash.sh44
4 files changed, 0 insertions, 69 deletions
diff --git a/builder/modules.d/slx-splash/data/splash.ppm.gz b/builder/modules.d/slx-splash/data/splash.ppm.gz
deleted file mode 100644
index d30d44e2..00000000
--- a/builder/modules.d/slx-splash/data/splash.ppm.gz
+++ /dev/null
Binary files differ
diff --git a/builder/modules.d/slx-splash/module-setup.sh b/builder/modules.d/slx-splash/module-setup.sh
deleted file mode 100755
index 05542269..00000000
--- a/builder/modules.d/slx-splash/module-setup.sh
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/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"
- inst_hook pre-pivot 20 "$moddir/scripts/restore-cursor.sh"
-}
diff --git a/builder/modules.d/slx-splash/scripts/restore-cursor.sh b/builder/modules.d/slx-splash/scripts/restore-cursor.sh
deleted file mode 100644
index 4ba9880d..00000000
--- a/builder/modules.d/slx-splash/scripts/restore-cursor.sh
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/usr/bin/env bash
-#
-# The console cursor is disabled when starting the splash screen.
-# This will add a drop-in to getty@.service to ensure the cursor
-# is restored when starting gettys.
-
-mkdir -p "$NEWROOT/etc/systemd/system/getty@.service.d/"
-cat <<- EOF > "$NEWROOT/etc/systemd/system/getty@.service.d/restore-cursor.conf"
- [Service]
- ExecStartPre=-/usr/bin/env bash -c "echo -en '\033c' > /dev/%I"
-EOF
diff --git a/builder/modules.d/slx-splash/scripts/slx-splash.sh b/builder/modules.d/slx-splash/scripts/slx-splash.sh
deleted file mode 100644
index 7381997b..00000000
--- a/builder/modules.d/slx-splash/scripts/slx-splash.sh
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/usr/bin/env bash
-
-show_splash() {
- if [ -e "/etc/splash.ppm.gz" ]; then
- systemd-preserve-process-marker /bin/busybox fbsplash -x -b -s "/etc/splash.ppm.gz" &
- elif [ -e "/etc/splash.ppm" ]; then
- systemd-preserve-process-marker /bin/busybox fbsplash -x -b -s "/etc/splash.ppm" &
- else
- echo "Splash screen requested, but not found in initramfs..."
- fi
-}
-
-init_drm() {
- # taken from dracut's plymouth module
- # first trigger graphics subsystem
- udevadm trigger --action=add --attr-match=class=0x030000 >/dev/null 2>&1
- # first trigger graphics and tty subsystem
- udevadm trigger --action=add \
- --subsystem-match=graphics \
- --subsystem-match=drm \
- --subsystem-match=tty \
- --subsystem-match=acpi \
- >/dev/null 2>&1
-
- udevadm settle --timeout=180 2>&1
-}
-
-if grep -wqE 'splash' /proc/cmdline; then
- # first init graphics
- init_drm
- # disable non-critical kernel messages
- echo "1 1 0 1" > /proc/sys/kernel/printk
- # disable systemd's status message on console
- # See: https://www.freedesktop.org/software/systemd/man/systemd.html#Signals
- kill -55 1
- # clear console
- busybox clear
- # disable cursor
- echo -e "\033[?25l" > /dev/console
- # finally:
- show_splash
-fi
-
-true