On 3/12/22 08:39, [email protected] wrote: > I know I am not going to get any points for this, but I had to fix a broken > OpenBSD box today that could not boot and I didn't have any network for a > couple of hours, which made me stuck with ed from the boot media. > > So I did "man ed", which of course didn't work as there are no man pages on > the install media. > > I know how to use vi, but ed just draws the line. We're not dealing with > printer output any longer. > > Could we please get vi into base? Even the most basic version would do. > > I spend hours wasting time, banging my head into the wall. Until I finally > got network up on another machine and figured out a way to mount another > OpenBSD disk in order to get access to vi in order to edit the files on the > broken box. > > Sigh! > The issue should repairable from single-user mode (without a need for install media):
# Once you're at a single-user prompt (just hit Enter at the "Enter pathname of shell or RETURN for sh:" prompt), do the following: # Mount the root filesystem as read-write, then mount the /var and /usr filesystems (this will allow you to run vi or any other editor of your choice) mount -uw / mount /var mount /usr export TERM=vt220 # Once those are mounted, edit /etc/fstab.

