On Sun, Mar 13, 2022 at 05:54:03PM -0700, Jacqueline Jolicoeur wrote: > Hi, > > On Mar 12 16:39, i...@tutanota.com 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. > > I encountered a problem just like you did. It would be nice to have vi > included in the install media yet the size makes it unrealistic. > > > 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. > > This made me realize how important taking a few hours to learn and practice > basic edits with ed(1) was. Now is a great time to learn it.
Unless the install is badly broken, fsck on /usr, /var, mount them, set TERM to something decent, and you got vi.