mirror of
https://github.com/token2/snapd.git
synced 2026-03-13 11:15:47 -07:00
The randutil.RandomKernelUUID() used to generate a panic on failure. The process of consolidating common code used by Pebble and Snapd (e.g. randutil) highlighted the fact that an error return, as relied on by Pebble, is a more flexibie approach and allows application code to decide the severity, instead of the library function. - Make secboot unlock code to deal with an error that can now be returned from the UUID generator. - Add unit tests to cover the new error paths in the code. Signed-off-by: Fred Lotter <fred.lotter@canonical.com>