[Mageia-dev] Issues with dracut

Colin Guthrie mageia at colin.guthr.ie
Sat Dec 17 21:21:14 CET 2011


'Twas brillig, and David W. Hodgins at 17/12/11 20:00 did gyre and gimble:
> On Fri, 16 Dec 2011 09:11:48 -0500, Colin Guthrie
> <mageia at colin.guthr.ie> wrote:
> 
>> I'll have a look and if I cannot come up with something better, I'll
>> just give up and force grep to be installed :D
> 
> With the current versions of dracut and lvm, lvm is failing to load
> due to libncursesw.so.5 not loading.

This is strange. I've got LVM on my system and it works fine :s

Dracut should install all dynamic libs needed by apps. Which app needs
this library specifically?

> I've solved it on my system for now, by copying
> # ll /usr/lib/libncursesw.so.*
> lrwxrwxrwx 1 root root     18 Jul  1 13:41 /usr/lib/libncursesw.so.5 ->
> libncursesw.so.5.9*
> -rwxr-xr-x 1 root root 369968 Jul  1 04:01 /usr/lib/libncursesw.so.5.9*
> 
> to /lib, running ldconfig and adding
> install_items+=(/lib/libncursesw.so.5.9 /lib/libncursesw.so.5)
> to /etc/dracut.conf.

Cool, good to know it works with tweaks... now to make it automatic.

What is strange is that my initrd contains:

[root at jimmy ~]# lsinitrd| grep libnc
lrwxrwxrwx   1 root     root           18 Dec 17 10:41
usr/lib64/libncursesw.so.5 -> libncursesw.so.5.9
-rwxr-xr-x   1 root     root       399664 Jul  1 09:00
usr/lib64/libncursesw.so.5.9
lrwxrwxrwx   1 root     root           18 Dec 17 10:41
usr/lib64/libncursesw.so -> libncursesw.so.5.9


So I've got the necessary lib... I wonder if this is a side effect of me
having lib64ncursesw-devel-5.9-2.mga2 installed (i.e. the dev package)?
Perhaps it's someone the key to including the right lib? Perhaps you can
test by installing the 32 bit devel package and seeing if the lib is
then included automatically?


FWIW, dracut is crazy easy to hack on so if you can have a play with it,
I'll happily review and merge your patch into our package and push it
upstream if needed.

Col


-- 

Colin Guthrie
colin(at)mageia.org
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited http://www.tribalogic.net/
Open Source:
  Mageia Contributor http://www.mageia.org/
  PulseAudio Hacker http://www.pulseaudio.org/
  Trac Hacker http://trac.edgewall.org/


More information about the Mageia-dev mailing list