![]() |
systemd/udev-196 problem (devices not discovered)
For the very first time in my long experience with LFS, I finally ran into something that stumped me. Note that I follow the current SVN (now at version 20121122). Realizing that this is not a stable version, I always keep an older version of the source packages around in the event of a mishap. And, I'm back up and running just fine and dandy after rolling back from systemd/udev-196 to the prior systemd/udev-195.
I realize that the new 196 uses a binary database in /etc/udev/hwdb.bin. That database is indeed present, some 5 MB in size. I followed the instructions to the letter, including sed -i -e 's/create/update/' src/udev/udevadm-hwdb.c to patch the udevadm help message. The build process and subsequent install were error free. So what am I finding wrong with 196 compared to its predecessor? Well, when /etc/rc.d/init.d/udev executes during the system initialization, it shows [ OK ] but devices that ought to be newly-discovered aren't populated into /dev nor are the modules loaded. With the 195 version, there's some disk I/O and a period of time that elapses when udevadm settle as the devices are discovered. The rollback to 195 was trivial but I am intrigued by what's so substantially different in the newer systemd/udev-196 package. That's what makes LFS so worthwhile and fun -- the troubleshooting and the satisfaction when a problem is resolved. Time permitting, I may be able to run strace to get more information. In the meantime, has anyone tried the new 196 package and had success? |
Quote:
systemd/udev-195 Code:
openat(AT_FDCWD, "/sys/class/sound", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4 Code:
openat(AT_FDCWD, "/sys/class/sound", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4 Note that the ALSA sound system is all modular on my system, nothing is built into the kernel. With version 195, the Intel HDA sound card is "discovered" during the enumeration of /sys/class/sound and the module is automatically loaded by udev. That doesn't happen with version 196. |
[SOLVED] systemd/udev-196 problem (devices not discovered)
Quote:
http://permalink.gmane.org/gmane.linux.lfs.book/24014 I almost wish I hadn't seen that post about the fix because I was about to allocate some time to track it down myself. Anyway, thanks to the LFS crew for noting the problem and providing a fix. The essence of the solution just boiled down to adding these lines to cfg.h: Code:
#define HAVE_KMOD 1 |
All times are GMT -5. The time now is 12:43 AM. |