base_image_util: remove HWDB files in the images

the /lib/udev/hwdb.d/*.hwdb and /etc/udev/hwdb.d/*.hwdb are used to
generate the binary udev database in /etc/udev/hwdb.bin.
The generation happens at build time and those files don't seem to be
used at runtime, remove them to save space in the rootfs.

We cannot use the INSTALL_MASK to skip them as we are running a last
pass of hwdb.bin generation during the image generation.

TEST=manual, on Jinlon, verify rootfs content and try lsusb.

Change-Id: I0d01039a3b393e33e769417f6e347a714a460264
Commit-Queue: Vincent Palatin <>
Tested-by: Vincent Palatin <>
Reviewed-by: Mike Frysinger <>
1 file changed