lcp / mokutil

The utility to manipulate machine owner keys
GNU General Public License v3.0
70 stars 38 forks source link

Add a way for mokutil to configure a timeout for MokManager's prompt #14

Closed cyphermox closed 6 years ago

cyphermox commented 6 years ago

Let users configure timeout from the command-line using

mokutil --set-timeout 90 (for example)

To a number in seconds, from 0 to 32767. A timeout of 10 seconds is still default, so 10 is a no-op.

Users can also disable the timeout using: 'mokutil --set-timeout -1', in which case MokManager will not present a prompt with a timeout, and instead start immediately in the menu and wait for user input indefinitely.

This goes with https://github.com/rhboot/shim/pull/139 for the changes to MokManager.

Signed-off-by: Mathieu Trudel-Lapierre mathieu.trudel-lapierre@canonical.com

lcp commented 6 years ago

Looks good to me.