Install "android-tools" instead of "libsparse" for img2simg (!1821)
The sparse image tools (simg2img, img2simg, append2simg) are now part of Alpine's android-tools where they are continously updated. (See https://github.com/nmeum/android-tools/pull/8) Therefore, "libsparse" now conflicts with "android-tools", which causes the fastboot flasher to fail if "libsparse" is already installed. Install "android-tools" instead of "libsparse" before generating a sparse image to avoid this problem.
This commit is contained in:
parent
a6704fa09d
commit
23ebb71b27
|
@ -400,7 +400,7 @@ def install_system_image(args):
|
|||
# Convert rootfs to sparse using img2simg
|
||||
if args.deviceinfo["flash_sparse"] == "true" and not args.split and not args.sdcard:
|
||||
logging.info("(native) make sparse rootfs")
|
||||
pmb.chroot.apk.install(args, ["libsparse"])
|
||||
pmb.chroot.apk.install(args, ["android-tools"])
|
||||
sys_image = args.device + ".img"
|
||||
sys_image_sparse = args.device + "-sparse.img"
|
||||
pmb.chroot.user(args, ["img2simg", sys_image, sys_image_sparse],
|
||||
|
|
Loading…
Reference in New Issue