Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. diff --git a/tools/releasetools/common.py b/tools/releasetools/common.py
  2. index f7ab11cd8..bd8aabae7 100644
  3. --- a/tools/releasetools/common.py
  4. +++ b/tools/releasetools/common.py
  5. @@ -581,9 +581,7 @@ def GetBootableImage(name, prebuilt_name, unpack_dir, tree_subdir,
  6. # With system_root_image == "true", we don't pack ramdisk into the boot image.
  7. # Unless "recovery_as_boot" is specified, in which case we carry the ramdisk
  8. # for recovery.
  9. - has_ramdisk = (info_dict.get("system_root_image") != "true" or
  10. - prebuilt_name != "boot.img" or
  11. - info_dict.get("recovery_as_boot") == "true")
  12. + has_ramdisk = true
  13.  
  14. fs_config = "META/" + tree_subdir.lower() + "_filesystem_config.txt"
  15. data = _BuildBootableImage(os.path.join(unpack_dir, tree_subdir),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement