[BusyBox] init pb. (sh: can't access tty; job control turned off)
Paul TOTH
tothpaul at free.fr
Fri Dec 20 06:43:04 UTC 2002
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)
initialpgrp = tcgetpgrp(2);
if (initialpgrp < 0) {
out2str("sh: can't access tty; job control turned off\n");
mflag = 0;
return;
}
where does this come from ?!
Paul TOTH <tothpaul at free.fr>
http://tothpaul.free.fr
----- Original Message -----
From: "Paul TOTH" <tothpaul at free.fr>
To: "Vladimir N. Oleynik" <dzo at simtreas.ru>
Cc: <busybox at busybox.net>
Sent: Friday, December 20, 2002 9:18 AM
Subject: Re: [BusyBox] init pb.
> Hi,
>
> /* NOTE that if BB_FEATURE_USE_INITTAB is NOT defined,
> * then parse_inittab() simply adds in some default
> * actions(i.e., runs INIT_SCRIPT and then starts a pair
> * of "askfirst" shells). If BB_FEATURE_USE_INITTAB
> * _is_ defined, but /etc/inittab is missing, this
> * results in the same set of default behaviors.
> * */
>
> So I don't really need a inittab...isn't it ?
>
> And if I need one, what should I put in it to just get a shell ?
>
> I've try with a "/etc/init.d/rcS" script (chmod 777), it is not executed
:(
>
> I only can get all this work through a chroot from an existing Linux fs, I
> want to setup a minimal loopback device with (for now) only busybox.
>
> something like this
> http://www.linux4.be/~jroark/howto/ramdisk.html
>
> Thanks
>
> Paul TOTH <tothpaul at free.fr>
> http://tothpaul.free.fr
> ----- Original Message -----
> From: "Vladimir N. Oleynik" <dzo at simtreas.ru>
> To: "Paul TOTH" <tothpaul at free.fr>
> Cc: <busybox at busybox.net>
> Sent: Thursday, December 19, 2002 5:52 PM
> Subject: Re: [BusyBox] init pb.
>
>
> > Paul,
> >
> > > I really like busybox ! but I have a little pb with busybox v0.60.5 :(
> > >
> > > with /sbin/init -> /bin/busybox, I fall on a
> > > 'No more tasks for init -- sleeping for ever'
> >
> > You don`t configuring inittab?
> >
> >
> > --w
> > vodz
> > _______________________________________________
> > busybox mailing list
> > busybox at busybox.net
> > http://busybox.net/mailman/listinfo/busybox
> >
>
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://busybox.net/mailman/listinfo/busybox
>
More information about the busybox
mailing list