]> git.ipfire.org Git - thirdparty/systemd.git/commit
hwdb: implement --root option for systemd-hwdb query 23518/head
authorNick Rosbrook <nick.rosbrook@canonical.com>
Tue, 24 May 2022 17:15:13 +0000 (13:15 -0400)
committerNick Rosbrook <nick.rosbrook@canonical.com>
Fri, 27 May 2022 13:40:54 +0000 (09:40 -0400)
commitbeff73f94e565e4d6c6383c535b8b0742b37c312
treeaa59ad8a76e1b2b6e271f6448e6444f804428d1c
parent60f0ba75569312825ff14680d05a4b4f95842951
hwdb: implement --root option for systemd-hwdb query

Currently, the systemd-hwdb --root flag only has an effect for the
'update' verb. It would be useful to be able to use the --root option
for the 'query' verb too (e.g. for testing a hwdb.bin created with
systemd-hwdb update --root <path>).

Use sd_hwdb_new_from_path to initialize the hwdb if --root is passed to
systemd-hwdb query.

Note that this functionality was not added to 'udevadm hwdb' since that
command is deprecated.
src/hwdb/hwdb.c
src/shared/hwdb-util.c
src/shared/hwdb-util.h
src/udev/udevadm-hwdb.c