udev: run programs in the specified order
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 4 Mar 2019 19:01:34 +0000 (04:01 +0900)
committerMichael Biebl <biebl@debian.org>
Thu, 18 Mar 2021 19:59:14 +0000 (19:59 +0000)
commit8a6ce1c0569aa9bf7e0aa909ac5e24469d9f5bc3
tree1f2eccf3fdf0589172bd2ceeb06366c1f57ee2a0
parent6d17af5fe59878c1eb7be49e2e83a67dfdfe846f
udev: run programs in the specified order

This fixes bugs introduced by 29448498c724da7ade1b5efb20d7472c1b128d2c
and d838e14515c82b05a07f2bf393cce057b45b2b53.

Previously, RUN and SECLABEL keys are stored in udev_list with its unique
flag is false. If the flag is false, then udev_list is just a linked
list and new entries are always added in the last.
So, we should use OrderedHashmap instead of Hashmap.

Fixes #11368.

(cherry picked from commit 39a15c8a8dad26deda140867f03e44a535b7bd8d)

Gbp-Pq: Name udev-run-programs-in-the-specified-order.patch
src/udev/udev-event.c
src/udev/udev-node.c
src/udev/udev-node.h
src/udev/udev-rules.c
src/udev/udev.h
src/udev/udevadm-test.c