]> git.ozlabs.org Git - petitboot/commit
ui/ncurses: Add prompt for LUKS device password
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Thu, 14 Feb 2019 23:40:56 +0000 (10:40 +1100)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 26 Mar 2019 05:46:38 +0000 (16:46 +1100)
commit1ad18bf128c4edfae76adaffd9c7801355f29b91
tree40808aac6ec04d42c62eb445f99c286372a29b06
parentf583f0cf35fc227db5f73ecd04daf7702735b740
ui/ncurses: Add prompt for LUKS device password

Implement device_add() in cui_client_ops and use this interface to
recognise when the server notifies the client of an encrypted device. A
"device header" will be created for this device and added to the menu
with no associated boot options.

The nc-auth prompt is extended to ask for a disk password when the device
header for an encrypted device is selected.
Assuming the password is correct pb-discover will remove the original
device and notify the client about the newly opened device, which will
be reflected in the menu.

Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
ui/common/discover-client.c
ui/common/discover-client.h
ui/ncurses/nc-auth.c
ui/ncurses/nc-auth.h
ui/ncurses/nc-cui.c
ui/ncurses/nc-cui.h