Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 530140 - =sys-kernel/genkernel-3.4.49.2: defaults/linuxrc uses mdev and hotplug when both not available
Summary: =sys-kernel/genkernel-3.4.49.2: defaults/linuxrc uses mdev and hotplug when b...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal minor with 2 votes (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-22 20:16 UTC by Marijn
Modified: 2019-07-16 18:56 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marijn 2014-11-22 20:16:02 UTC
Hi,

When booting my system I get the error:

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

I tracked this down to /usr/share/genkernel/defaults/linuxrc:

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 

The thing is that I don't have mdev installed (I use udev) and I also don't have CONFIG_UEVENT_HELPER available so there is no /proc/sys/kernel/hotplug either.

Shouldn't the init script check for the availability of mdev and hotplug before trying to activate them?

Sincerely,

Marijn van Zon.
Comment 1 Ben Kohler gentoo-dev 2017-09-07 19:30:08 UTC
Re: /proc/sys/kernel/hotplug: This isn't a fatal error, is it? 

Re: mdev: mdev comes from busybox, you do have that inside initramfs, right?

Trying to get an idea what still needs to be done for this bug.

Thanks
Comment 2 Marijn 2017-09-07 19:59:41 UTC
Hi,

It indeed is not a fatal error, it's more like a notice/warning so it doesn't block me.

Whether there's busybox/mdev in initramfs I don't know. I use "genkernel all" to build the kernel and initramfs. I make my own kernel .config (using regular gentoo-sources) but the whole initramfs is out of my league so I let genkernel handle that for me. I don't have any customisations there (as far as I know). How can I check if mdev is in the initramfs?

Though I don't even know if I'm still getting this message. Next week I will have access again to the computer running the VM where it happened and I'll check if it still appears. Perhaps it somehow resolved itself or is already fixed somewhere, after all it has been nearly three years since I created this report. I guess a lot has changed since then :).
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2019-07-16 18:56:05 UTC
This was addressed long time ago via https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=1b73a2ea3f152c6b0df04dc83b32a3cd4972de2e