Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 351909 - sys-kernel/genkernel-3.4.11 generates unbootable kernel - /init: line 308: mdstart not found
Summary: sys-kernel/genkernel-3.4.11 generates unbootable kernel - /init: line 308: md...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2011-01-17 14:02 UTC by Stefan G. Weichinger
Modified: 2011-01-20 14:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan G. Weichinger 2011-01-17 14:02:10 UTC
kernel 2.6.37-gentoo on ~amd64 built with same config as with sys-kernel/genkernel-3.4.10.908 does not boot.

Hangs with (not the exact words):

/init: line 308: mdstart not found
Comment 1 Stefan G. Weichinger 2011-01-17 17:08:15 UTC
Is this related to: https://bugs.gentoo.org/show_bug.cgi?id=282100  ?
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2011-01-18 19:21:23 UTC
(In reply to comment #1)
> Is this related to: https://bugs.gentoo.org/show_bug.cgi?id=282100  ?

Well, is it?
Comment 3 Sebastian Pipping gentoo-dev 2011-01-19 01:16:22 UTC
(In reply to comment #2)
> Well, is it?

I suppose it isn't, because that bugs commits did not make it into 3.4.11.

I suppose something went wrong when upgrading busybox to 1.18.1 on our end.
Stefan, would testing with busybox 1.7.4 be an option for you to check that assumption?

Also, before I get to that, comparing the mdstart patches for 1.7.4 and for 1.18.1 may lead to the cause:
http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=blob;f=patches/busybox/1.7.4/1.7.4-mdstart.diff;hb=HEAD
http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=blob;f=patches/busybox/1.18.1/1.18.1-mdstart.diff;hb=HEAD

Denis, any ideas?
Comment 4 Stefan G. Weichinger 2011-01-19 08:58:58 UTC
(In reply to comment #3)
> Stefan, would testing with busybox 1.7.4 be an option for you to check that
> assumption?

Sure. I emerged "=sys-apps/busybox-1.17.4" (not 1.7.4 ;-)), re-emerged sys-kernel/genkernel-3.4.11 and re-ran "genkernel --no-clean all" for my kernel.

Same error at boot.

But I see I have to edit BUSYBOX_VER in genkernel.conf ... just a minute ...
Comment 5 Stefan G. Weichinger 2011-01-19 09:10:19 UTC
(In reply to comment #4)
 
> But I see I have to edit BUSYBOX_VER in genkernel.conf ... just a minute ...

Same behavior with BUSYBOX_VER="1.7.4" ... now I try BUSYBOX_VER="1.17.4"

Comment 6 Stefan G. Weichinger 2011-01-19 09:18:10 UTC
(In reply to comment #5)
> Same behavior with BUSYBOX_VER="1.7.4" ... now I try BUSYBOX_VER="1.17.4"

Sorry, exactly the opposite, my mistake.

genkernel-3.4.11 generates bootable system with BUSYBOX_VER="1.7.4", yes!
genkernel-3.4.11 generates unbootable system with BUSYBOX_VER="1.17.4" with the quoted error.

Sorry for not trusting your "1.7.4" up there ;-)

Thanks so far, let me know if and how I can help to debug this more.
Stefan
Comment 7 Sebastian Pipping gentoo-dev 2011-01-20 00:27:44 UTC
First a side note: As there is no mdstart patch for busybox 1.17.4 (in contrast to 1.7.4 and 1.18.1), the error can be expected for that version.

I have prepared a patch for 1.18.1 that brings back mdstart as an applet.
The most comfortable way to test it would be:

  # git clone git://git.overlays.gentoo.org/proj/genkernel.git
  # git checkout -t origin/bug-351909
  # sudo rm /var/cache/genkernel/busybox-1.18.1-*.tar.bz2
  # sudo GK_SHARE="$PWD" ./genkernel initramfs

At the moment branch "bug-351909" is the code of 3.4.11 plus this single patch:

http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commitdiff;h=f693ca5854d487b2e6d24910a203381f7867dda5

Please report how it works for you.
Comment 8 Stefan G. Weichinger 2011-01-20 09:20:53 UTC
(In reply to comment #7)
> I have prepared a patch for 1.18.1 that brings back mdstart as an applet.
> The most comfortable way to test it would be:
> 
>   # git clone git://git.overlays.gentoo.org/proj/genkernel.git
>   # git checkout -t origin/bug-351909

small addition (for others who might find that):

    # cd genkernel

>   # sudo rm /var/cache/genkernel/busybox-1.18.1-*.tar.bz2
>   # sudo GK_SHARE="$PWD" ./genkernel initramfs

> At the moment branch "bug-351909" is the code of 3.4.11 plus this single patch:
> 
> http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commitdiff;h=f693ca5854d487b2e6d24910a203381f7867dda5
> 
> Please report how it works for you.

It worked fine! It booted without any visible problem, thanks.
Will I have to take care of keeping that version or will it go into portage anyway soon?

Thank you!
Comment 9 Sebastian Pipping gentoo-dev 2011-01-20 14:35:33 UTC
(In reply to comment #8)
> Will I have to take care of keeping that version or will it go into portage
> anyway soon?

New release 3.4.11.1 just hit the Gentoo tree.

+*genkernel-3.4.11.1 (20 Jan 2011)
+
+  20 Jan 2011; Sebastian Pipping <sping@gentoo.org> -genkernel-3.4.11.ebuild,
+  +genkernel-3.4.11.1.ebuild:
+  Bump to 3.4.11.1. Closes bug #351906 and #351909
+
Comment 10 Stefan G. Weichinger 2011-01-20 14:44:13 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > Will I have to take care of keeping that version or will it go into portage
> > anyway soon?
> 
> New release 3.4.11.1 just hit the Gentoo tree.
> 
> +*genkernel-3.4.11.1 (20 Jan 2011)
> +
> +  20 Jan 2011; Sebastian Pipping <sping@gentoo.org> -genkernel-3.4.11.ebuild,
> +  +genkernel-3.4.11.1.ebuild:
> +  Bump to 3.4.11.1. Closes bug #351906 and #351909
> +

Great, thanks!