Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
"Activating mdev" when using udev
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
SunMar
n00b
n00b


Joined: 15 Nov 2004
Posts: 33
Location: The Netherlands

PostPosted: Wed Nov 19, 2014 3:47 pm    Post subject: "Activating mdev" when using udev Reply with quote

Hi,

I tried to search for this but couldn't find a solution. I noticed that when my system boots after the kernel is loaded it shows the message:
Code:

>> Activating mdev
/init: line 334: can't create /proc/sys/kernel/hotplug: nonexistent directory


After some searching on other mdev/udev issues I did manage to figure out that the error comes from the linuxrc script used by genkernel (found at /usr/share/genkernel/defaults/linuxrc):
Code:

327 # Initialize mdev
328 good_msg 'Activating mdev'
329
330 # Serialize hotplug events
331 touch /dev/mdev.seq
332
333 # Setup hotplugging for firmware loading
334 echo /sbin/mdev > /proc/sys/kernel/hotplug


I use "genkernel all" to build my kernel, but the thing is that I use udev (in the kernel CONFIG_GENTOO_LINUX_UDEV=y), mdev is not installed (/sbin/mdev also doesn't exist).

Is there a way to fix this error without having to create a custom linuxrc script for genkernel to use?

Sincerely,

SunMar.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7130
Location: almost Mile High in the USA

PostPosted: Thu Nov 20, 2014 12:30 am    Post subject: Reply with quote

Someone else had a problem with the missing hotplug file though he had a custom initramfs

https://forums.gentoo.org/viewtopic-t-1003920-highlight-.html

Also something is really wrong - mdev should be linked to busybox... is this a canned initramfs?
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
SunMar
n00b
n00b


Joined: 15 Nov 2004
Posts: 33
Location: The Netherlands

PostPosted: Thu Nov 20, 2014 12:11 pm    Post subject: Reply with quote

Thanks the the reply. /sbin/mdev is not available because busybox is not compiled with the mdev USE flag, and hotplug is not available because the kernel is compiled without CONFIG_UEVENT_HELPER. But the issue isn't that those aren't available, it's rather that the init script tries to use them while they are unavailable. Not sure what you mean with a canned initramfs.

Perhaps I should file a bug report for this instead, but I wanted to check first that it's not some kind of configuration mistake.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum