FS#7841 - mkinitcpio generates unbootable kernel26.img

Attached to Project: Arch Linux
Opened by Andrew Munkres (amunkres) - Saturday, 18 August 2007, 03:47 GMT
Last edited by Tobias Powalowski (tpowa) - Saturday, 27 October 2007, 12:29 GMT
Task Type Bug Report
Category System
Status Closed
Assigned To Aaron Griffin (phrakture)
Architecture x86_64
Severity Critical
Priority Normal
Reported Version 2007.08 Don't Panic
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

After running "pacman -Syu" today, I am no longer able to boot using /boot/kernel26.img (I can still boot with kernel26-fallback.img). When booting, it panics after being unable to open "/config". No error messages appeared while running mkinitcpio. When running "zcat /boot/kernel26.img | cpio -tv", cpio gives the error message "cpio: premature end of file", and the list of files appears to be truncated compared to that of kernel26-fallback.img. I used "pacman -U" to reinstall the kernel package to regenerate to initcpio, but it still had the same problem.

I ran "zcat /boot/kernel26.img | cpio -tv >& kernel26-img_contents.txt" and have attached the output file here. Also attached are an excerpt from /var/log/pacman.log which shows what happened during the system upgrade and the mkinitcpio configuration files for each of the two images.
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Saturday, 27 October 2007, 12:29 GMT
Reason for closing:  Fixed
Additional comments about closing:  no response
Comment by Tobias Powalowski (tpowa) - Saturday, 18 August 2007, 13:18 GMT
cannot confirm all fine here
Comment by Andrew Munkres (amunkres) - Saturday, 18 August 2007, 21:04 GMT
I removed "autodetect" from the list of hooks in mkinitcpio.conf, and now it generates a bootable initcpio.
Comment by Tobias Powalowski (tpowa) - Monday, 20 August 2007, 11:17 GMT
your system didn't include the filesystem modules, what filesystems are you using?
Comment by Tobias Powalowski (tpowa) - Monday, 20 August 2007, 11:20 GMT
also check if your /boot directory wasn't running out of space
Comment by Andrew Munkres (amunkres) - Tuesday, 21 August 2007, 04:30 GMT
Which filesystems: ext2 (on /boot) and ext3 (on /)
Space on /boot: df -h reports 121M available
Comment by Gianluca Romanin (J_Zar) - Wednesday, 05 September 2007, 10:08 GMT
Confirmed. Read here for more detail and pacman output:

http://bbs.archlinux.org/viewtopic.php?id=36974
Comment by Aaron Griffin (phrakture) - Thursday, 13 September 2007, 03:46 GMT
Reading the thread, and noticing the depmod thing - make sure

* You have module-init-tools installed
* You didn't accidentally extract the cpio image over your base utils... I've seen this happen with similar effects - because you're using klibc-based tools like "modprobe" it screws everything up
Comment by Tobias Powalowski (tpowa) - Friday, 26 October 2007, 06:41 GMT
status on this?

Loading...