below is the page that I am at. I didn't install this package before this step
and so I am guessing this is why it fails on the first cmd
sed -i 's@/sbin/udev@/tools/sbin/udev@g' udevstart.c
Is this an error in the book or should I skip this package until later?
I checked 5.1 and this step is not there. I looked at the 6.1 testing
version and this step is not there either.
So where do I go now?
Version 6.0 chapter 5.35. Udev-030
Code:
5.35. Udev-030
The Udev package contains programs for dynamic creation of device nodes.
Approximate build time: 0.2 SBU
Required disk space: 5.2 MB
Udev installation depends on: Coreutils and Make
5.35.1. Installation of Udev
The udevstart program hardcodes the path to the udev program in itself, which would cause issues since udev was installed in a non-standard location. Fix this by running the following:
sed -i 's@/sbin/udev@/tools/sbin/udev@g' udevstart.c
Also, ensure that udev knows the correct location to look for its configuration files:
sed -i 's@/etc@/tools/etc@g' etc/udev/udev.conf.in
Now compile Udev:
make prefix=/tools etcdir=/tools/etc
This package does not come with a test suite.
Install the package:
make DESTDIR=/tools udevdir=/dev install
Udev's configuration is far from ideal by default, so install LFS-specific configuration files here:
cp ../udev-config-2.permissions \
/tools/etc/udev/permissions.d/00-lfs.permissions
cp ../udev-config-1.rules /tools/etc/udev/rules.d/00-lfs.rules
Details on this package are located in Section 6.57.2, “Contents of Udev.”