]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
gptboot, zfsboot, gptzfsboot: Enable the video and serial consoles early
authorallanjude <allanjude@FreeBSD.org>
Sun, 17 Jun 2018 03:18:56 +0000 (03:18 +0000)
committerallanjude <allanjude@FreeBSD.org>
Sun, 17 Jun 2018 03:18:56 +0000 (03:18 +0000)
commit3c90b5890fa396ca21ede8b7714ce0c5d3d7faa0
tree2e93fcc337b811e408165b978b91be77cdf717f4
parent9ce642a5e27d07769e6779973bb27dec7ae8100f
gptboot, zfsboot, gptzfsboot: Enable the video and serial consoles early

Normally the serial console is not enabled until /boot.config is read and
we know how the serial console should be configured.  Initialize the
consoles early in 'dual' mode (serial & keyboard) with a default serial
rate of 115200. Then serial is re-initialized once the disk is decrypted
and the /boot.config file can be read.

This allows the GELIBoot passphrase to be provided via the serial console.

PR: 221526
Requested by: many
Reviewed by: imp
Sponsored by: Klara Systems
Differential Revision: https://reviews.freebsd.org/D15862
stand/i386/gptboot/gptboot.c
stand/i386/zfsboot/zfsboot.c