On Tue, 2020-07-07 at 11:56 +0100, Roger via lfs-dev wrote: > Yesterday I built LFS-9.1 (sysvinit not systemd) with /usr > on a separate partition. Localnet failed when I booted. This > is because ip (from iproute2) links to libelf which is in > /usr/lib. Localnet is run before mounting /usr which means > that libelf is unavailable. My quick and easy solution was > to move libelf* from /usr/lib to /lib. > > I've just looked at the latest SVN 2020-07-06 and libelf > is still before iproute2 so the above would still happen. > I don't see any configure option in iproute2 to stop the > link to libelf so one solution would be to change the > instructions for installing libelf. If there's a better > way, feel free to use it.
Thanks for the heads-up. It's good that somebody tests with a separate /usr partition! We can avoid linking by temporarily moving libelf.pc to another file. But I do not know what functionality would be lost in the process. Otherwise, I think we could just add --libdir=/lib to configure in libelf (and still install the .pc file to /usr/lib, and of course remove /lib/libelf.a). Pierre -- http://lists.linuxfromscratch.org/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page