[Buildroot] [PATCH] eudev: generate /etc/udev/hwdb.bin at system startup

Carlos Santos casantos at datacom.ind.br
Mon Jan 29 11:36:12 UTC 2018


> From: "Carlos Santos" <casantos at datacom.ind.br>
> To: "Baruch Siach" <baruch at tkos.co.il>
> Cc: "Bernd Kuhls" <bernd.kuhls at t-online.de>, "Eric Le Bihan" <eric.le.bihan.dev at free.fr>, "buildroot"
> <buildroot at buildroot.org>
> Sent: Monday, January 29, 2018 8:37:23 AM
> Subject: Re: [Buildroot] [PATCH] eudev: generate /etc/udev/hwdb.bin at system startup

---8<---
>> 
>> Wouldn't that break read-only /etc?
> 
> The script may require some customization, as already explained in its
> opening comments, which is beyond the scope of this change.
> 
> Notice that a read-only /etc does not break the init script. It breaks
> the "udevadm hwdb --update" command, as well as any command that assume
> a rw filesystem (and there is a lot of them).

Addendum: the solution would be overriding the udevhwdbbin variable
in the configuration script, pointing to some read-write path (e.g.
/run/udev/data/, which is under a tmpfs by default).

-- 
Carlos Santos (Casantos) - DATACOM, P&D
“The greatest triumph that modern PR can offer is the transcendent 
success of having your words and actions judged by your reputation, 
rather than the other way about.” — Christopher Hitchens



More information about the buildroot mailing list