thanks Steliosm.   I tried with "init=/bin/bash" but still same error.  It
seems that not anything wrong with "init" process itself, but some error
happened before that.

I just tried to build the rootfs without "--variant=buildd".  And this time
it worked.  Not sure what changed. Will play around more.

Han


On Tue, Aug 6, 2013 at 12:35 PM, Stelios M. <steli...@gmail.com> wrote:

> Hello.
>
> You could try to loop mount the root fs and check if there is an init
> there. You could also boot it with bash as init (init=/bin/bash) and check
> things.
>
> Regards,
> Steliosm
> On Aug 6, 2013 9:30 PM, "Han" <keepsim...@gmail.com> wrote:
>
>> Hi,
>>
>> I've built a root filesystem based off Debian Squeeze because I wanted to
>> include all built (e.g. gcc) tools in.  However,  i was not able to boot
>> the UML with this rootfs due to this error:
>>
>> <snip>
>> Kernel panic - not syncing: No init found.  Try passing init= option to
>> kernel.
>> </snip>
>>
>> here is how I ran the UML:
>>
>> ./linux ubda=/nobackup/hxu2/uml/debian-root-fs mem=128M
>>
>> I also tried to add "init=/sbin/init" or "init=3" at the end, but got the
>> same error.
>>
>> I believe I missed something when building the rootfs for the Init
>> option. But what is it?  How should I set the init option in the rootfs?
>>  please advise.
>>
>> thanks
>> Han
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Get 100% visibility into Java/.NET code with AppDynamics Lite!
>> It's a free troubleshooting tool designed for production.
>> Get down to code-level detail for bottlenecks, with <2% overhead.
>> Download for free and get started troubleshooting in minutes.
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>> _______________________________________________
>> User-mode-linux-user mailing list
>> User-mode-linux-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
>>
>>
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to