From 13945230d36282a0dd2ad7c240f2b88ffc506205 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 9 Oct 2019 18:58:20 -0700 Subject: lpmake: Don't assume a device is retrofit if it has one block device for super. Bug: 141936600 Test: lpmake with one retrofit partition Change-Id: I3644ce3af68d6f7d037626938615cc5b9a786e15 --- partition_tools/lpmake.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/partition_tools/lpmake.cc b/partition_tools/lpmake.cc index 42814772..32be8dc5 100644 --- a/partition_tools/lpmake.cc +++ b/partition_tools/lpmake.cc @@ -358,7 +358,7 @@ int main(int argc, char* argv[]) { std::unique_ptr metadata = builder->Export(); if (!images.empty() || force_full_image) { - if (block_devices.size() == 1) { + if (block_devices.size() == 1 && super_name == "super") { if (!WriteToImageFile(output_path.c_str(), *metadata.get(), block_size, images, output_sparse)) { return EX_CANTCREAT; -- cgit v1.2.3