Usplash and password request (encrypted root/swap)
Matthew Garrett
mjg59 at srcf.ucam.org
Sat Dec 31 13:09:40 GMT 2005
On Sat, Dec 31, 2005 at 09:55:19AM +0200, Ilkka Tuohela wrote:
> - Write a small program to ask for the passphrase in usplash-compatible
> framebuffer dialog
Really, it wants to be integrated into usplash - having two applications
trying to update the framebuffer simultaneously sounds like trouble...
> So, my questions are (lazy, could look at usplash/bogl sources...):
> - Does usplash/bogl already support this? There is a note about it, but
> I did not find any notice that it were implemented
Text input support /should/ be supported by bogl, but you'll need to
grub through the source to find out how (there's no documentation).
> - If support exists, could you point me to some documents how to do this
> properly? Guess I'll have to write my own little framebuffer app to do
> it? Or should we have some type of generic 'ask question' usplash
> command, which can just be called from scripts without no compiled
> code? Like,
Yeah, easiest way would be to do something like:
usplash_write PASSWORD "Enter passphrase for $rootfs:"
passphrase=`usplash_read`
and have usplash_read open the fifo for reading in blocking mode. Then
you just ("just") need to add a password dialog to usplash, and when the
user hits enter send the text down the fifo.
--
Matthew Garrett | mjg59 at srcf.ucam.org
More information about the ubuntu-devel
mailing list