MrUmunhum
Group: Members
Posts: 23
Joined: Feb. 2006 |
|
Posted: Nov. 24 2006,22:28 |
|
Quote (^thehatsrule^ @ Nov. 24 2006,14:29) | So you added busybox as well? What did you change to try to execute it?
How did you try to replace the shell?
I meant like the other forum user's post, where PXE loaded the kernel and the minirt which held the knoppix image (you just need more memory to use this though). |
I put busybox in /static along with links for :
Quote | (cd PXE_FS/static/ ln -s busybox ls ) (cd PXE_FS/static/ ln -s busybox mkdir ) (cd PXE_FS/static/ ln -s busybox sleep ) (cd PXE_FS/static/ ln -s busybox env ) (cd PXE_FS/static/ ln -s busybox pwd ) (cd PXE_FS/static/ ln -s busybox which ) (cd PXE_FS/static/ ln -s busybox ifconfig) (cd PXE_FS/static/ ln -s busybox ifup ) (cd PXE_FS/static/ ln -s busybox ping ) (cd PXE_FS/static/ ln -s busybox route ) (cd PXE_FS/static/ ln -s busybox ln )
|
The mini24 image is the small FS that is used during the boot up process. It is not the run level FS, that is what I am trying to use a NFS mount to connect.
I have been doing some reading about linuxrc. It is call after the kernel gets control. The code looks like this:
Quote | static int do_linuxrc(void * shell) { static char *argv[] = { "linuxrc", NULL, }; extern char * envp_init[];
close(old_fd); close(root_fd); close(0); close(1); close(2); setsid(); (void) open("/dev/console",O_RDWR,0); (void) dup(0); (void) dup(0); return execve(shell, argv, envp_init); }
|
I have tried changing the '#!' line in linuxrc, Copying bash to linuxrc. All fail with a kernel panic.
The bottom line is, it is not a DSL problem, it is a kernel problem. I get the same results using other kernels, including FC5.
So more of RTFMing!
|