[systemd-devel] [PATCH v2] udev hwdb: Support shipping pre-compiled database in system images

Martin Pitt martin.pitt at ubuntu.com
Fri Oct 17 06:49:40 PDT 2014


Martin Pitt [2014-10-17 15:44 +0200]:
> So ideally the condition would be
> 
>   ConditionPathExists=!@udevlibexecdir@/hwdb.bin OR
>   ConditionDirectoryNotEmpty=/etc/udev/hwdb.d/
> 
> but this isn't possible AFAIK.

Hah, I stand corrected. So this could be

  ConditionPathExists=|!@udevlibexecdir@/hwdb.bin
  ConditionPathExists=|/etc/udev/hwdb.bin
  ConditionDirectoryNotEmpty=|/etc/udev/hwdb.d/

for catching all the edge cases, if we want to go ahead with the
explicit --vendor option instead of putting this logic into hwdb
--update itself. (I'd otherwise just replicate the logic again in the
Debian/Ubuntu package trigger).

Thanks,

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20141017/0a051061/attachment-0002.sig>


More information about the systemd-devel mailing list