From: Harald Hoyer Date: Tue, 15 Sep 2009 07:09:53 +0000 (+0200) Subject: plymouth: add rd_NO_PLYMOUTH X-Git-Tag: 002~33 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b94c52066093f5201e5d811c68299399ce82358a;p=thirdparty%2Fdracut.git plymouth: add rd_NO_PLYMOUTH --- diff --git a/dracut.8 b/dracut.8 index 4370eff41..5ebcd16c5 100644 --- a/dracut.8 +++ b/dracut.8 @@ -251,6 +251,11 @@ get ip from dhcp server on a specific interface .B ip=:[]:::::{none|off} explicit network configuration +.SH Plymouth Boot Splash +.TP +.B rd_NO_PLYMOUTH +do not start plymouth. This will not work with encrypted partitions. + .SH Misc .TP .B rdblacklist= diff --git a/modules.d/50plymouth/plymouth-pretrigger.sh b/modules.d/50plymouth/plymouth-pretrigger.sh index 9fe3199e5..4b133d861 100755 --- a/modules.d/50plymouth/plymouth-pretrigger.sh +++ b/modules.d/50plymouth/plymouth-pretrigger.sh @@ -1,18 +1,22 @@ #!/bin/sh -[ -c /dev/null ] || mknod /dev/null c 1 3 -# first trigger graphics subsystem -udevadm trigger --attr-match=class=0x030000 >/dev/null 2>&1 -# first trigger graphics and tty subsystem -udevadm trigger --subsystem-match=graphics --subsystem-match=drm --subsystem-match=tty >/dev/null 2>&1 +if ! getarg rd_NO_PLYMOUTH; then + [ -c /dev/null ] || mknod /dev/null c 1 3 + # first trigger graphics subsystem + udevadm trigger --attr-match=class=0x030000 >/dev/null 2>&1 + # first trigger graphics and tty subsystem + udevadm trigger --subsystem-match=graphics --subsystem-match=drm --subsystem-match=tty >/dev/null 2>&1 -udevadm settle --timeout=30 2>&1 | vinfo -[ -c /dev/zero ] || mknod /dev/zero c 1 5 -[ -c /dev/systty ] || mknod /dev/systty c 4 0 -[ -c /dev/fb ] || mknod /dev/fb c 29 0 -[ -c /dev/hvc0 ] || mknod /dev/hvc0 c 229 0 + udevadm settle --timeout=30 2>&1 | vinfo + [ -c /dev/zero ] || mknod /dev/zero c 1 5 + [ -c /dev/systty ] || mknod /dev/systty c 4 0 + [ -c /dev/fb ] || mknod /dev/fb c 29 0 + [ -c /dev/hvc0 ] || mknod /dev/hvc0 c 229 0 -info "Starting plymouth daemon" -[ -x /bin/plymouthd ] && /bin/plymouthd --attach-to-session -/bin/plymouth --show-splash 2>&1 | vinfo + info "Starting plymouth daemon" + [ -x /bin/plymouthd ] && /bin/plymouthd --attach-to-session + /bin/plymouth --show-splash 2>&1 | vinfo +fi + +# vim:ts=8:sw=4:sts=4:et