]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fixed i18n and plymouth for systemd
authorHarald Hoyer <harald@redhat.com>
Fri, 27 Jul 2012 12:15:48 +0000 (14:15 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 27 Jul 2012 12:15:48 +0000 (14:15 +0200)
modules.d/10i18n/parse-i18n.sh
modules.d/50plymouth/plymouth-newroot.sh
modules.d/50plymouth/plymouth-pretrigger.sh

index 55301360760d9fdacb6d5e716ee216a5d7202328..b35329676d2ad59d66afb85aed85bc6f7cc93ade 100755 (executable)
@@ -35,10 +35,7 @@ if [ -f /etc/locale.conf ]; then
     export LC_ALL
 fi
 
-# FIXME: fix systemd-vconsole-setup
-#if [ -x /lib/systemd/systemd-vconsole-setup ]; then
-#    /lib/systemd/systemd-vconsole-setup
-#    rm -f /{etc,lib}/udev/rules.d/10-console.rules
-#    rm -f /lib/udev/console_init
-#    ln -s /lib/systemd/systemd-vconsole-setup /lib/udev/console_init
-#fi
+if [ -x /lib/systemd/systemd ]; then
+    rm -f /{etc,lib}/udev/rules.d/10-console.rules
+    rm -f /lib/udev/console_init
+fi
index ffbabf1b548bf962081416b9cfb91a2c1be6cd89..2ffc929394a6b5487b11f8fffb607e584fe126b7 100755 (executable)
@@ -2,6 +2,5 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
-if [ -x /bin/plymouth ! -x /lib/systemd/systemd ]; then
-    /bin/plymouth --newroot=$NEWROOT
-fi
+[ -x /bin/plymouth ! -x /lib/systemd/systemd ] || exit 0
+/bin/plymouth --newroot=$NEWROOT
index c52cf83915dc361ff1d993e942a75cecca778216..b282069ea71a0340849473f2583e00deffd5ec50 100755 (executable)
@@ -2,23 +2,23 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
-if [ -x /bin/plymouthd -a ! -x /lib/systemd/systemd ]; then
-    if getargbool 1 plymouth.enable && getargbool 1 rd.plymouth -d -n rd_NO_PLYMOUTH; then
+[ -x /bin/plymouthd -a ! -x /lib/systemd/systemd ] || exit 0
+
+if getargbool 1 plymouth.enable && getargbool 1 rd.plymouth -d -n rd_NO_PLYMOUTH; then
         # first trigger graphics subsystem
-        udevadm trigger --action=add --attr-match=class=0x030000 >/dev/null 2>&1
+    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 >/dev/null 2>&1
+    udevadm trigger --action=add --subsystem-match=graphics --subsystem-match=drm --subsystem-match=tty >/dev/null 2>&1
 
-        udevadm settle --timeout=30 2>&1 | vinfo
+    udevadm settle --timeout=30 2>&1 | vinfo
 
-        info "Starting plymouth daemon"
-        mkdir -m 0755 /run/plymouth
-        read consoledev rest < /sys/class/tty/console/active
-        consoledev=${consoledev:-tty0}
-        [ -x /lib/udev/console_init -a -e "/dev/$consoledev" ] && /lib/udev/console_init "/dev/$consoledev"
-        [ -x /bin/plymouthd ] && /bin/plymouthd --attach-to-session --pid-file /run/plymouth/pid
-        /bin/plymouth --show-splash 2>&1 | vinfo
+    info "Starting plymouth daemon"
+    mkdir -m 0755 /run/plymouth
+    read consoledev rest < /sys/class/tty/console/active
+    consoledev=${consoledev:-tty0}
+    [ -x /lib/udev/console_init -a -e "/dev/$consoledev" ] && /lib/udev/console_init "/dev/$consoledev"
+    [ -x /bin/plymouthd ] && /bin/plymouthd --attach-to-session --pid-file /run/plymouth/pid
+    /bin/plymouth --show-splash 2>&1 | vinfo
         # reset tty after plymouth messed with it
-        [ -x /lib/udev/console_init -a -e "/dev/$consoledev" ] && /lib/udev/console_init "/dev/$consoledev"
-    fi
+    [ -x /lib/udev/console_init -a -e "/dev/$consoledev" ] && /lib/udev/console_init "/dev/$consoledev"
 fi