summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2018-04-11 05:59:58 +0200
committerAndroid (Google) Code Review <android-gerrit@google.com>2018-04-11 05:59:58 +0200
commit257dd337da28ccd2f930afe3b55e76873f73c15f (patch)
treed793d8f8bb0f209409bee374c1924acbc52c9892
parentUse the non-LTO, non-PGO version of libhwbinder (diff)
parentrecovery: enable fsverity feature bit (diff)
downloadandroid_bootable_recovery-257dd337da28ccd2f930afe3b55e76873f73c15f.tar
android_bootable_recovery-257dd337da28ccd2f930afe3b55e76873f73c15f.tar.gz
android_bootable_recovery-257dd337da28ccd2f930afe3b55e76873f73c15f.tar.bz2
android_bootable_recovery-257dd337da28ccd2f930afe3b55e76873f73c15f.tar.lz
android_bootable_recovery-257dd337da28ccd2f930afe3b55e76873f73c15f.tar.xz
android_bootable_recovery-257dd337da28ccd2f930afe3b55e76873f73c15f.tar.zst
android_bootable_recovery-257dd337da28ccd2f930afe3b55e76873f73c15f.zip
Diffstat (limited to '')
-rw-r--r--roots.cpp1
-rw-r--r--updater/install.cpp10
2 files changed, 5 insertions, 6 deletions
diff --git a/roots.cpp b/roots.cpp
index 8907bbd9b..184e7992b 100644
--- a/roots.cpp
+++ b/roots.cpp
@@ -333,6 +333,7 @@ int format_volume(const char* volume, const char* directory) {
"-f",
"-O", "encrypt",
"-O", "quota",
+ "-O", "verity",
"-w", std::to_string(kSectorSize),
v->blk_device,
};
diff --git a/updater/install.cpp b/updater/install.cpp
index 6732ab897..9be7645f3 100644
--- a/updater/install.cpp
+++ b/updater/install.cpp
@@ -544,12 +544,10 @@ Value* FormatFn(const char* name, State* state, const std::vector<std::unique_pt
const char* f2fs_argv[] = { "mkfs.f2fs",
"-d1",
"-f",
- "-O",
- "encrypt",
- "-O",
- "quota",
- "-w",
- "512",
+ "-O", "encrypt",
+ "-O", "quota",
+ "-O", "verity",
+ "-w", "512",
location.c_str(),
(size < 512) ? nullptr : num_sectors.c_str(),
nullptr };