[gentoo-user] genkernel, mounting /usr and dmraid

April 14th, 2012 - 07:30 pm ET by Keith Dart | Report spam
Dear Gentoo Users,

I've got the situation where I need to pre-mount /usr. I was already
using dmraid and genkernel to make in initramfs so that's not a real
big deal. However, I now get the following in the console when booting:

-
/lib/udev/write_root_link_rule: line 17: udevadm: command not
found /etc/init.d/udev: line 74: udevadm: command not
found /etc/init.d/udev: line 74: udevadm: command not
found
* Starting
udev ... /lib/udev/udevd: error while loading shared libraries:
libkmod.so.2: cannot open shared object file: No such file or
directory
* start-stop-daemon: failed to start
`/lib/udev/udevd'
* Failed to start
udev [ !!
]
* ERROR: udev failed to start

Yet after it boots up completely the udevd seems to be running fine. I
suspect this comes from some init scripts from the initrd.

The udev elog also has this:

-
│If you build an initramfs including udev, then
please
│ │make sure that the /usr/bin/udevadm binary gets
included,
-

Which I guess is the problem. But my question is how to get the udevadm
binary included in the initramfs? I can't find any docs anywhere that
explain how to do that.







Keith Dart <keith@dartworks.biz>
public key: ID: 19017044
<http://www.dartworks.biz/>
email Follow the discussionReplies 2 repliesReplies Make a reply

Replies

#1 Keith Dart
April 15th, 2012 - 03:40 pm ET | Report spam
Re
@dartworks.biz,
Canek Peláez Valdés said:
I don't use genkernel, but have you tried dracut? Just add dmraid to
MODULES_DRACUT, and try to generate an initramfs with dracut -H.
dracut takes care of everything udev related. If it doesn't work, at
least is not much effort.




Hm, maybe I'll try that. Do you know if it will work with the Gentoo
init and openrc?

Thanks,




Keith Dart
public key: ID: 19017044
<http://www.dartworks.biz/>

Similar topics