Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33873 - LILO doesn't know about device-mapper (with patch!)
Summary: LILO doesn't know about device-mapper (with patch!)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-19 15:28 UTC by toon
Modified: 2004-06-07 12:25 UTC (History)
2 users (show)

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


Attachments
This is the modified ebuild script by Christophe Saout <christophe@saout.de> (lilo-22.5.8-r1.ebuild,4.24 KB, text/plain)
2003-11-19 15:32 UTC, toon
Details
This is the digest file that goes with the modified ebuild script. (digest-lilo-22.5.8-r1,134 bytes, text/plain)
2003-11-19 15:37 UTC, toon
Details
This is the patch to LILO (lilo-22.5.8-devmapper.patch,11.60 KB, patch)
2003-11-19 15:44 UTC, toon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description toon 2003-11-19 15:28:19 UTC
Hi,

I installed Gentoo Linux on a HP Proliant DL360 with a
Compaq Smart Array controller configured with a mirrored disk.
The full mirrored system disk was placed under the control of LVM.
All went smooth, and I installed LILO successfully. (still working
under the stable gentoo-sources 2.4 kernel)

When I upgraded to the 2.6 kernel with device-mapper and LVM2,
I found out the hard way that LILO doen't know about device-mapper.
I reported the problem to the device-mapper development mailing list,
and got a reply from Christophe Saout <christophe@saout.de> in which
he acknowledged the problem and provided me with a patch (complete
with a modified ebuild script for the lilo-22.5.8-r1 package!
I applied the patch, emerged lilo-22.5.8-r1, and was finally able
to install LILO under the 2.6-kernel with device-mapper.

Please accept his patch into the stable LILO as soon as possible,
because without it you can't boot a LVM2-based system. Thanks.

I don't know how to attaches ebuild scripts, patches and stuff to
a bug report. I'll first commit this entry now, and then try to
find out how to do that.

Regards,
Toon.
Comment 1 toon 2003-11-19 15:32:48 UTC
Created attachment 20961 [details]
This is the modified ebuild script by Christophe Saout <christophe@saout.de>

Two more attachments coming up.
Regards,
Toon.
Comment 2 toon 2003-11-19 15:37:43 UTC
Created attachment 20962 [details]
This is the digest file that goes with the modified ebuild script.

One more attachment coming up.
Comment 3 toon 2003-11-19 15:44:18 UTC
Created attachment 20963 [details, diff]
This is the patch to LILO

That's it!
All credits go to Christophe Saout <christophe@saout.de>

Regards,
Toon.
Comment 4 toon 2003-11-19 16:16:54 UTC
On more thing, you can find my original detailed bug report at:
http://lists.sistina.com/pipermail/dm-devel/2003-November/000317.html
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2003-11-19 16:47:09 UTC
Just guessing on the maintainer.
Comment 6 toon 2003-11-21 14:50:53 UTC
Christophe Saout made this remark when he sent me the patch:

"I'm sure someone can come up with an ebuild file that sets
the define depending on the availability of libdevmapper or something."

So this is probably something extra that has to be done.
Comment 7 Seemant Kulleen (RETIRED) gentoo-dev 2003-12-19 03:12:40 UTC
max, you handle lvm2 it looks like -- is lvm2 exclusively a 2.6 thing?  in other words can we just do the switch on kernel version 2.6 to apply this patch?
Comment 8 Seemant Kulleen (RETIRED) gentoo-dev 2003-12-19 03:49:56 UTC
actually, on warpzero's suggestion, I'll use a local USE flag called devmapr to enable this patch
Comment 9 Max Kalika (RETIRED) gentoo-dev 2003-12-19 09:26:18 UTC
I use device-mapper/lvm2 on custom 2.4 with the dm patch (and some other stuff).  Enabling this via a use flag is probably the best approach, though I am not entirely comfortable with a use flag named 'devmapr'.  How about lvm2 or dm?  But in any case, that is for the maintainer of lilo to decide.
Comment 10 Christophe Saout 2004-04-17 12:39:53 UTC
I think this bug can be closed.
Comment 11 Tony Vroon (RETIRED) gentoo-dev 2004-06-07 12:25:57 UTC
I agree, this can be closed.
Device mapper functionality has been in the lilo ebuild for two release cycles now.