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.

BUG=b:179950282
TEST=manual, on Jinlon, verify rootfs content and try lsusb.

Change-Id: I0d01039a3b393e33e769417f6e347a714a460264
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosutils/+/2696332
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
1 file changed