mirror of
https://github.com/token2/snapd.git
synced 2026-03-13 11:15:47 -07:00
Add a helper to identify keyslot full errors. Unfortunately there's no smarter way to introspect the errors coming out from snapcore/secboot cryptsetup wrappers our code is based on. Unfortunately there's no reasonable way to identify particular error coming from cryptsetup either, even though the manpage lists different error exit statuses, trying to use an occupied error falls under 'parameters' and has the status 1 which is shared with other errors. Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>