Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 276369 - cryptsetup complains that udevadm is missing when using mdev
Summary: cryptsetup complains that udevadm is missing when using mdev
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
Depends on:
Reported: 2009-07-03 12:49 UTC by Florian Streibelt
Modified: 2009-12-16 19:56 UTC (History)
7 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Florian Streibelt 2009-07-03 12:49:11 UTC
I am booting a fully-encrypted system. When the genkernel-created startscripts in the initfs ask for the passhprase I get a warning, that udevadm is not available and thus race conditions cannot be avoided. This warning is printed by the cryptsetup binary. (cryptsetup version 1.0.6)

Reproducible: Always

Steps to Reproduce:
1. add luks and lvm support to genkernel
2. boot an ancrypted system

Actual Results:  
/sbin/cryptsetup tries to execute "/sbin/udevadm settle" and
the following error message is triggered:
"%s unable to avoid potential race with busy device-mapper device"

Expected Results:  
no output at all ;)
Comment 1 Andrew Gaffney (RETIRED) gentoo-dev 2009-07-03 13:53:13 UTC
The initramfs does not use udev, so including udevadm does not make sense. It uses mdev from busybox.
Comment 2 Florian Streibelt 2009-07-03 15:07:28 UTC
I think that a system shouldn't give you an errormessage at bootup when everything is working.

So by adding a dummy shellscript or a symlink to /bin/true would make the errormessage go away, although this is an ugly workaround. One could state, that at this stage there is only one process running and hope there is no race condition here.

Or cryptsetup needs a patch to use mdev in that case?

Comment 3 Ed Santiago 2009-07-14 15:16:12 UTC
Same problem here. 2.6.28-tuxonice-r10, genkernel, cryptsetup 1.0.6-r2.  
Comment 4 Andrew Gaffney (RETIRED) gentoo-dev 2009-07-19 17:58:42 UTC
I think this one belongs to base-system.
Comment 5 Hongjiu Zhang 2009-08-07 13:48:41 UTC
Also reproduced this bug. But severity is maybe minor.
Comment 6 SpanKY gentoo-dev 2009-08-16 18:41:05 UTC
i dropped the small hunk that added the complaint