diff options
author | David Anderson <dvander@google.com> | 2019-10-09 18:58:20 -0700 |
---|---|---|
committer | David Anderson <dvander@google.com> | 2019-10-09 18:59:39 -0700 |
commit | 13945230d36282a0dd2ad7c240f2b88ffc506205 (patch) | |
tree | d77619dc5770f01111c172b3c4c29cb00298e740 | |
parent | 7ea25d629c7c86c1a626337451738c3e844ef7de (diff) | |
download | extras-13945230d36282a0dd2ad7c240f2b88ffc506205.tar.gz |
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
-rw-r--r-- | partition_tools/lpmake.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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<LpMetadata> 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; |