[systemd-devel] [PATCH v2] udev hwdb: Support shipping pre-compiled database in system images
Martin Pitt
martin.pitt at ubuntu.com
Sun Oct 19 03:32:59 PDT 2014
Hello Ivan,
Ivan Shapovalov [2014-10-19 5:42 +0400]:
> > but this isn't possible AFAIK. The alternative would be to change the
> > Exec= to call "hdwb --update --vendor" iff /etc/udev/hwdb.d/ is empty.
>
> I'm just an innocent bystander, but isn't it possible with these two
> lines?
>
> ConditionPathExists=|!@udevlibexecdir@/hwdb.bin
> ConditionDirectoryNotEmpty=|/etc/udev/hwdb.d/
>
> This will succeed if EITHER @udevlibexecdir@/hwdb.bin does not exist
> OR /etc/udev/hwdb.d/ is not empty.
Correct. That's indeed what got pointed out to me on IRC on Friday,
and I sent another followup to the list. For some unknown reason that
didn't actually hit the list though, so I bounced my reply again this
morning.
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/20141019/598d352b/attachment.sig>
More information about the systemd-devel
mailing list