Skip to content
Snippets Groups Projects
Commit 6b2286ac authored by Denis Pynkin's avatar Denis Pynkin
Browse files

lib: add function check_bootcounter()


Function to validate values from /boot/uboot.cnt

accept 4 arguments:
  magic: bd
  version: 1
  bootcount: any number
  upgrade bit:
    0: not in upgrade
    1: in upgrade

In case if any argument is not defined i.e. passed empty value ""
it is meaning no need to validate that argument

Signed-off-by: default avatarDenis Pynkin <denis.pynkin@collabora.com>
parent b5f1aaa6
No related branches found
No related tags found
3 merge requests!24Apply all changes from v2021pre,!23Backport refactoring ostree upgrade tests 2022dev1 -> v2021pre,!22Refactoring ostree upgrade tests
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment