ANDROID: dm: android-verity: mount as linear target if eng build
authorBadhri Jagan Sridharan <Badhri@google.com>
Sat, 18 Jun 2016 01:54:35 +0000 (18:54 -0700)
committerAmit Pundir <amit.pundir@linaro.org>
Mon, 18 Dec 2017 15:41:22 +0000 (21:11 +0530)
commitc977df776c395bf7fbb6614f526828edbee92a3d
tree9ead76cf1c004442cbad455af2e3e48fb6bc4780
parent19263573b3eceebd930f823ef8dd4c229a47482f
ANDROID: dm: android-verity: mount as linear target if eng build

eng builds dont have verity enabled i.e it does even
have verity metadata appended to the parition. Therefore
add rootdev as linear device and map the entire partition
if build variant is "eng".

(Cherry-picked based on
https://partner-android-review.git.corp.google.com/#/c/618690/)

BUG: 29276559
Signed-off-by: Badhri Jagan Sridharan <Badhri@google.com>
Change-Id: I8f5c2289b842b820ca04f5773525e5449bb3f355
drivers/md/dm-android-verity.c
drivers/md/dm-android-verity.h