public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Problem spawning init from script
@ 2004-04-30  7:21 Joe Schulz
  2004-04-30 21:14 ` Denis Vlasenko
  0 siblings, 1 reply; 3+ messages in thread
From: Joe Schulz @ 2004-04-30  7:21 UTC (permalink / raw)
  To: linux-kernel


Hello world,


for internal reasons I designed a custom boot procedure with two root
partitions. One is booted by default and a script is executed via the
"init=/sbin/initscript" kernel option.

The script restrieves some information and depending on that information
it decides whether the current boot should continue or some other
partition is being mounted and boot continues on that.

As the script involves the usage of USB storage, gpg, openssl, device
mapper and various other bits, it would make some pretty big and hard
to handle initrd so I decided to try it directly as described.

Infortunately when the script tries to exec'ute either one init proces or
the other at its end, the kernel always panics:

Kernel panic: Attempted to kill init!

Does that mean I MUST use initrd to be able to use such a script or is
there a way to get around this?

Hints appreciated,
                  Joe


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-05-01 15:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-30  7:21 Problem spawning init from script Joe Schulz
2004-04-30 21:14 ` Denis Vlasenko
2004-05-01 15:24   ` Joe Schulz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox