Bug 172167 - sys-boot/lilo-22.8: No entry for device-mapper found
Bug#: 172167 Product:  Gentoo Linux Version: 2006.1 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: chainsaw@gentoo.org Reported By: ulm@gentoo.org
Component: Core system
URL: 
Summary: sys-boot/lilo-22.8: No entry for device-mapper found
Keywords:  
Status Whiteboard: 
Opened: 2007-03-25 13:52 0000
Description:   Opened: 2007-03-25 13:52 0000
/sbin/lilo from sys-boot/lilo-22.8 outputs the following error message:

# lilo
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.
Added Linux *
[...]

sys-fs/device-mapper-1.02.12 is installed on the system (not needed, but gets
pulled by dependencies of sys-apps/hal -> sys-fs/cryptsetup-luks), but the
kernel is configured without multi-device support (CONFIG_MD).

Lilo does not display the error message anymore after the following sequence of
commands:
# emerge -C device-mapper
# emerge lilo
# emerge device-mapper

Maybe it would be more appropriate to control this via a USE flag?

------- Comment #1 From Ulrich Müller 2007-03-26 09:14:34 0000 -------
Created an attachment (id=114466) [details]
Proposed changes for lilo-22.8.ebuild

Attached changes for lilo-22.8.ebuild work for me.
An "lvm2" local USE flag would already exist.

------- Comment #2 From Ulrich Müller 2007-04-28 05:53:51 0000 -------
*dah-dit-dah*

------- Comment #3 From Tony Vroon 2007-04-28 15:03:40 0000 -------
We use diffs over sed statements as they do not break silently when they no
longer apply. I will commit this on monday (even though I feel that the bug is
in the HAL dependencies).
I do not have access to non-production X86 hardware before monday. However, if
you can rework this into a proper .diff, talk to me on IRC.

------- Comment #4 From Ulrich Müller 2007-04-28 20:41:36 0000 -------
Created an attachment (id=117582) [details]
lilo-22.8-nodevmapper.patch

Attached patch should be applied if the lvm2 USE flag is unset.

Alternatively, one could pass "HDM= DEVMAPPER=" to emake in that case.

------- Comment #5 From Ulrich Müller 2007-04-28 22:05:11 0000 -------
Fixed in -r1.