-----Ursprüngliche Nachricht----- Von: Johannes Stezenbach [mailto:[email protected]] Gesendet: Donnerstag, 16. August 2012 16:45 An: Priebe, Sebastian Cc: Denys Vlasenko; [email protected] Betreff: Re: getty: setsid: Operation not permitted on busybox v1.20.2
On Thu, Aug 16, 2012 at 02:22:04PM +0000, Priebe, Sebastian wrote: > -----Ursprüngliche Nachricht----- > Von: Johannes Stezenbach [mailto:[email protected]] > Gesendet: Donnerstag, 16. August 2012 15:39 > >On Thu, Aug 16, 2012 at 03:33:25PM +0200, Denys Vlasenko wrote: > >> On Thu, Aug 16, 2012 at 8:01 AM, Priebe, Sebastian > >> > > >> > Inittab: > >> > ::shutdown:/bin/umount -a -r > >> > ::restart:/sbin/init > >> > ::respawn:/bin/cttyhack /bin/sh > >> > ::sysinit:/etc/init.d/rcS > >> > ::respawn:/sbin/getty tty0 > >> > >> I am surprised that parent PID is 1092. > >> When you run getty from init, parent PID should be 1. > >> Did you run getty from init for this test? > >> It looks like you ran getty from a shell. > > Yes, I ran the test from a shell. > If I boot my system with the inittab above, getty is started again and > again... > So I ran the test from a shell. > >> > >Besides the ppid issue, does the cttyhack screw things up for getty? > > I don't know much about the cttyhack... > I didn't create that inittab. But I have to change it, to provide a login > shell. > In the past there was only root on that system and no login. > >Well, cttyhack is a hack that is sometimes useful if one can't use getty. >Since you don't specifiy a device it runs on /dev/console and might conflict >with tty0. So, get rid of it. > >Also normally tty0 is the "current virtual console", you should put the getty >on the real tty device, e.g. tty1 for "first virtual console". >Check Documentation/devices.txt in the Linux source tree. > > >HTH >Johannes Hello, i tried: ::shutdown:/bin/umount -a -r ::restart:/sbin/init ::sysinit:/etc/init.d/rcS ::respawn:/sbin/getty 921600 tty1 But that locks my system after boot. The last message is: starting pid 1092, tty: '': 'getty 921600 tty1'. After that message I see nothing. No prompt, no login, nothing. And my system is locked. Any help appreciated. --------------------------------------------------------------------------- +++ Willkommen bei CADCON auf der ILA Berlin Air Show +++ 11.-16.09.2012, ExpoCenter Airport, Halle 2, Stand 2204 --------------------------------------------------------------------------- CADCON Ingenieurgesellschaft mbH & Co. KG Geschaeftsfuehrer: Robert Bauer, Andreas Gundel Sitz der Gesellschaft: 86368 Gersthofen Registergericht: Amtsgericht Augsburg HRA 14521 _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
