Re: lug-bg: Problem when replacing Init
- Subject: Re: lug-bg: Problem when replacing Init
- From: whitefang@xxxxxx (Angel Valkov)
- Date: Mon, 17 Sep 2001 01:03:29 +0300
On Sunday 16 September 2001 14:08, you wrote:
> selibum,
>
> na kratko choweka iska da si smeni init programata s druga programa. No
> za syjalenie(ili za shtastie ? ) sreshta trudnosti.
> Towa koeto ti opiswash e normalnata rabota na edna linux sistema. Towa
> koeto toj iska da naprawi e Linux kernel v/u kojto direktno da raboti
> java vm. a ne prez init, etc.
>
> Sasho:
> Ne razbrah w momenta kak setwash promenliwite e environmenta? kakwa
> programa puskash wmesto init?
>
> BR,
> Boyan
Ami zna4i naj-byrziq i lesen na4in ( no i naj-grubiq )
e da "hard-code"- promenite v environment-a i programata koiato startira
v /usr/src/linux/init/main.c
vyv funciata init();
/*
* We try each of these until one succeeds.
*
* The Bourne shell can be used instead of init if we are
* trying to recover a really broken machine.
*/
if (execute_command)
execve(execute_command,argv_init,envp_init);
execve("/sbin/init",argv_init,envp_init);
execve("/etc/init",argv_init,envp_init);
execve("/bin/init",argv_init,envp_init);
execve("/bin/sh",argv_init,envp_init);
panic("No init found. Try passing init= option to kernel.");
Po priemlivo reshenie e da si drasne nabyrzo edno mini-init4e na C
koeto da mu ustanoviata pravilno ENV. i startira java "vyprosnata programa"
Po skoro startira to4no tazi VM koiato mu triabva za negovata platforma.
primerno /path/to/jdk/bin/i386/native_threads/java
Ustanoviavaneto na ENV-to ne move da go izbegne sys "stock" JDK.
===========================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora
|