Bug#576677: Kernel Panic - no init found
I don't know why find(1) says they are N - Non existent. ls -Ll shows them fine. $ find NOSHUCH sleep -type l -printf %Y\\n|s N f $ find NOSHUCH sleep |xargs ls -l lrwxrwxrwx 1 jidanni jidanni 16 2010-04-07 13:37 NOSHUCH - /usr/bin/NOSHUCH lrwxrwxrwx 1 jidanni jidanni 10 2010-04-07 13:39 sleep - /bin/sleep $ find NOSHUCH sleep |xargs ls -lL ls: cannot access NOSHUCH: No such file or directory -rwxr-xr-x 1 root root 18204 2010-03-06 21:23 sleep I put an exit just before the link checking damage. # find /tmp/mkinitramfs_VcP7aW/ -type l -printf '%p %Y\n'| grep -c ' N$' 483 # find /tmp/mkinitramfs_VcP7aW/ -type l|xargs ls -Llog 21|nl|tail -n 3 481 -rwxr-xr-x 1 10084 2010-03-22 19:25 /tmp/mkinitramfs_VcP7aW/sbin/rmmod 482 -rwxr-xr-x 1 121900 2010-03-15 09:42 /tmp/mkinitramfs_VcP7aW/sbin/udevadm 483 -rwxr-xr-x 1 113408 2010-03-15 09:42 /tmp/mkinitramfs_VcP7aW/sbin/udevd # find /tmp/mkinitramfs_VcP7aW/bin/ -type l -printf '%p %Y\n'| grep -c ' N$' 35 # find /tmp/mkinitramfs_VcP7aW/bin/umount -type l -printf '%p %Y\n'| grep -c ' N$' 0 Ha ha ha... the bug is in find(1)! -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/87ljczolht@jidanni.org
Bug#576677: Kernel Panic - no init found
On Wed, Apr 07, 2010 at 01:31:29PM +0800, jida...@jidanni.org wrote: I found out where all the missing files went by adding --verbose here: # diff -C 1 /usr/sbin/mkinitramfs /tmp *** /usr/sbin/mkinitramfs 2010-04-05 13:10:29.0 +0800 --- /tmp/mkinitramfs2010-04-07 13:26:12.237673402 +0800 *** *** 288,290 find ${DESTDIR} -type l -printf '%p %Y\n' | sed -n 's/ [LN]$//p' \ ! | xargs -rL1 rm -f --- 288,290 find ${DESTDIR} -type l -printf '%p %Y\n' | sed -n 's/ [LN]$//p' \ ! | xargs --verbose -rL1 rm -f # /tmp/mkinitramfs -o /dev/null 21|nl|tail -n 3 481 rm -f /tmp/mkinitramfs_7pCOO2/bin/cpio 482 rm -f /tmp/mkinitramfs_7pCOO2/bin/chroot 483 rm -f /tmp/mkinitramfs_7pCOO2/bin/cat So you have overly rabid link checking cool, added that output to verbose run of mkinitrmafs, now why are those links broken or circular, can you of a kept /tmp/mkinitramfs_* run abvoes find and sed please post also, just to make sure /tmp has no funky options cat /proc/mounts and see that place is not missing df -h -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100407055103.gi6...@baikonur.stro.at
Bug#576677: Kernel Panic - no init found
Package: linux-2.6 Version: 2.6.32-9 Severity: serious Kernel Panic - no init found. Tried init=/sbin/init. No help. -- Package-specific info: -- System Information: Debian Release: squeeze/sid APT prefers experimental APT policy: (990, 'experimental'), (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.32-2-686 (SMP w/1 CPU core) Locale: LANG=zh_TW.UTF-8, LC_CTYPE=zh_TW.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages linux-image-2.6.32-3-686 depends on: ii debconf [debconf-2.0]1.5.30 Debian configuration management sy ii initramfs-tools [linux-initr 0.94tools for generating an initramfs ii module-init-tools3.12~pre2-2 tools for managing Linux kernel mo Versions of packages linux-image-2.6.32-3-686 recommends: ii firmware-linux-f 2.6.33-1~experimental.4 Binary firmware for various driver ii libc6-i686 2.11-0exp4 GNU C Library: Shared libraries [i Versions of packages linux-image-2.6.32-3-686 suggests: ii grub-pc [grub] 1.96+20080724-16 GRand Unified Bootloader, version ii linux-doc-2.6.322.6.32-10Linux kernel specific documentatio Versions of packages linux-image-2.6.32-3-686 is related to: pn firmware-bnx2 none (no description available) pn firmware-bnx2xnone (no description available) pn firmware-ipw2x00 none (no description available) pn firmware-ivtv none (no description available) pn firmware-iwlwifi none (no description available) ii firmware-linux0.23 Binary firmware for various driver ii firmware-linux-nonfree0.23 Binary firmware for various driver pn firmware-qlogic none (no description available) pn firmware-ralink none (no description available) -- debconf information: shared/kernel-image/really-run-bootloader: true linux-image-2.6.32-3-686/postinst/bootloader-error-2.6.32-3-686: linux-image-2.6.32-3-686/postinst/depmod-error-initrd-2.6.32-3-686: false linux-image-2.6.32-3-686/postinst/bootloader-test-error-2.6.32-3-686: linux-image-2.6.32-3-686/postinst/missing-firmware-2.6.32-3-686: linux-image-2.6.32-3-686/prerm/would-invalidate-boot-loader-2.6.32-3-686: true linux-image-2.6.32-3-686/prerm/removing-running-kernel-2.6.32-3-686: true -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/8763443fm6@jidanni.org
Bug#576677: Kernel Panic - no init found
On Tue, Apr 06, 2010 at 08:55:13PM +0800, jida...@jidanni.org wrote: Package: linux-2.6 Version: 2.6.32-9 Severity: serious Kernel Panic - no init found. Tried init=/sbin/init. No help. please post output of update-initramfs -u -k 2.6.32-3-686 -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100406132107.gq32...@baikonur.stro.at
Bug#576677: Kernel Panic - no init found
On Tue, 2010-04-06 at 20:55 +0800, jida...@jidanni.org wrote: Package: linux-2.6 Version: 2.6.32-9 Severity: serious Kernel Panic - no init found. Tried init=/sbin/init. No help. Did you supply an initramfs? What's the root device? Ben. -- Ben Hutchings Once a job is fouled up, anything done to improve it makes it worse. signature.asc Description: This is a digitally signed message part
Processed: Re: Bug#576677: Kernel Panic - no init found
Processing commands for cont...@bugs.debian.org: #the only package that changed ... must be reassign 576677 initramfs-tools Bug #576677 [linux-2.6] Kernel Panic - no init found Bug reassigned from package 'linux-2.6' to 'initramfs-tools'. Bug No longer marked as found in versions 2.6.32-9. found 576677 0.94 Bug #576677 [initramfs-tools] Kernel Panic - no init found Bug Marked as found in versions initramfs-tools/0.94. thanks Stopping processing here. Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database) -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/handler.s.c.127056186929872.transcr...@bugs.debian.org
Bug#576677: Kernel Panic - no init found
#the only package that changed ... must be reassign 576677 initramfs-tools found 576677 0.94 thanks ma == maximilian attems m...@stro.at writes: ma On Tue, Apr 06, 2010 at 08:55:13PM +0800, jida...@jidanni.org wrote: Package: linux-2.6 Version: 2.6.32-9 Severity: serious Kernel Panic - no init found. Tried init=/sbin/init. No help. ma please post output of ma update-initramfs -u -k 2.6.32-3-686 I will once its battery charges back up -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/87zl1gwuyg@jidanni.org
Bug#576677: Kernel Panic - no init found
ma is this with 0.94 initramfs-tools, I kinda doubt? ma please recheck I guarantee. OK, now I have verified it on IBM Thinkpad and EEEPC: initramfs-tools_0.93.4_all.deb #works great initramfs-tools_0.94_all.deb #will lock one out of one's system ma is your /tmp mounted noexec? ma egrep /tmp /proc/mounts tmpfs /tmp tmpfs rw,relatime 0 0 ma do you have current mdadm and cryptsetup isntalled? ma dpkg -l mdadm cryptsetup un mdadm none(no description available) No packages found matching cryptsetup. -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/87sk78prlz@jidanni.org
Bug#576677: Kernel Panic - no init found
On Tue, Apr 06, 2010 at 10:28:51PM +0800, jida...@jidanni.org wrote: ma please post output of ma update-initramfs -u -k 2.6.32-3-686 # update-initramfs -u -k 2.6.32-3-686 update-initramfs: Generating /boot/initrd.img-2.6.32-3-686 is this with 0.94 initramfs-tools, I kinda doubt? please recheck OK, now I have verified it on IBM Thinkpad and EEEPC: initramfs-tools_0.93.4_all.deb #works great initramfs-tools_0.94_all.deb #will lock one out of one's system is your /tmp mounted noexec? egrep /tmp /proc/mounts do you have current mdadm and cryptsetup isntalled? dpkg -l mdadm cryptsetup -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100406143106.gt32...@baikonur.stro.at
Bug#576677: Kernel Panic - no init found
ma cat /proc/cmdline BOOT_IMAGE=/boot/vmlinuz-2.6.32-3-686 root=/dev/hda11 ro quiet panic=15 -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/87k4skpq7i@jidanni.org
Bug#576677: Kernel Panic - no init found
ma == maximilian attems m...@stro.at writes: ma please post output of 0.94 ma sh -x mkinitramfs -o /tmp/foo # aptitude install initramfs-tools #0.94 # sh -x mkinitramfs -o /tmp/foo 2 /tmp/bar bar.bz2 Description: Binary data
Bug#576677: Kernel Panic - no init found
also please add cat /proc/cmdline -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100406150509.gw32...@baikonur.stro.at
Bug#576677: Kernel Panic - no init found
On Tue, Apr 06, 2010 at 10:45:12PM +0800, jida...@jidanni.org wrote: ma is this with 0.94 initramfs-tools, I kinda doubt? ma please recheck I guarantee. please post output of 0.94 sh -x mkinitramfs -o /tmp/foo ma do you have current mdadm and cryptsetup isntalled? ma dpkg -l mdadm cryptsetup un mdadm none(no description available) No packages found matching cryptsetup. good, this excludes stuff. -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100406144351.gu32...@baikonur.stro.at
Bug#576677: Kernel Panic - no init found
On Tue, Apr 06, 2010 at 08:55:13PM +0800, jida...@jidanni.org wrote: Package: linux-2.6 Version: 2.6.32-9 Severity: serious Kernel Panic - no init found. Tried init=/sbin/init. No help. so the initramfs creation looks fine and is 0.94 indeed, the bootargs look okayish, so I need the exact error of aboves boot please take an image. thanks -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100406201718.gc32...@baikonur.stro.at
Bug#576677: Kernel Panic - no init found
$ for i in $...@*; do echo $@;zcat $i|cpio -tv|nl|tail -n 5; done /boot/initrd.img-2.6.32-3-686 1092 blocks 156 -rw-r--r-- 1 root root5 Apr 7 11:01 conf/modules 157 -rw-r--r-- 1 root root 1055 Apr 4 11:43 conf/initramfs.conf 158 -rw-r--r-- 1 root root 15 Apr 7 11:01 conf/arch.conf 159 drwxr-xr-x 2 root root0 Apr 7 11:01 conf/conf.d 160 drwxr-xr-x 2 root root0 Apr 7 11:01 bin /boot/initrd.img-2.6.32-3-686 35062 blocks 642 -rwxr-xr-x 1 root root 736 Mar 21 06:16 bin/dmesg 643 -rwxr-xr-x 1 root root 3176 Mar 21 06:16 bin/dd 644 -rwxr-xr-x 1 root root 4428 Mar 21 06:16 bin/cpio 645 -rwxr-xr-x 1 root root 640 Mar 21 06:16 bin/chroot 646 -rwxr-xr-x 1 root root 2220 Mar 21 06:16 bin/cat -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/878w8zq5hn@jidanni.org
Bug#576677: Kernel Panic - no init found
# sh -x mkinitramfs -v -o /tmp/foo bar1 2 bar2 # bzip2 bar? bar1.bz2 Description: Binary data bar2.bz2 Description: Binary data # zcat foo |cpio -t|nl|tail 1092 blocks 151 etc/modprobe.d/jidanni.conf 152 etc/modprobe.d/fbdev-blacklist.conf 153 etc/modprobe.d/blacklist.conf 154 etc/modprobe.d/aliases.conf 155 conf 156 conf/modules 157 conf/initramfs.conf 158 conf/arch.conf 159 conf/conf.d 160 bin
Bug#576677: Kernel Panic - no init found
We see a truncated file produced, here on even a third machine. $ for i in $...@*; do ls -og $i; zcat $i|cpio -t|wc -l; done -rw-r--r-- 1 103770 2010-04-07 11:01 /boot/initrd.img-2.6.32-3-686 1092 blocks 160 -rw-r--r-- 1 7244191 2010-03-22 09:11 /boot/initrd.img-2.6.32-3-686.bak 35062 blocks 646 -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/87aatfq5m4@jidanni.org
Bug#576677: Kernel Panic - no init found
On Wed, Apr 07, 2010 at 11:57:40AM +0800, jida...@jidanni.org wrote: $ for i in $...@*; do echo $@;zcat $i|cpio -tv|nl|tail -n 5; done /boot/initrd.img-2.6.32-3-686 1092 blocks 156 -rw-r--r-- 1 root root5 Apr 7 11:01 conf/modules 157 -rw-r--r-- 1 root root 1055 Apr 4 11:43 conf/initramfs.conf 158 -rw-r--r-- 1 root root 15 Apr 7 11:01 conf/arch.conf 159 drwxr-xr-x 2 root root0 Apr 7 11:01 conf/conf.d 160 drwxr-xr-x 2 root root0 Apr 7 11:01 bin /boot/initrd.img-2.6.32-3-686 35062 blocks 642 -rwxr-xr-x 1 root root 736 Mar 21 06:16 bin/dmesg 643 -rwxr-xr-x 1 root root 3176 Mar 21 06:16 bin/dd 644 -rwxr-xr-x 1 root root 4428 Mar 21 06:16 bin/cpio 645 -rwxr-xr-x 1 root root 640 Mar 21 06:16 bin/chroot 646 -rwxr-xr-x 1 root root 2220 Mar 21 06:16 bin/cat both are broken, in different ways. need verbose output of mkinitramfs sh -x mkinitramfs -v -o /tmp/foo -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100407035717.ge6...@baikonur.stro.at
Bug#576677: Kernel Panic - no init found
On Wed, Apr 07, 2010 at 11:54:59AM +0800, jida...@jidanni.org wrote: We see a truncated file produced, here on even a third machine. $ for i in $...@*; do ls -og $i; zcat $i|cpio -t|wc -l; done -rw-r--r-- 1 103770 2010-04-07 11:01 /boot/initrd.img-2.6.32-3-686 1092 blocks 160 ok that helps, please post content of aboves, rereading mkinitramfs trace. -rw-r--r-- 1 7244191 2010-03-22 09:11 /boot/initrd.img-2.6.32-3-686.bak 35062 blocks 646 -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100407035231.gd6...@baikonur.stro.at
Bug#576677: Kernel Panic - no init found
On Wed, Apr 07, 2010 at 12:12:45PM +0800, jida...@jidanni.org wrote: # sh -x mkinitramfs -v -o /tmp/foo bar1 2 bar2 # bzip2 bar? grr still clueless, please do mkinitramfs -k -o /tmp/foo that keeps temporary build dirs and show find /tmp/mkinitramfs_* -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100407041740.gf6...@baikonur.stro.at
Bug#576677: Kernel Panic - no init found
On Wed, 07 Apr 2010, jida...@jidanni.org wrote: ma please take an image. Made with this grub stanza: menuentry Debian GNU/Linux, linux 2.6.32-3-686 (single-user mode) { set root=(hd0,5) search --fs-uuid --set efd74e43-e0cb-4aa9-8a1d-d258cd465773 linux /boot/vmlinuz-2.6.32-3-686 root=/dev/hda5 ro single panic=111 initrd /boot/initrd.img-2.6.32-3-686 } thanks, hmm, what permissions does this file have: ls -lrt /usr/share/initramfs-tools/init -- maks -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100407035542.gk7...@stro.at
Bug#576677: Kernel Panic - no init found
Maybe it all has to do with this recent change to /usr/sbin/mkinitramfs: 202,206d226 # klibc ln -s /usr/lib/klibc/bin/* ${DESTDIR}/bin ln -s /lib/klibc-*.so ${DESTDIR}/lib maybe not. -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/871verq3e6@jidanni.org
Bug#576677: Kernel Panic - no init found
By the way, a 0 byte overlay? # mkinitramfs -o /tmp/foo2 -k Working files in /tmp/mkinitramfs_8JZYvN and overlay in /tmp/mkinitramfs-OL_aFgfUj # find /tmp/mkinitramfs_8JZYvN|wc -l 160 # ls -l /tmp/mkinitramfs-OL_aFgfUj -rw--- 1 root root 0 2010-04-07 12:22 /tmp/mkinitramfs-OL_aFgfUj -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/8739z7q456@jidanni.org
Bug#576677: Kernel Panic - no init found
On Wed, Apr 07, 2010 at 12:42:57PM +0800, jida...@jidanni.org wrote: Maybe it all has to do with this recent change to /usr/sbin/mkinitramfs: 202,206d226 # klibc ln -s /usr/lib/klibc/bin/* ${DESTDIR}/bin ln -s /lib/klibc-*.so ${DESTDIR}/lib maybe not. please send me privately one of this broken initramfs, don't have 686 box at the hand, but looking at it might help. also what's the size diff working, non working: ls -lh /boot/initrd* -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100407044255.gg6...@baikonur.stro.at
Bug#576677: Kernel Panic - no init found
I found out where all the missing files went by adding --verbose here: # diff -C 1 /usr/sbin/mkinitramfs /tmp *** /usr/sbin/mkinitramfs 2010-04-05 13:10:29.0 +0800 --- /tmp/mkinitramfs2010-04-07 13:26:12.237673402 +0800 *** *** 288,290 find ${DESTDIR} -type l -printf '%p %Y\n' | sed -n 's/ [LN]$//p' \ ! | xargs -rL1 rm -f --- 288,290 find ${DESTDIR} -type l -printf '%p %Y\n' | sed -n 's/ [LN]$//p' \ ! | xargs --verbose -rL1 rm -f # /tmp/mkinitramfs -o /dev/null 21|nl|tail -n 3 481 rm -f /tmp/mkinitramfs_7pCOO2/bin/cpio 482 rm -f /tmp/mkinitramfs_7pCOO2/bin/chroot 483 rm -f /tmp/mkinitramfs_7pCOO2/bin/cat So you have overly rabid link checking -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/87ochvomku@jidanni.org