From owner-freebsd-arm@freebsd.org Thu Mar 7 19:14:01 2019 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 097221511AD4 for ; Thu, 7 Mar 2019 19:14:01 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0EA596E37B; Thu, 7 Mar 2019 19:13:49 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (localhost [127.0.0.1]) by gndrsh.dnsmgr.net (8.13.3/8.13.3) with ESMTP id x27JDc6x091957; Thu, 7 Mar 2019 11:13:38 -0800 (PST) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: (from freebsd-rwg@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id x27JDbZR091956; Thu, 7 Mar 2019 11:13:37 -0800 (PST) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201903071913.x27JDbZR091956@ gndrsh.dnsmgr.net> Subject: Re: Editing on the serial console In-Reply-To: To: Warner Losh Date: Thu, 7 Mar 2019 11:13:37 -0800 (PST) CC: bob prohaska , freebsd-arm@freebsd.org, Konstantin Belousov X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 0EA596E37B X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [4.38 / 15.00]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; MX_GOOD(-0.01)[gndrsh.dnsmgr.net,gndrsh.dnsmgr.net]; INVALID_MSGID(1.70)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:13868, ipnet:69.59.192.0/19, country:US]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_SPAM_SHORT(0.86)[0.859,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[dnsmgr.net]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.50)[0.505,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.42)[0.422,0]; R_SPF_NA(0.00)[]; IP_SCORE(0.00)[ip: (0.06), ipnet: 69.59.192.0/19(0.03), asn: 13868(0.01), country: US(-0.07)] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Mar 2019 19:14:01 -0000 > On Thu, Mar 7, 2019, 8:42 AM bob prohaska wrote: > > > On Thu, Mar 07, 2019 at 12:10:11PM +0200, Konstantin Belousov wrote: > > > On Thu, Mar 07, 2019 at 05:08:07PM +1030, O'Connor, Daniel wrote: > > > > > > > > > On 7 Mar 2019, at 14:24, bob prohaska wrote: > > > > > > > > > > Editing files in single-user mode on the serial console > > > > > is non-trivial. Both vi and ee have problems displaying > > > > > the file, ed doesn't really try so it works but isn't > > > > > much fun. Is there a better option? When the machine > > > > > boots single-user it reports "can't read /etc/termcap", > > > > > is something misconfigured? > > > > > > > > /etc/termcap is a symlink to /usr/share/misc/termcap - if you mount > > /usr (read only is fine) then it should work. > > > > > > > > ie since you are in single user mode only / has been mounted. > > > > > > > > If / and /usr are the same FS them something else is wrong :) > > > > > > There is /etc/termcap.small, and I remember our libcurses uses TERMCAP > > > env variable to point to the termcap file. > > > > It never occurred to me that /etc/termcap might actually live elsewhere. > > That's almost certainly the problem. Would there be any drawback to > > simply moving the file back to /etc ? > > > > On your system? None at all. I'd copy it, though. In the base system it is > where it is so new entries get reflected right after install world w/o > needing to run mergemaster. It is where it is because it is not /etc/ system configuration files and scripts and is /usr/share/ architecture-independent files misc/ miscellaneous system-wide ASCII text files The /etc/termcap link is for backwards compatibility. > Warner > Thanks to everybody, > > bob prohaska -- Rod Grimes rgrimes@freebsd.org