Laurent Bercot wrote:
    kernel (hd0,0)/vmlinuz-... root=/dev/sda2 init=/root/a.out
  Depending on your kernel, it may be a little more complicated than that.
If your kernel has been compiled with an initramfs, the first userland
process won't be /root/a.out, but the /init file in the initramfs.
The kernel is never compiled with an initramfs. The kernel is often compiled to use an initramfs, if the boot loader supplies one. If you don't load an initramfs (with the command initrd in grub), the kernel won't use one. The other question is whether the kernel has all necessary drivers compiled in to mount the root filesystem. But if the kernel mounts the root partition and starts the program when you don't pass an initrd parameter, you can be sure that this /root/a.out was started directly by the kernel.
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to