mirror of
https://github.com/systemd/systemd
synced 2024-10-15 04:24:19 +00:00
f813515542
Kernels >= 5.8 have added new fields to the dmi/id/modalias file in the middle of the modalias (instead of adding them at the end). Specifically new ":br<value>:" and (optional) ":efr<value>:" fields have been added between the ":bd<value>:" and ":svn<value>:" fields. Note the 5.13.0 and 5.14.0 kernels also added a new ":sku<value>:" field between the ":pvr<value>:" and ":rvn<value>:" fields, this has been fixed in later 5.13.y and 5.14.y releases, by moving the sku field to the end: https://lore.kernel.org/lkml/20210831130508.14511-1-hdegoede@redhat.com/ Unfortunately the same cannot be done for the new br and efr fields since those have been added more then a year ago and hwdb even already has some newer entries relying on the new br field being there (and thus not working with older kernels). Fix the issue with the br and efr fields through the following changes: 1. Replace any matches on ":br<value>" from newer entries with an '*' 2. Replace "bd<value>:svn<value>" matches with: "bd<value>:*svn<value>" inserting an '*' where newer kernels will have the new br + efr fields This makes these matches working with old as well as new kernels. Link: https://github.com/systemd/systemd/issues/20550 Link: https://github.com/systemd/systemd/pull/20562 |
||
---|---|---|
.. | ||
.gitattributes | ||
.gitignore | ||
20-acpi-vendor.hwdb | ||
20-acpi-vendor.hwdb.patch | ||
20-bluetooth-vendor-product.hwdb | ||
20-dmi-id.hwdb | ||
20-net-ifname.hwdb | ||
20-OUI.hwdb | ||
20-pci-classes.hwdb | ||
20-pci-vendor-model.hwdb | ||
20-sdio-classes.hwdb | ||
20-sdio-vendor-model.hwdb | ||
20-usb-classes.hwdb | ||
20-usb-vendor-model.hwdb | ||
20-vmbus-class.hwdb | ||
60-autosuspend-fingerprint-reader.hwdb | ||
60-autosuspend.hwdb | ||
60-evdev.hwdb | ||
60-input-id.hwdb | ||
60-keyboard.hwdb | ||
60-seat.hwdb | ||
60-sensor.hwdb | ||
70-analyzers.hwdb | ||
70-joystick.hwdb | ||
70-mouse.hwdb | ||
70-pointingstick.hwdb | ||
70-touchpad.hwdb | ||
80-ieee1394-unit-function.hwdb | ||
acpi-update.py | ||
acpi_id_registry.html | ||
ids_parser.py | ||
ma-large.txt | ||
ma-medium.txt | ||
ma-small.txt | ||
meson.build | ||
parse_hwdb.py | ||
pci.ids | ||
pnp_id_registry.html | ||
README | ||
sdio.ids | ||
usb.ids |
Files in this directory specify a description of hardware devices, in the form of mappings from modalias-like keys (which identify specific hardware devices) to udev properties. Files in this directory are not read by udev directly. Instead, man:systemd-hwdb(8) compiles them into a binary database. See man:hwdb(7) for an overview of the configuration file format, and man:systemd-udevd.service(8) for a description of the udev daemon. Use 'systemd-analyze cat-config udev/hwdb.d' to display the effective config.