/* * The kernel needs an executable to invoke. Something that allows * user-input might be handy. We try a "command line arg", init, then * a shell. Failing that, we print a sympathetic post-mortem. * The .bi/.sbi stuff is for the /.lfsstd . */ if (execute_command) execve(execute_command,argv_init,envp_init); execve("/sbin/init",argv_init,envp_init); execve("/.sbi/init",argv_init,envp_init); execve("/etc/init",argv_init,envp_init); execve("/bin/init",argv_init,envp_init); execve("/bin/sh",argv_init,envp_init); execve("/.bi/bash",argv_init,envp_init); printk("You almost booted. Starting e.g. init is the last step, \n"); printk("from the kernel's point of view.\n"); panic("Can't execute init or a shell. rdev/rootflags/Makefile may pertain."); } /* and then Barbra Streisand sings... Kernels... kernels that need executables... are the luckiest kernels... in the world ..... */