Commit 5468c26c authored by David Zeuthen's avatar David Zeuthen
Browse files

avbctl: Require --force option if in LOCKED mode.

Bail and print a nice little warning if the user tries to rewrite
vbmeta if the device is locked. This is to help protect the user from
potentially bricking his device.

 device:/ # avbctl disable-verity
 Manipulating vbmeta on a LOCKED device will likely cause the
 device to fail booting with little chance of recovery.

 If you really want to do this, use the --force option.

 ONLY DO THIS IF YOU KNOW WHAT YOU ARE DOING.

 77|device:/ # avbctl --force disable-verity
 Successfully disabled verity on slot with suffix _a. Reboot the device for changes to take effect.
 device:/ #

Bug: 64482211
Test: Manually tested in both LOCKED and UNLOCKED mode.
Change-Id: Ica7b7df947ccb5fe515a3dae8c81eedfd594ca38
parent 047ecf7d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment