]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Unbreak the installer on head/:
authorGlen Barber <gjb@FreeBSD.org>
Mon, 11 Nov 2013 01:42:59 +0000 (01:42 +0000)
committerGlen Barber <gjb@FreeBSD.org>
Mon, 11 Nov 2013 01:42:59 +0000 (01:42 +0000)
commit6e12e3646d2424fd1957935c0d17d2c11d49d3ad
tree150bfebe9d9f7ed7fcfed101ccdf3126b868eb02
parent18b44c2d73b831494ebecdc1939e1f005f1904e6
Unbreak the installer on head/:

  When bsdinstall(8) sources the bsdconfig(8) common.subr file,
  PKG_ABI is set by calling 'pkg -vv' and searching for the ABI
  pkg(8) will use.

  When pkg(8) is run for the first time, the bootstrap process
  is run, which prompts for 'y/N' input from stdin if running with
  TERM set.

  Since TERM is set and it is the first time pkg(8) is run, which
  happens automatically, bsdinstall(8) hangs waiting for user input
  which is never displayed since a specific line is expected by
  awk(1), and stdin is expected by pkg(8).

  Set ASSUME_ALWAYS_YES=1, which will cause pkg(8) to assume the
  '-y' flag is also used for the bootstrap process, allowing
  bsdinstall(8) to proceed to the keymap lookup, otherwise
  bsdinstall(8) appears to hang after selecting 'Install' from the
  menu on first boot from CDROM.
usr.sbin/bsdconfig/share/common.subr