From: Ray Strode Date: Wed, 20 Jun 2012 14:41:59 +0000 (-0400) Subject: systemd: add --subsystem=pci to udevadm trigger call X-Git-Tag: 0.8.6~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf90d3c7faa1499c2ce239cde68873302b411d74;p=thirdparty%2Fplymouth.git systemd: add --subsystem=pci to udevadm trigger call plymouth-start.service does this sort of hacky "udevadm trigger" call before doing plymouth show-splash, to ensure plymouth show-splash is called after the graphcis subsystem is up. Because this udev trigger call only passes --subsystem-match calls with no corresponding --subsystem call, it will trawl through all subsystems in /sys rather than just the pci subsystem (where all the matches are guaranteed to be). This commit adds --subsystem=pci to stop doing that extra work. All of this will eventually be replaced with plymouthd either listening for the udev events itself (or potentially logind, if logind gains a way to tag a "graphics" capability on a seat). --- diff --git a/systemd-units/plymouth-start.service.in b/systemd-units/plymouth-start.service.in index f2c6c84e..81a5f371 100644 --- a/systemd-units/plymouth-start.service.in +++ b/systemd-units/plymouth-start.service.in @@ -9,5 +9,5 @@ ConditionPathExists=!@plymouthruntimedir@/pid [Service] ExecStart=@PLYMOUTH_DAEMON_DIR@/plymouthd --mode=boot --pid-file=@plymouthruntimedir@/pid --attach-to-session -ExecStartPost=-/bin/udevadm trigger --action=add --attr-match=class=0x030000 ; -/bin/udevadm trigger --action=add --subsystem-match=graphics --subsystem-match=drm --subsystem-match=tty ; -/bin/udevadm settle --timeout=30 ; -@PLYMOUTH_CLIENT_DIR@/plymouth show-splash +ExecStartPost=-/bin/udevadm trigger --action=add --attr-match=class=0x030000 ; -/bin/udevadm trigger --action=add --subsystem-match=graphics --subsystem-match=drm --subsystem-match=tty --subsystem=pci; -/bin/udevadm settle --timeout=30 ; -@PLYMOUTH_CLIENT_DIR@/plymouth show-splash Type=forking