summaryrefslogtreecommitdiffstats
path: root/src/shared/hwdb-util.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add $SYSTEMD_HWDB_UPDATE_BYPASS (#30463)Daan De Meyer2023-12-141-0/+1
| | | | | | Same as $KERNEL_INSTALL_BYPASS, but for hwdb. This will speed up cross architecture image builds in mkosi as I can disable package managers from running the costly hwdb update stuff in qemu user mode and run it myself with a native systemd-hwdb with --root=.
* udev: rename various validate() -> should_reload() for builtin commandsYu Watanabe2022-08-171-1/+1
| | | | | | Previously, true by validate() means several configs are outdated and we need to reload configs. That's not intuitive for me. Let's rename the functions.
* hwdb: implement --root option for systemd-hwdb queryNick Rosbrook2022-05-271-1/+1
| | | | | | | | | | | | | 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.
* Move hwdb creation code to src/shared/Zbigniew Jędrzejewski-Szmek2021-06-241-0/+10
hwdb_update() is the main entry point, and it is called from "udevadm hwdb" and "systemd-hwdb", so it belongs in shared/.