freebsd-dev/usr.sbin/bsdinstall/scripts
Devin Teske ba22fa80f2 Add "GELI Passphrase:" prompt to boot loader.
Summary:
Add "GELI Passphrase:" prompt to boot loader.

A new loader.conf(5) option of geom_eli_passphrase_prompt="YES" will now
allow you to enter your geli(8) root-mount credentials prior to invoking
the kernel.

See check-password.4th(8) for details.

Differential Revision:	https://reviews.freebsd.org/D2105
Reviewed by:	(your name[s] here)
MFC after:	3 days
X-MFC-to:	stable/10
Relnotes:	yes

Test Plan:
Drop a head copy of check-password.4th into /boot and then apply the patch
(only the patch to /boot/check-password.4th is required; no other changes are
required but you do have to have a HEAD copy of check-password.4th to
apply the patch).

NB: The rest of your /boot files can be up to 2 years old but no older.
NB: The test won't work unless your kernel has the following change

https://svnweb.freebsd.org/base?view=revision&revision=273489

Now, put into /boot/loader.conf:

geom_eli_passphrase_prompt="YES"

and reboot.

You should be prompted for a GELI passphrase before the menu (if enabled),
just after loading loader.conf(5).

NB: It doesn't matter if you're using GELI or not. However if you are using
GELI and a sufficiently new enough release (has SVN r273489) and you entered
the proper passphrase to mount your GELI encrypted root device(s), you should
notice that the boot process did not stop (you went from loader all the way to login).

Reviewers: cperciva, allanjude, scottl, kmoore

Subscribers: jkh, imp

Differential Revision: https://reviews.freebsd.org/D2105
2015-04-01 02:01:34 +00:00
..
adduser Make messages about typos appear on the screen instead of in the log file. 2011-08-21 18:49:28 +00:00
auto ZFS support isn't actually experimental anymore, so no need to scare 2014-09-14 02:31:53 +00:00
checksum Mark any distfiles with no checksum entries in the manifest "Skipped" 2011-03-23 13:43:56 +00:00
config Add ZFS support to the bsdinstall partition editor and sade. 2014-09-13 18:24:54 +00:00
docsinstall Remove a non-required unsafe condition added in the previous commit 2015-03-18 23:47:30 +00:00
entropy Add executable bit to docsinstall [old] and entropy [new] scripts. 2013-10-15 02:07:29 +00:00
hostname Import bsdinstall. This is meant to be (eventually in conjunction with 2011-02-18 14:54:34 +00:00
jail Give a brief message as to what error was encountered to help the user along. 2014-08-07 01:51:01 +00:00
keymap Rewrite the keymap module to display an actual menu of selectable 2013-10-11 20:52:42 +00:00
Makefile NO_MAN= has been deprecated in favor of MAN= for some time, go ahead 2014-04-13 05:21:56 +00:00
mirrorselect Strip the patch level from the release name before trying to fetch the 2014-07-24 17:43:42 +00:00
mount
netconfig Incorporate PR bin/161547 to detect when an interface is wireless. 2013-10-11 21:12:48 +00:00
netconfig_ipv4 A series of changes tested together as a whole: 2013-11-08 09:57:03 +00:00
netconfig_ipv6 A series of changes tested together as a whole: 2013-11-08 09:57:03 +00:00
rootpass Make messages about typos appear on the screen instead of in the log file. 2011-08-21 18:49:28 +00:00
script Fix typo in debug/log statement. 2014-04-14 05:35:01 +00:00
services Add a line to the post-installation configuration dialog to enable the 2014-09-26 11:38:10 +00:00
time
umount
wlanconfig Allow bsdinstall to use WPA-Enterprise networks when installing. This 2014-01-04 17:09:41 +00:00
zfsboot Add "GELI Passphrase:" prompt to boot loader. 2015-04-01 02:01:34 +00:00