diff options
author | Geoff Levand <geoff@infradead.org> | 2018-04-11 11:30:48 -0700 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2018-04-19 10:38:36 +0200 |
commit | 0481e9ed61ef80b3d851bb96b0c70a3d4a112c8b (patch) | |
tree | 9cceb27178f08f880e53f4fb3fa7fe34156f23c4 /purgatory | |
parent | 72c146c2058801b8d2c981c560ae12dcb57f8219 (diff) |
kexec: Add --no-checks option
Add a new option --no-checks to kexec that allows for a fast
reboot by avoiding the purgatory integrity checks. This option is
intended for use by kexec based bootloaders that load a new
image and then immediately transfer control to it.
Signed-off-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'purgatory')
-rw-r--r-- | purgatory/purgatory.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/purgatory/purgatory.c b/purgatory/purgatory.c index 3bbcc09..73930aa 100644 --- a/purgatory/purgatory.c +++ b/purgatory/purgatory.c @@ -8,6 +8,7 @@ struct sha256_region sha256_regions[SHA256_REGIONS] = {}; sha256_digest_t sha256_digest = { }; +int skip_checks = 0; int verify_sha256_digest(void) { @@ -43,7 +44,7 @@ void purgatory(void) { printf("I'm in purgatory\n"); setup_arch(); - if (verify_sha256_digest()) { + if (!skip_checks && verify_sha256_digest()) { for(;;) { /* loop forever */ } |