Subject: Re: Single user mode: ed(1) or bust
To: Eric d'Alibut <firstname.lastname@example.org>
From: None <email@example.com>
Date: 05/05/2007 02:20:49
On Fri, May 04, 2007 at 07:25:03PM -0400, Eric d'Alibut wrote:
> On 5/4/07, firstname.lastname@example.org <email@example.com> wrote:
> >For the use of vi/ex(1), you need simply to export a decent value of
> >TERM (for example vt220). The curses lib was extracted from vi at the
> >beginning, so it is no surprise that vi(1) needs a decent value for
> I can't find a value of TERM that is accepted in single user mode with
> just / mounted.
> Does that resonate with youse guys?
Well, rescue is statically linked, but libtermcap is trying to
read "/usr/share/misc/termcap" which is not accessible if /usr is on
a separate filesystem? It seems you have found something :)
Reading the sources for libtermcap (libterm), setting TERMCAP to a
pathname of an alternate termcap db, or setting TERMCAP to be an
entry (for example to a minimal vt100) could do the trick (minimal
termcap db are created for floppies and distrib).
If people more knowlegeable about the /rescue stuff could confirm,
and taking into account the size, whether setting TERMCAP to a vt100 in
sh(1) [rescue version] or providing a minimal termcap db in /rescue
(changing the default path in libtermcap) could be considered.
Thierry Laronde (Alceste) <tlaronde +AT+ polynum +dot+ com>
Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C