2
1
Эх сурвалжийг харах

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 <fiona.klute@gmx.de>
Signed-off-by: Julien Olivain <ju.o@free.fr>
Fiona Klute 1 сар өмнө
parent
commit
abdc96eaf8

+ 1 - 1
package/eudev/eudev.mk

@@ -82,7 +82,7 @@ define HOST_EUDEV_INSTALL_CMDS
 endef
 endef
 
 
 define HOST_EUDEV_BUILD_HWDB
 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
 endef
 HOST_EUDEV_TARGET_FINALIZE_HOOKS += HOST_EUDEV_BUILD_HWDB
 HOST_EUDEV_TARGET_FINALIZE_HOOKS += HOST_EUDEV_BUILD_HWDB