LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 02-13-2008, 09:05 AM   #1
awillard69
LQ Newbie
 
Registered: Aug 2004
Location: Chicagoland
Distribution: Fedora
Posts: 13

Rep: Reputation: 0
Unhappy mkinitrd is failing when installing a new kernel


Please help me.

I'm trying to update to a new kernel, but it won't install successfully.

Code:
[root@pc-wip awillard]# ll /boot
total 6375
-rw-r--r-- 1 root root   78266 2007-12-18 19:03 config-2.6.23.12-52.fc7
drwxr-xr-x 2 root root    1024 2008-02-12 12:09 grub
-rw------- 1 root root 3587000 2008-01-09 09:41 initrd-2.6.23.12-52.fc7.img
drwx------ 2 root root   12288 2006-03-21 04:19 lost+found
-rw-r--r-- 1 root root  845183 2007-12-18 19:03 System.map-2.6.23.12-52.fc7
-rw-r--r-- 1 root root 1970816 2007-12-18 19:03 vmlinuz-2.6.23.12-52.fc7
[root@pc-wip awillard]# rpm -ivh ./kernel-2.6.23.15-80.fc7.i586.rpm 
Preparing...                ########################################### [100%]
   1:kernel                 ########################################### [100%]
/sbin/mkinitrd: line 151: 22710 Done                    echo nash-find "$@"
     22711 Segmentation fault      | /sbin/nash --force --quiet
/sbin/new-kernel-pkg: line 90: 22721 Segmentation fault      $grubby --add-kernel=$bootPrefix/$kernelName-$version $INITRD --copy-default $makedefault --title "$title" ${mbkernel:+--add-multiboot="$mbkernel"} ${mbargs:+--mbargs="$mbargs"} --args="root=$rootdevice $kernargs" --remove-kernel="TITLE=$title"
[root@pc-wip awillard]# ll /boot
total 9224
-rw-r--r-- 1 root root   78266 2007-12-18 19:03 config-2.6.23.12-52.fc7
-rw-r--r-- 1 root root   78546 2008-02-10 15:40 config-2.6.23.15-80.fc7
drwxr-xr-x 2 root root    1024 2008-02-12 12:09 grub
-rw------- 1 root root 3587000 2008-01-09 09:41 initrd-2.6.23.12-52.fc7.img
-rw------- 1 root root      50 2008-02-12 12:13 initrd-2.6.23.15-80.fc7.img
drwx------ 2 root root   12288 2006-03-21 04:19 lost+found
-rw-r--r-- 1 root root  845183 2007-12-18 19:03 System.map-2.6.23.12-52.fc7
-rw-r--r-- 1 root root  846569 2008-02-10 15:40 System.map-2.6.23.15-80.fc7
-rw-r--r-- 1 root root 1970816 2007-12-18 19:03 vmlinuz-2.6.23.12-52.fc7
-rw-r--r-- 1 root root 1975136 2008-02-10 15:40 vmlinuz-2.6.23.15-80.fc7
[root@pc-wip awillard]# rpm -e kernel-2.6.23.15-80.fc7
/sbin/new-kernel-pkg: line 174: 22733 Segmentation fault      $grubby --remove-kernel=$bootPrefix/$kernelName-$version
[root@pc-wip awillard]#
As you can see, it fails and the created ramdisk image is only 50 bytes. So it failed when making it.

Specifically, the line in mkinitrd that fails is:
Code:
# next line seems to fail, any hints?
(cd $MNTIMAGE; findall . | cpio -H newc --quiet -o) >| $IMAGE || exit 1
I have plenty of disk space, 26 GB on root, 82MB on /boot.

My packages for mkinitrd and nash are:
[code]
$ rpm -q mkinitrd nash
mkinitrd-6.0.9-7.1
nash-6.0.9-7.1
[code]

I'm in a bit over my head here. If it matters, it's Fedora 7 and it's been working fine up to this incident.
 
Old 02-13-2008, 01:58 PM   #2
awillard69
LQ Newbie
 
Registered: Aug 2004
Location: Chicagoland
Distribution: Fedora
Posts: 13

Original Poster
Rep: Reputation: 0
More info:

I ran
Code:
# rpm -vV mkinitrd
prelink: /sbin/grubby: at least one of file's dependencies has changed since prelinking
S.?.....   /sbin/grubby
........ c /sbin/installkernel
........   /sbin/mkinitrd
........   /sbin/new-kernel-pkg
........ d /usr/share/man/man8/grubby.8.gz
........ d /usr/share/man/man8/mkinitrd.8.gz
So, I downloaded and reinstalled mkinitrd and nash (even though it didn't report any differences). But, nothing is different. I even restarted to see if maybe something may have been loaded in memory.

So, I looked into the grubby command. I did
Code:
 grubby --default-kernel
Segmentation fault
"Something is afoot, Watson!"

However, on a different machine,
Code:
# grubby --default-kernel
/boot/vmlinuz-2.6.23.15-80.fc7
So, it should work, but something with grubby (mkinitrd,nash) is not working.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel panic: after mkinitrd daemonkl Linux - Kernel 3 09-08-2007 11:00 PM
Can't mkinitrd for Kernel 2.6.11.6 (when compiling) LordOfer Linux - Newbie 3 04-02-2005 11:20 AM
Use mkinitrd to include module in kernel Travers Linux - Newbie 1 07-23-2004 02:35 PM
kernel 2.6.6 mkinitrd problem ziox Linux - Software 0 07-13-2004 07:48 PM
mkinitrd problems (compiling new kernel) qsir1 Linux - Software 5 03-01-2004 09:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 08:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration