geli(8): Add missing commands in the EXAMPLES section

- Add a missing 'geli attach' command
- Fix the passphrase prompt for a 'geli attach' command

Reported by:	Fabian Keil <freebsd-listen at fabiankeil dot de>
Reviewed by:	bcr (mentor)
Approved by:	bcr (mentor)
Differential Revision:	https://reviews.freebsd.org/D25761
This commit is contained in:
Gordon Bergling 2020-07-22 13:00:56 +00:00
parent 31ad4050fe
commit 9af25ea3bb

View File

@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
.Dd July 20, 2020
.Dd July 22, 2020
.Dt GELI 8
.Os
.Sh NAME
@ -1130,6 +1130,8 @@ is requested when geli init is called.
# geli init -K /root/private0.key -s 4096 /dev/md0
Enter new passphrase:
Reenter new passphrase:
# geli attach -k /root/private0.key /dev/md0
Enter passphrase:
# dd if=/dev/random of=/dev/md0.eli bs=1m
.Ed
.Pp
@ -1150,7 +1152,7 @@ It is recommended to do this procedure after the boot, because otherwise
the boot process would be waiting for the passphrase input.
.Bd -literal -offset indent
# geli attach -k /root/private0.key /dev/md0
Enter new passphrase:
Enter passphrase:
# mount /dev/md0.eli /private
.Ed
.Sh ENCRYPTION MODES