From abdc96eaf86b9691e37b2187e7b34a0c5c364952 Mon Sep 17 00:00:00 2001 From: Fiona Klute Date: Sat, 7 Jun 2025 19:09:35 +0200 Subject: [PATCH] package/eudev: install hwdb.bin to libexecdir The hwdb sources are always deleted from the rootfs image (see commit 07aa585aa6517eeb7f805b4d84a9667be4b3e259), so the resulting hwdb.bin is installed package data, not user configuration. The name of the "--usr" flag to "udevadm hwdb" may be confusing, but it chooses the libexecdir location, whether that is in /usr or not. Eudev checks both locations and prefers the one in /etc if it exists, so overriding the configuration in an installed system is possible as before, with the advantage that /etc/udev/hwdb.bin (if any) can be deleted to restore defaults. Signed-off-by: Fiona Klute Signed-off-by: Julien Olivain --- package/eudev/eudev.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/eudev/eudev.mk b/package/eudev/eudev.mk index 99c9f0dcab..e9884f52d5 100644 --- a/package/eudev/eudev.mk +++ b/package/eudev/eudev.mk @@ -82,7 +82,7 @@ define HOST_EUDEV_INSTALL_CMDS endef define HOST_EUDEV_BUILD_HWDB - $(HOST_DIR)/bin/udevadm hwdb --update --root $(TARGET_DIR) + $(HOST_DIR)/bin/udevadm hwdb --update --usr --root $(TARGET_DIR) endef HOST_EUDEV_TARGET_FINALIZE_HOOKS += HOST_EUDEV_BUILD_HWDB