You are not logged in.

#1 2012-07-21 15:23:02

MadAGu
Member
Registered: 2012-07-21
Posts: 2

mkinitcpio problem

Hi to all

After the last update, i have the following problem. It appears after a kernel upgrade.

When i am trying to rebuild kernel image (mkinitcpio -p linux) and reboot i have a kernel panic, because whithin the initramfs image the /bin/ash cannot find the libc.so.6 . I did this:


lsinitcpio /boot/initramfs-linux.img |grep libc
./lib64/libcom_err.so.2
./lib64/libc.so.6
./usr/lib/libcom_err.so.2.1
./usr/lib/libc-2.16.so
./usr/lib/modules/3.4.6-1-ARCH/kernel/libcxgbi.ko
./usr/lib/modules/3.4.6-1-ARCH/kernel/libcrc32c.ko
./usr/lib/modules/3.4.6-1-ARCH/kernel/libceph.ko

The problem is that both libc.so.6 and libc-2.16.so should be in the same folder (/usr/lib). I tried reinstalling the kernel, reinstalling the glibc, rebuilding many times the image, but the problem is still there.

Anyone has any idea of what is happening?

Offline

#2 2012-07-21 17:27:37

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,362

Re: mkinitcpio problem

In 3.4.5-1, libc.so.6 is in /usr/lib and there isn't even a /lib64, haven't yet updated to 3.4.6-1 yet.
What does your /etc/mkinitcpio.conf look like?

Last edited by nomorewindows (2012-07-21 17:55:24)


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#3 2012-07-22 07:51:11

MadAGu
Member
Registered: 2012-07-21
Posts: 2

Re: mkinitcpio problem

nomorewindows, i just solved the problem. Within the filesystem, there were some library files in the wrong place. After i removed these libraries everything was ok. someone pleace mark it as [SOLVED]...

Last edited by MadAGu (2012-07-22 07:52:45)

Offline

#4 2012-07-22 07:59:53

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: mkinitcpio problem

You can mark it [Solved] by editing your first post...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2012-11-09 14:33:30

davephillips
Member
From: Findlay OH USA
Registered: 2011-09-20
Posts: 10
Website

Re: mkinitcpio problem

Greetings,

Apologies for a cross-post, but I'm happy this thread wasn't marked as solved, it led me to the only report with a problem identical to mine. I updated my Arch 64 system with 'pacman -Syyu' yesterday, everything went well until reboot. As I said, the panic report is the same as the OP in this thread, with /usr/bin/ash unable to find libc.so.6. I've followed the advice for using the chroot and running 'mkinitcpio -p linux'. The procedure succeeds but when I run 'lsinitcpio initramfs-linux.img |grep libc' nothing is listed. However, pacman reports that glibc 2.16 is up-to-date and living in /usr/lib. Can anyone give me further suggestions for a fix or a pointer to the thread voted most likely to succeed ?

Best,

dp


Similis sum folio de quo ludunt venti.

Offline

#6 2012-11-11 12:18:52

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: mkinitcpio problem

there seems to be a problem with the -l / --list default option of lsinitcpio, try running it with the -lv flag.

Below is the output from my (working) system :

$ lsinitcpio -lv /boot/initramfs-linux.img |grep libc
-rwxr-xr-x   1 root     root        14608 Nov  6 10:30 ./usr/lib/libcom_err.so.2.1
lrwxrwxrwx   1 root     root           17 Nov  6 10:30 ./usr/lib/libcom_err.so.2 -> libcom_err.so.2.1
-rwxr-xr-x   1 root     root      2010709 Nov  6 10:30 ./usr/lib/libc-2.16.so
lrwxrwxrwx   1 root     root           12 Nov  6 10:30 ./usr/lib/libc.so.6 -> libc-2.16.so

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#7 2012-11-11 17:09:34

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: mkinitcpio problem

Lone_Wolf wrote:

there seems to be a problem with the -l / --list default option of lsinitcpio, try running it with the -lv flag.

https://bugs.archlinux.org/task/32605

Offline

Board footer

Powered by FluxBB