|
Harald Hoyer |
953eb6 |
From 9f630a188942c6d235c3a747d67e44e725d8e869 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
953eb6 |
From: Colin Guthrie <colin@mageia.org>
|
|
Harald Hoyer |
953eb6 |
Date: Sat, 14 Apr 2012 16:03:34 +0100
|
|
Harald Hoyer |
953eb6 |
Subject: [PATCH] Do not run plymouth hook if the binary is missing.
|
|
Harald Hoyer |
953eb6 |
|
|
Harald Hoyer |
953eb6 |
There is a remove-boot-splash script in Mageia that can
|
|
Harald Hoyer |
953eb6 |
strip plymouth from an initrd. Make this script a noop
|
|
Harald Hoyer |
953eb6 |
if that has happened.
|
|
Harald Hoyer |
953eb6 |
---
|
|
Harald Hoyer |
953eb6 |
modules.d/50plymouth/plymouth-pretrigger.sh | 44 ++++++++++++++-------------
|
|
Harald Hoyer |
35271e |
1 file changed, 23 insertions(+), 21 deletions(-)
|
|
Harald Hoyer |
953eb6 |
|
|
Harald Hoyer |
953eb6 |
diff --git a/modules.d/50plymouth/plymouth-pretrigger.sh b/modules.d/50plymouth/plymouth-pretrigger.sh
|
|
Harald Hoyer |
953eb6 |
index 57955e7..50828af 100755
|
|
Harald Hoyer |
953eb6 |
--- a/modules.d/50plymouth/plymouth-pretrigger.sh
|
|
Harald Hoyer |
953eb6 |
+++ b/modules.d/50plymouth/plymouth-pretrigger.sh
|
|
Harald Hoyer |
953eb6 |
@@ -2,27 +2,29 @@
|
|
Harald Hoyer |
953eb6 |
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
|
|
Harald Hoyer |
953eb6 |
# ex: ts=8 sw=4 sts=4 et filetype=sh
|
|
Harald Hoyer |
953eb6 |
|
|
Harald Hoyer |
953eb6 |
-if getargbool 1 plymouth.enable && getargbool 1 rd.plymouth -n rd_NO_PLYMOUTH; then
|
|
Harald Hoyer |
953eb6 |
- [ -c /dev/null ] || mknod -m 0666 /dev/null c 1 3
|
|
Harald Hoyer |
953eb6 |
- # first trigger graphics subsystem
|
|
Harald Hoyer |
953eb6 |
- udevadm trigger --action=add --attr-match=class=0x030000 >/dev/null 2>&1
|
|
Harald Hoyer |
953eb6 |
- # first trigger graphics and tty subsystem
|
|
Harald Hoyer |
953eb6 |
- udevadm trigger --action=add --subsystem-match=graphics --subsystem-match=drm --subsystem-match=tty >/dev/null 2>&1
|
|
Harald Hoyer |
953eb6 |
+if [ -x /bin/plymouthd ]; then
|
|
Harald Hoyer |
953eb6 |
+ if getargbool 1 plymouth.enable && getargbool 1 rd.plymouth -n rd_NO_PLYMOUTH; then
|
|
Harald Hoyer |
953eb6 |
+ [ -c /dev/null ] || mknod -m 0666 /dev/null c 1 3
|
|
Harald Hoyer |
953eb6 |
+ # first trigger graphics subsystem
|
|
Harald Hoyer |
953eb6 |
+ udevadm trigger --action=add --attr-match=class=0x030000 >/dev/null 2>&1
|
|
Harald Hoyer |
953eb6 |
+ # first trigger graphics and tty subsystem
|
|
Harald Hoyer |
953eb6 |
+ udevadm trigger --action=add --subsystem-match=graphics --subsystem-match=drm --subsystem-match=tty >/dev/null 2>&1
|
|
Harald Hoyer |
953eb6 |
|
|
Harald Hoyer |
953eb6 |
- udevadm settle --timeout=30 2>&1 | vinfo
|
|
Harald Hoyer |
953eb6 |
- [ -c /dev/zero ] || mknod -m 0666 /dev/zero c 1 5
|
|
Harald Hoyer |
953eb6 |
- [ -c /dev/tty0 ] || mknod -m 0620 /dev/tty0 c 4 0
|
|
Harald Hoyer |
953eb6 |
- [ -e /dev/systty ] || ln -s tty0 /dev/systty
|
|
Harald Hoyer |
953eb6 |
- [ -c /dev/fb0 ] || mknod -m 0660 /dev/fb0 c 29 0
|
|
Harald Hoyer |
953eb6 |
- [ -e /dev/fb ] || ln -s fb0 /dev/fb
|
|
Harald Hoyer |
953eb6 |
+ udevadm settle --timeout=30 2>&1 | vinfo
|
|
Harald Hoyer |
953eb6 |
+ [ -c /dev/zero ] || mknod -m 0666 /dev/zero c 1 5
|
|
Harald Hoyer |
953eb6 |
+ [ -c /dev/tty0 ] || mknod -m 0620 /dev/tty0 c 4 0
|
|
Harald Hoyer |
953eb6 |
+ [ -e /dev/systty ] || ln -s tty0 /dev/systty
|
|
Harald Hoyer |
953eb6 |
+ [ -c /dev/fb0 ] || mknod -m 0660 /dev/fb0 c 29 0
|
|
Harald Hoyer |
953eb6 |
+ [ -e /dev/fb ] || ln -s fb0 /dev/fb
|
|
Harald Hoyer |
953eb6 |
|
|
Harald Hoyer |
953eb6 |
- info "Starting plymouth daemon"
|
|
Harald Hoyer |
953eb6 |
- mkdir -m 0755 /run/plymouth
|
|
Harald Hoyer |
953eb6 |
- consoledev=$(getarg console= | sed -e 's/,.*//')
|
|
Harald Hoyer |
953eb6 |
- consoledev=${consoledev:-tty0}
|
|
Harald Hoyer |
953eb6 |
- [ -x /lib/udev/console_init ] && /lib/udev/console_init "/dev/$consoledev"
|
|
Harald Hoyer |
953eb6 |
- [ -x /bin/plymouthd ] && /bin/plymouthd --attach-to-session --pid-file /run/plymouth/pid
|
|
Harald Hoyer |
953eb6 |
- /bin/plymouth --show-splash 2>&1 | vinfo
|
|
Harald Hoyer |
953eb6 |
- # reset tty after plymouth messed with it
|
|
Harald Hoyer |
953eb6 |
- [ -x /lib/udev/console_init ] && /lib/udev/console_init /dev/tty0
|
|
Harald Hoyer |
953eb6 |
+ info "Starting plymouth daemon"
|
|
Harald Hoyer |
953eb6 |
+ mkdir -m 0755 /run/plymouth
|
|
Harald Hoyer |
953eb6 |
+ consoledev=$(getarg console= | sed -e 's/,.*//')
|
|
Harald Hoyer |
953eb6 |
+ consoledev=${consoledev:-tty0}
|
|
Harald Hoyer |
953eb6 |
+ [ -x /lib/udev/console_init ] && /lib/udev/console_init "/dev/$consoledev"
|
|
Harald Hoyer |
953eb6 |
+ [ -x /bin/plymouthd ] && /bin/plymouthd --attach-to-session --pid-file /run/plymouth/pid
|
|
Harald Hoyer |
953eb6 |
+ /bin/plymouth --show-splash 2>&1 | vinfo
|
|
Harald Hoyer |
953eb6 |
+ # reset tty after plymouth messed with it
|
|
Harald Hoyer |
953eb6 |
+ [ -x /lib/udev/console_init ] && /lib/udev/console_init /dev/tty0
|
|
Harald Hoyer |
953eb6 |
+ fi
|
|
Harald Hoyer |
953eb6 |
fi
|