eudev-project / eudev

Repository for eudev development
GNU General Public License v2.0
521 stars 145 forks source link

Add a generic --output argument to udevadm hwdb #263

Closed ghost closed 11 months ago

ghost commented 11 months ago

Dear eudev developers,

In Guix, every package is installed in a separate "/usr" prefix. For instance, eudev is installed in "/usr-a/" and upower in "/usr-b/" (except it’s actually "/gnu/store/xxx-eudev-version" and "/gnu/store/yyy-upower-version", whatever). If I want to compile the hwdb database and write it to "/usr-b/lib/udev/hwdb.bin" (with "--usr"), the "--root" argument is insufficient. If I compile with --root=/usr-b, I will end up with "/usr-b/usr-a/lib/udev/hwdb.bin".

I think it would be better to let udevadm hwdb write to an arbitrary file.

What do you think?

Best regards,

Vivien

bbonev commented 11 months ago

I somehow dislike the wording in the man page, e.g. if you want ship the compiled, but that does not come from your commit.

I will merge and fix that afterwards.