From owner-freebsd-current@FreeBSD.ORG Tue Aug 5 05:15:16 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 304E31065670 for ; Tue, 5 Aug 2008 05:15:16 +0000 (UTC) (envelope-from kozlov@ravenloft.kiev.ua) Received: from istc.kiev.ua (wolf.istc.kiev.ua [193.108.236.1]) by mx1.freebsd.org (Postfix) with ESMTP id DDAA28FC08 for ; Tue, 5 Aug 2008 05:15:15 +0000 (UTC) (envelope-from kozlov@ravenloft.kiev.ua) Received: from [91.123.146.100] (helo=ravenloft.kiev.ua) by istc.kiev.ua with esmtp (Exim 4.52) id 1KQESY-0007Uv-90; Tue, 05 Aug 2008 07:47:48 +0300 Date: Tue, 5 Aug 2008 07:47:42 +0300 From: Alex Kozlov To: Antony Mawer , current@freebsd.org, spam@rm-rf.kiev.ua Message-ID: <20080805044742.GA68586@ravenloft.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Score: 0.0 (/) X-Spam-Report: Content analysis detailz: (0.0 points, 10.0 required) Cc: Subject: Re: termcap under single luser X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Aug 2008 05:15:16 -0000 On Tue, Aug 05, 2008 at 07:56:28AM, Antony Mawer wrote: > Bernd Walter wrote: > > On Mon, Aug 04, 2008 at 09:58:20AM -0300, Carlos A. M. dos Santos wrote: > >> On Mon, Aug 4, 2008 at 1:11 AM, Randy Bush wrote: > >>> if i boot single luser, /rescue/(vi|ed) etc barf because > >>> > >>> lrwxrwxrwx 1 root wheel 23 Oct 11 2007 /etc/termcap@ -> > >>> /usr/share/misc/termcap > >>> > >>> is not mounted. > >>> > >>> should i > >>> > >>> rm /etc/termcap > >>> cp /usr/share/misc/termcap /etc > >>> > >>> post build, or is there something else i am missing? > >>> > >>> randy > >> You can ever resort to ed if you can not mount /usr. It saved my neck > >> several times! > > > > I almost always use ed in single user mode, because I'm using serial > > consoles and I'm too lazy to setup my terminal environment each time. > > But I clearly vote for termcap in /etc. > > It is just a about 200k, while /etc is already almost 2M and /boot > > is much bigger. > > Isn't there a minimalistic termcap file that is used by NanoBSD or > PicoBSD (I forget where I stumbled across it once upon a time...)? Maybe > this is a nice compromise, depending on what 'minimalistic' happens to > omit... cp src/release/picobsd/mfs_tree/etc/termcap /etc/termcap.small TERMCAP=/etc/termcap.small Or if You need only vi: TERMCAP="cons25:cm=\E[%i%d;%dH"; TERM=cons25 -- Adios