udev: Fix sound.target dependency
authorTakashi Iwai <tiwai@suse.de>
Wed, 9 Dec 2020 09:56:51 +0000 (10:56 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 10 Dec 2020 16:39:17 +0000 (17:39 +0100)
commit4fe8b17c974234a80c0dd3815c74ffe17ef64e05
treeda432a967cd3f5ccff7ea63e92396da38e32832d
parent924bd7ec69036e11c510a4f3518da944b4967d61
udev: Fix sound.target dependency

The recent bug report indicated a race at device creation and the
sound.target dependencies, and the cause turned out to be the condition
of the sound.target trigger.  Currently it's set for "card*", but this
is actually the parent object; i.e. the sound.target is triggered before
the sound devices are created.

For assuring the whole sound device creations beforehand, we need to use
"controlC*" instead of "card*"; as already described in
78-sound-card.rules, this is guaranteed to be the last device, and can
be used as a synchronization point.

BugLink: https://bugzilla.suse.com/show_bug.cgi?id=1179363
Signed-off-by: Takashi Iwai <tiwai@suse.de>
(cherry picked from commit 5926e592fa5e6290b9f4588939945869adb5c55f)
rules.d/99-systemd.rules.in