Merge "make_f2fs: use -g android by default"
am: 4cd38430d7
Change-Id: Id85e7c286e88c4b543df91df95a19d69fb66835a
diff --git a/roots.cpp b/roots.cpp
index dc34784..4fcd6fe 100644
--- a/roots.cpp
+++ b/roots.cpp
@@ -344,12 +344,7 @@
// clang-format off
std::vector<std::string> make_f2fs_cmd = {
cmd,
- "-d1",
- "-f",
- "-O", "encrypt",
- "-O", "quota",
- "-O", "verity",
- "-w", std::to_string(kSectorSize),
+ "-g", "android",
v->blk_device,
};
// clang-format on
diff --git a/updater/install.cpp b/updater/install.cpp
index deb7a2b..ccde409 100644
--- a/updater/install.cpp
+++ b/updater/install.cpp
@@ -484,11 +484,7 @@
const char* f2fs_path = "/sbin/mkfs.f2fs";
const char* f2fs_argv[] = { "mkfs.f2fs",
- "-d1",
- "-f",
- "-O", "encrypt",
- "-O", "quota",
- "-O", "verity",
+ "-g", "android",
"-w", "512",
location.c_str(),
(size < 512) ? nullptr : num_sectors.c_str(),