From 33488f19793dc0a86fdee27266c5319b5b78d695 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Fri, 17 Oct 2014 15:01:01 +0200 Subject: udev hwdb: Support shipping pre-compiled database in system images In some cases it is preferable to ship system images with a pre-generated binary hwdb database, to avoid having to build it at runtime, avoid shipping the source hwdb files, or avoid storing large binary files in /etc. So if hwdb.bin does not exist in /etc/udev/, fall back to looking for it in UDEVLIBEXECDIR. This keeps the possibility to add files to /etc/udev/hwdb.d/ and re-generating the database which trumps the one in /usr/lib. Add a new --usr flag to "udevadm hwdb --update" which puts the database into UDEVLIBEXECDIR. Adjust systemd-udev-hwdb-update.service to not generate the file in /etc if we already have it in /usr. --- man/udevadm.xml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'man/udevadm.xml') diff --git a/man/udevadm.xml b/man/udevadm.xml index 749144dbd4..b85d9a9249 100644 --- a/man/udevadm.xml +++ b/man/udevadm.xml @@ -493,6 +493,15 @@ notified about it. + + + + Put the compiled database into /usr/lib/udev/hwdb.bin instead. + Use this if you want to ship a pre-compiled database in immutable system images, or + don't use /etc/udev/hwdb.d and want to avoid large binary files in + /etc. + + -- cgit v1.2.3-54-g00ecf