Bug#845442: udev: does not honor configuration files in /etc/udev/hwdb.d

Norbert Preining preining at logic.at
Sun Nov 27 13:00:08 GMT 2016


Hi Michael, hi Martin,

> When reading the hwdb(7) man page, it only talks about overriding
> *files* not individual *entries*. So what you want to do might indeed
> not be supported and it is working as documented.

Well, not exactly. It reads that one can add arbitrary files and they
are loaded in the numerical order, where files named the same way
the /etc version takes precedence.

That means, in principle, adding
	/etc/udev/hwdb.d/61-local.hwdb
with only my entries should work, right.

And indeed, using systemd-hwdb query I *do* get the correct results:

$ pwd
/etc/udev/hwdb.d
$ ls
61-local.hwdb
$ cat 61-local.hwdb
evdev:input:b0003v045Ep00DB*
 KEYBOARD_KEY_c022d=pageup
 KEYBOARD_KEY_c022e=pagedown

$ udevadm hwdb --update
$ 

And now:
$ systemd-hwdb query evdev:input:b0003v045Ep00DB
KEYBOARD_KEY_c022d=pageup
KEYBOARD_KEY_c022e=pagedown
$

which is correct. But this was the very setup I had in the very beginning, 
so it seems that either the initramfs is not constructed correctly, or the
udev in the initramfs works differently.
Or something else I don't undestand - like most of systemd.

All the best

Norbert

--
PREINING Norbert                               http://www.preining.info
Accelia Inc.     +    JAIST     +    TeX Live     +    Debian Developer
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13





More information about the Pkg-systemd-maintainers mailing list