Re: [PATCH] 2.5.68-bk1 crash in devfs_remove() for defpts files

From: Grzegorz Jaskiewicz (gj@pointblue.com.pl)
Date: Mon Apr 21 2003 - 15:44:35 EST


On Mon, 2003-04-21 at 21:35, Pavel Roskin wrote:
> > Oh, I see now. There's a longstanding bug in the handling of
> > TTY_DRIVER_NO_DEVFS that got exposed by this.
> >
> > Please try this patch additionally:
>
> Applied. Now I can log in by ssh and there are no problems with
> pseudoterminals. However, all local terminals are gone:
>
> INIT: Id "1" respawning too fast: disabled for 5 minutes
> INIT: Id "2" respawning too fast: disabled for 5 minutes
> INIT: Id "3" respawning too fast: disabled for 5 minutes
> INIT: Id "5" respawning too fast: disabled for 5 minutes
> INIT: Id "4" respawning too fast: disabled for 5 minutes
> INIT: Id "6" respawning too fast: disabled for 5 minutes
> INIT: Id "S0" respawning too fast: disabled for 5 minutes
> INIT: no more processes left in this runlevel
>
you must mount devpts in /dev/pts
and change inittab :
[snip]
# Note that on most Debian systems tty7 is used by the X Window System,
# so if you want to add more getty's go ahead but skip tty7 if you run
X.
#
1:2345:respawn:/sbin/getty 38400 /dev/vc/1
2:23:respawn:/sbin/getty 38400 /dev/vc/2
3:23:respawn:/sbin/getty 38400 /dev/vc/3
4:23:respawn:/sbin/getty 38400 /dev/vc/4
5:23:respawn:/sbin/getty 38400 /dev/vc/5
6:23:respawn:/sbin/getty 38400 /dev/vc/6
[snip]

to use devfs only, it is funny but fe to open /dev/sound/* you need to
be root, or chmod it manually before use. (i've got seperate
/etc/init.d/chdevfsmod file to do that)

> The only entry under /dev/vc is /dev/vc/0. /dev/tts is missing.

-- 
Grzegorz Jaskiewicz <gj@pointblue.com.pl>
K4 labs

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Apr 23 2003 - 22:00:30 EST