Reinhard Katzmann <[EMAIL PROTECTED]> writes: > Hi! > > I'm unable to boot my self-made 2.4.17 kernel. When I try it > I get the following messages: > > VFS: Mounted root (ext2 filesystem). > Mounted devfs on /dev. > Red Hat nash version 3.1.6-mdk starting. > Mounting /proc filesystem. > Creating root device. > Mounting root filesystem with flags noatime > kjournald starting. Commit interval 5 seconds > EXT3-fs: mounted filesystem with ordered data mode. > pivotroot:pivot_root(/sysroot,/sysroot/initrd) failed:22 > Freeing unused kernel memory:708k freed. > Kernel panic: No init found. Try passing init= option to kernel.
Booh :-(. I'm currently in vacations so I can't try to fix it until jan-9 (at least). Does everyone else having this problem? Juan, does it sound familiar/normal to you? > Note: pivotroot returns error 22. What does this mean ? Check /usr/include/asm/errno.h :-). (actually it's EINVAL). > This is with mkinitrd-3.1.6-16mdk, I also -12mdk (my previous version) > without success. This version worked fine with the 2.4.16 kernel. I > also updated e2fsprogs to 1.25-2mdk and use the recent modutils > 2.4.12-1mdk. (the modutils were also used with 2.4.16 kernel, while > e2fsprogs/mkinitrd was updated when the 2.4.17 kernel did not boot). > I used make oldconfig with my old 2.4.16 kernel config and left all > new 2.4.17 options out. > > I also tested without initrd image. This fails as well: > > VFS: Mounted root (ext2 filesystem). > Mounted devfs on /dev. > Freeing unused kernel memory:708k freed. > Kernel panic: Attempted to kill init! Ooh this is also strange but looks like a kernel problem? Or does boot without pivot_rooting no more supported, dear kernel team? > Any other dependencies which needs to be updated for mkinitrd ? I > only checked "rpm -q --requires mkinitrd" and except the mentioned > packages all the other are from original Mandrake 8.1. I did not > make changes to my original Mandrake 8.1 except the mentioned kernel > packages and initscripts (I'm mainly interested in kernel/driver > development USB/IEEE1394 and DVB/DVD). > > Also I checked the initrd image and found two strange things: > - /sbin is created with mkdir and there a link from bin to sbin > is created. (Same with the old version). I commented the mkdir > command for testing. This should be correct though. > - mkinitrd does not check the the kernel config (/boot/config-2.4.17-xyz) > correctly, modules are added from the kernel source tree (!) > which are inside the kernel (for me this was ext3, ide-mod, ide-probe-mod, > ide-disk). If I don't add them to IGNOREMODS insmoding will (of course) > fail when booting the kernel. I don't follow you. Modules are taken from /lib/modules/$kernver so what's the problem? -- Guillaume Cottenceau - http://people.mandrakesoft.com/~gc/
