Commit f6fd7366 authored by xunchang's avatar xunchang Committed by Tianjie Xu
Browse files

Set the block device to be writable before writing verity data

The block device is set to be writable when the delta performer opens
the partition to perfrom writes. But if the update interrupts and the
device reboots during the verity data calculation, update engine will
consider the write actions done on resumes and skip setting the writable
flag. As a result, the resumed update will fail to write the hashtree
with EPERM.

A possible fix is to explicltly set the flag when the FilesystemVerifierAction
wants to write verity data.

Bug: 131232680
Test: Interrupt the update during verity writing, reboot and check the
update resumes correctly

Change-Id: I1007414139e4ae5be3fc60ec73b18264d4baa60e
parent 23ba59e6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment