Fix detection of qcdt boot images (!1826)
mkbootimg from osm0sis changed the filename of the dtb section in [1] which breaks the detection of qcdt in pmbootstrap. Fix this by adjusting the filename pmbootstrap checks to match the unpackbootimg behavior. [1] https://github.com/osm0sis/mkbootimg/commit/d8222a4d
This commit is contained in:
parent
8881b0489f
commit
8a5c8fcc3e
|
@ -75,8 +75,8 @@ def bootimg(args, path):
|
||||||
output["pagesize"] = f.read().replace('\n', '')
|
output["pagesize"] = f.read().replace('\n', '')
|
||||||
with open(bootimg_path + "-cmdline", 'r') as f:
|
with open(bootimg_path + "-cmdline", 'r') as f:
|
||||||
output["cmdline"] = f.read().replace('\n', '')
|
output["cmdline"] = f.read().replace('\n', '')
|
||||||
output["qcdt"] = ("true" if os.path.isfile(bootimg_path + "-dtb") and
|
output["qcdt"] = ("true" if os.path.isfile(bootimg_path + "-dt") and
|
||||||
os.path.getsize(bootimg_path + "-dtb") > 0 else "false")
|
os.path.getsize(bootimg_path + "-dt") > 0 else "false")
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
pmb.chroot.root(args, ["rm", "-r", temp_path])
|
pmb.chroot.root(args, ["rm", "-r", temp_path])
|
||||||
|
|
Loading…
Reference in New Issue