[BusyBox] init pb. (sh: can't access tty; job control turned off)
Vladimir N. Oleynik
dzo at simtreas.ru
Fri Dec 20 09:25:05 UTC 2002
Paul,
> I've changed my linuxrc,
>
> losetup("/dev/loop7","/dos/linux/busybox.img"); // (my function)
> mount("/dev/loop7","/root","ext2",0,0);
> chroot("/root");
> chdir("/");
> execlp("/bin/sh","/sbin/sh",0);
>
> now I have a shell but I still have this error (ash.c)
Please check:
...
chdir("/");
pid = fork();
if(pid<0) {
Hmm, bla bla
}
if(pid == 0) {
setsid();
close(2); close(1); close(0);
open("/dev/tty1", O_RDWR);
dup(0);
dup(0);
execlp(...);
}
sleep(1);
exit(0); // ?? Hmm. May be
--w
vodz
More information about the busybox
mailing list