Skip to content

Commit

Permalink
[DO NOT MERGE] verity: force a reboot that clears verity red
Browse files Browse the repository at this point in the history
* This patch should never be used long term. It will cause the kernel
  to just reboot over and over again, but it clears the verity red for
  you, so hold the volume button to boot back into the bootloader after
  letting this reboot itself once, and flash something else to enjoy
  no more red verity message on boot.

Change-Id: Ib1abb1122e6cfb900744ebf24d25cee15b7802f9
  • Loading branch information
invisiblek committed Nov 27, 2017
1 parent 7c61f5c commit e1f6239
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/md/dm-android-verity.c
Expand Up @@ -678,6 +678,8 @@ static int android_verity_ctr(struct dm_target *ti, unsigned argc, char **argv)
unsigned long long tmpll;
u64 uninitialized_var(device_size);

kernel_restart("dm-verity enforcing");

if (argc == 1) {
/* Use the default keyid */
if (default_verity_key_id())
Expand Down

0 comments on commit e1f6239

Please sign in to comment.