[clug] Booting without a bootloader & alternatives to /init

Daniel Pittman daniel at rimspace.net
Thu May 21 08:49:39 GMT 2009


Jeremy Kerr <jk at ozlabs.org> writes:

>> > If you're booting with an initrd, the kernel will try to run
>> > /linuxrc if it can. If you're using initramfs, it will run /init.
>>
>> No, it won't.  Linux will run exactly the same set of things
>> regardless of the root filesystem being a physical disk or a ramfs,
>> and regardless of how it is populated.
>
> init/main.c says otherwise. From my reading:
>
> execute_command = "/init" (overridable with init=)

I don't see where this is set, in 2.6.29, but otherwise...

> ramdisk_execute_command = "/init" (overridable with rdinit=)

...I standard corrected.  It looks like that has been the case with a
ramdisk since at least 2.6.11.

Thank you for the cogent explanation, also.

Regards,
        Daniel


More information about the linux mailing list