Hi Bruce. I suggest to move `udevadm hwdb --update` up to the chapter in the book (from Makefile.lfs). With that change fakeroot/DESTDIR folks can easily move that line to their post-upgrades/post-installs.
Right now `make DESTDIR=<whatever> -f udev-lfs-196/Makefile.lfs install` does not work with that instruction if it is being run from fakeroot, because it tries to write to /etc, ignoring DESTDIR. So we need to make seds like `sed -i -e '/udevadm hwdb/d' udev-lfs-${pkgver}/Makefile.lfs` [1]. Thanks. [1] https://github.com/alekseyrybalkin/kiin/blob/master/base/udev/package.sh > Bruce Dubbs wrote: > Well the code has a mistake: > > Usage: udevadm hwdb [--create] [--help] > --update update the hardware database > --test <modalias> query database and print result > --help > > That --create needs to be --update. When I did that, the file was > created. It is 5 MB. > > The code needs: > > sed -i -e 's/create/update/' src/udev/udevadm-hwdb.c > I'll update the book later today. > > -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page