Re: How to run secondstage using uboot
On Mon, May 4, 2009 at 5:35 PM, Neil Williams <firstname.lastname@example.org> wrote:
> On Mon, 4 May 2009 17:26:02 +0200
>> I just run emsecondstage from /etc/inittab [before the rc.d stuff
>> starts up] You'll need to create a few device nodes manually (just
>> console should be enough).
>> This should work with any bootloader.
> I've wondered about doing that but never had a chance to test it.
> Thanks for getting it working. emsecondstage removes itself once
> complete, so the routine presumably checks to see if the script exists
Not strictly necessary - init just prints a warning message if it isn't there.
Initially it can be handy to use a wrapper script like
/emsecondstage 2>&1 | tee /tmp/emsecondstage.log
so you get logs if something goes wrong [ I don't think init directly
Of course that could easilly test if the script exists.