[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: yaboot init=/linuxrc
Mike Power wrote:
> Nope. First I only have /bin/sh on my initrd, but init=/bin/sh should
> produce similar results. In this case it didn't run the shell but ran
> my /linuxrc instead.
Ok, we see there's a problem passing this argument to the kernel, the
kernel isn't using a wrong ID for his init or something like that. So
what does 'cat /proc/cmdline' say?
btw: If /linuxrc isn't called as init, but as another regular process,
/linuxrc must have been called by /sbin/init - this sounds like a bug in
your init startup config (because there is no useful reason for
/sbin/init to call another programm, that is made to be an init tool, too).
Greetings,
Fabian
> Fabian Hänsel wrote:
>
>> Mike Power wrote:
>>
>>> I am having trouble doing some custom boot steps before init runs.
>>> I have a script /linuxrc that needs to be executed as pid 1 so that
>>> it can turn around and call init when it is done. I followed the
>>> directions to do this using the grub boot loader. In those
>>> directions the option init=/linuxrc is passed to the kernel
>>
>>
>> If your yaboot.conf is right: Does init=/bin/bash work as expected?
>>
>> Greetings,
>> Fabian
>