Problem spawning init from script

From: Joe Schulz
Date: Fri Apr 30 2004 - 02:37:57 EST



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

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