#987464 mkbootimg: unpack_bootimg fails with python error

#987464#5
Date:
2021-04-24 10:24:05 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?

    Trying to unpack a boot.img file with unpack_bootimg.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

    I tried to run, "unpack_bootimg --boot_img boot.img --out out"

   * What was the outcome of this action?

    Only extracts the kernel and gives the following python error at the end of output:
    Traceback (most recent call last):
  File "/usr/bin/unpack_bootimg", line 152, in <module>
    main()
  File "/usr/bin/unpack_bootimg", line 148, in main
    unpack_bootimage(args)
  File "/usr/bin/unpack_bootimg", line 126, in unpack_bootimage
    extract_image(image_info[0], image_info[1], args.boot_img,
  File "/usr/bin/unpack_bootimg", line 35, in extract_image
    bootimage.seek(offset)
TypeError: 'float' object cannot be interpreted as an integer


   * What outcome did you expect instead?

     Unpack boot.img, extracts the kernel,ramdisk, second bootloader,
recovery dtbo and dtb.

*** End of the template - remove these template lines ***