Re: Problem spawning init from script

From: Joe Schulz (joe_at_spamfilter.de)
Date: 05/01/04

  • Next message: Ian Stirling: "Debugging [binary] modules."
    To: Denis Vlasenko <vda@port.imtp.ilyichevsk.odessa.ua>
    Date:	Sat, 01 May 2004 17:24:04 +0200
    
    

    On Fr, 2004-04-30 at 23:14, Denis Vlasenko wrote:

    > > Kernel panic: Attempted to kill init!
    >
    > This typically means that process #1 exited. Kernel does not like that.
    > I always use 'exec /path/something' as the last command in my sh scripts
    > which I start instead of 'standard' /sbin/init.
    >
    > Post your script.

    I have found the reason. Due to a linking problem, the exec'ed process
    always quietly died. Of course only in the boot process, not during
    dry-run testing. So I had falsely assumed that exec'ing from #1 might
    always lead to a panic if you don't use the initrd procedure.

    Thanks four your kind advice.

    br, Joe
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Ian Stirling: "Debugging [binary] modules."

    Relevant Pages

    • function ordering (was: Re: [RFC] exit_thread() speedups in x86 process.c)
      ... On Sat, 2005-07-02 at 14:56 +0300, Denis Vlasenko wrote: ... >> some other archs the entire kernel is in one large page. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [Patch] Support UTF-8 scripts
      ... exec is fast. ... > it is likely not for script files. ... This is distribution problem, not kernel problem. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Probable module bug in linux-2.6.5-1.358
      ... On Thu, 2004-10-07 at 00:08, Richard B. Johnson wrote: ... > The attached script shows that an attempt to open a device ... > after its module was removed, will seg-fault the kernel. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 1352 NUL bytes at the end of a page? (was Re: Assertion `s && s->tree failed: The sag
      ... > bad calling conventions and really nasty bugs). ... I ran the bk exerciser script for over an hour with 2.6.6-current ... noticed failture as a bk bug to LM on 4/15/04 if that helps with kernel versions. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] out-of-tree builds
      ... > Although I like the feature to build a kernel in a different directory a lot, ... > The following patch adds a configure script to the kernel. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)