From 23ebb71b27e1a71792d1e3240302dd96adc967d9 Mon Sep 17 00:00:00 2001 From: lambdadroid Date: Sat, 5 Oct 2019 14:48:11 +0200 Subject: [PATCH] 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. --- pmb/install/_install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmb/install/_install.py b/pmb/install/_install.py index 83624718..107be936 100644 --- a/pmb/install/_install.py +++ b/pmb/install/_install.py @@ -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],