udev from systemd compiled with instructions from LFS
I have posted about so many problems with udev, actually the eudev package provided by Devuan. Today I noticed that the non-systemd LFS (Linux From Scratch) has abandoned eudev, and is instead pulling it out of systemd, with some hacks so it doesn't need systemd. Then I vaguely recalled reading some other non-systemd distro doing the same thing.
I have followed the LFS instructions here:
https://www.linuxfromscratch.org/lfs/view/r12.4-13/chapter08/udev.html
Except, I added these meson options:
-Dselinux=false -Dpolkit=false -Dpam=false
Compiled and created a .pet package. Used equivs to create dummy 'eudev', 'libeudev1' and 'libeudev-dev' debs.
Got the 'udev-lfs' source from here:
https://ftp.clfs.org/pub/lfs/lfs-packages/12.1/
Got systemd source from here:
https://www.linuxfromscratch.org/blfs/view/systemd/general/systemd.html
Ready to do another build of Easy and test this.
EDIT 2025-09-07:
Hmmm, "udevadm trigger ..." runs, but doesn't load any modules.
I can't figure out why. There was a lot of discussion about this
in 2019, systemd circa 239, but the problem was reported to be
fixed. Example discussion thread here:
https://github.com/systemd/systemd/issues/11314
...it looks like they are trying to use
udev on its own, outside of systemd, like me.
Going back to eudev. I'll keep plugging
away to isolate the cause of the hang.
Tags: easy