From oleg@apholina.marka.net.ua Wed Oct 27 09:37:40 1999 Return-Path: Received: from blazer.marka.net.ua (blazer.marka.net.ua [195.248.171.81]) by hub.freebsd.org (Postfix) with ESMTP id 27B5815532 for ; Wed, 27 Oct 1999 09:37:28 -0700 (PDT) (envelope-from oleg@apholina.marka.net.ua) Received: (from uucp@localhost) by blazer.marka.net.ua (8.9.3/8.9.3) with UUCP id TAA10382 for FreeBSD-gnats-submit@freebsd.org; Wed, 27 Oct 1999 19:37:25 +0300 (EEST) Received: from oleg.Apholina.marka.net.ua (oleg.apholina.com [192.168.100.5]) by apholina.marka.net.ua (8.9.3/8.9.3) with ESMTP id TAA30105 for ; Wed, 27 Oct 1999 19:35:37 +0300 Received: (from oleg@localhost) by oleg.Apholina.marka.net.ua (8.9.3/8.9.3) id TAA00721; Wed, 27 Oct 1999 19:35:05 +0300 (EEST) (envelope-from oleg) Message-Id: <199910271635.TAA00721@oleg.Apholina.marka.net.ua> Date: Wed, 27 Oct 1999 19:35:05 +0300 (EEST) From: oleg@apholina.marka.net.ua Reply-To: oleg@reis.zp.ua To: FreeBSD-gnats-submit@freebsd.org Subject: Incorrect behaviour allscreens section in rc.i386 under certain circumstantions X-Send-Pr-Version: 3.2 >Number: 14558 >Category: i386 >Synopsis: Incorrect behaviour allscreens section in rc.i386 under certain circumstantions >Confidential: no >Severity: non-critical >Priority: low >Responsible: sheldonh >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 27 09:40:00 PDT 1999 >Closed-Date: Sun Oct 31 23:48:47 PST 1999 >Last-Modified: Sun Oct 31 23:49:43 PST 1999 >Originator: Oleg V. Naumann >Release: FreeBSD 3.3-STABLE i386 >Organization: Apholina >Environment: oleg@oleg~>uname -a FreeBSD oleg.Apholina.marka.net.ua 3.3-STABLE FreeBSD 3.3-STABLE #131: Wed Oct 27 10:50:01 EEST 1999 root@oleg.Apholina.marka.net.ua:/usr/src/sys/compile/OLEG i386 >Description: allscreens in rc.i386 have incorrect behaviour, if: 1. value for MAXCONS options in kernel configuration file lower than number of /dev/ttyv* files 2. allscreens in /etc/rc.conf are enabled: allscreens_flags="-m on", for example On such circumstantions you will get .... rc.i386 configuring syscons: keymap keychange cursor screen_map font8x16 blank_time moused allscreens cannot open /dev/ttyv7: no such device or address .... after reboot or 3. enabled ttyv*-s number in /etc/ttys lower than MAXCONS or /dev/ttyv* files number >How-To-Repeat: Set 'allscreens_flags="-m on"' in /etc/rc.conf Set MAXCONS=6 in /usr/src/sys/i386/conf/YOUR_KERNEL config YOUR_KERNEL cd ../../compile/YOUR_KERNEL make depend make all make install fastboot ... rc.i386 configuring syscons: keymap keychange cursor screen_map font8x16 blank_time moused allscreens cannot open /dev/ttyv7: no such device or address ..... >Fix: May be, this patch not solve all problems in this situation? I dont now how to retrieve avalaible virtual consoles number from kernel for correct patch :-( # diff -crN rc.i386 rc.i386.original *** rc.i386 Wed Oct 27 15:28:11 1999 --- rc.i386.original Thu Sep 16 14:40:10 1999 *************** *** 114,122 **** # set this mode for all virtual screens if [ "X${allscreens_flags}" != X"" ] ; then echo -n ' allscreens' ! for ttyv in `grep ^ttyv /etc/ttys | cut -f 1` do ! vidcontrol Release-Note: >Audit-Trail: From: Sheldon Hearn To: oleg@reis.zp.ua Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: i386/14558: Incorrect behaviour allscreens section in rc.i386 under certain circumstantions Date: Thu, 28 Oct 1999 12:10:02 +0200 On Wed, 27 Oct 1999 19:35:05 +0300, oleg@apholina.marka.net.ua wrote: > ! for ttyv in `grep ^ttyv /etc/ttys | cut -f 1` > do > ! vidcontrol done > fi > echo '.' > --- 114,122 ---- > # set this mode for all virtual screens > if [ "X${allscreens_flags}" != X"" ] ; then > echo -n ' allscreens' > ! for ttyv in /dev/ttyv* > do > ! vidcontrol <$ttyv ${allscreens_flags} > done Surely this just hides the problem from the administrator? To have ttys enabled in /etc/ttys but not configured in /dev is an error that should be addressed, surely? Certainly, rc.i386 doesn't die because of this, so I don't see the benefit of the proposed change. Ciao, Sheldon. From: oleg@Apholina.marka.net.ua To: Sheldon Hearn Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: i386/14558: Incorrect behaviour allscreens section in rc.i38 Date: Thu, 28 Oct 1999 18:52:02 +0300 (EEST) On 28-Oct-99 Sheldon Hearn wrote: > > > On Wed, 27 Oct 1999 19:35:05 +0300, oleg@apholina.marka.net.ua wrote: > >> ! for ttyv in `grep ^ttyv /etc/ttys | cut -f 1` >> do >> ! vidcontrol > done >> fi >> echo '.' >> --- 114,122 ---- >> # set this mode for all virtual screens >> if [ "X${allscreens_flags}" != X"" ] ; then >> echo -n ' allscreens' >> ! for ttyv in /dev/ttyv* >> do >> ! vidcontrol <$ttyv ${allscreens_flags} >> done > > Surely this just hides the problem from the administrator? To have ttys > enabled in /etc/ttys but not configured in /dev is an error that should > be addressed, surely? > > Certainly, rc.i386 doesn't die because of this, so I don't see the > benefit of the proposed change. Thank you for explanation your point of view. Maybe this is right opinion. I think you can close this PR#. > > Ciao, > Sheldon. With best wishes Oleg V. Naumann ---------------------------------- E-Mail: oleg@Apholina.marka.net.ua Date: 28-Oct-99 Time: 18:38:35 This message was sent by XFMail ---------------------------------- Responsible-Changed-From-To: freebsd-bugs->sheldonh Responsible-Changed-By: sheldonh Responsible-Changed-When: Fri Oct 29 01:35:14 PDT 1999 Responsible-Changed-Why: I'm assigning this to myself as a reminder to close it if nobody counters my argument any time soon. State-Changed-From-To: open->closed State-Changed-By: sheldonh State-Changed-When: Sun Oct 31 23:48:47 PST 1999 State-Changed-Why: Both the originator and I feel that the error messages generated by the current rc.i386 are useful. >Unformatted: