When analyzing twrp bootimg "ERROR: Only 'ROOTFS' is supported as label"
Device: Bq aquaris E5 HD (vegetahd). It's not bootable yet (so not in the repo) but if required I can share APKBUILDs and stuff.
When I try to analyze TWRP recovery using pmbootstrap I get this:
$ pmbootstrap bootimg_analyze twrp-3.5.1_9-0-vegetahd.img
[18:37:41] NOTE: You will be prompted for your sudo password, so we can set up a chroot to extract and analyze your boot.img file
[sudo] password for emanuele:
[18:37:45] ERROR: Only 'ROOTFS' is supported as label, but your device has 'RECOVERY'. Please create an issue and attach your boot.img: https://postmarketos.org/issues
[18:37:45] See also: <https://postmarketos.org/troubleshooting>
Run 'pmbootstrap log' for details.
Pmbootstrap log:
(039332) [18:37:42] (native) % rm -r /tmp/bootimg_parser
(039332) [18:37:45] (native) % busybox su pmos -c HOME=/home/pmos mkdir -p /tmp/bootimg_parser
(039332) [18:37:45] % sudo cp Downloads/twrp-3.5.1_9-0-vegetahd.img /home/emanuele/.local/var/pmbootstrap/chroot_native/tmp/bootimg_parser/boot.img
(039332) [18:37:45] (native) % cd /tmp/bootimg_parser; busybox su pmos -c HOME=/home/pmos file -b boot.img
Android bootimg, kernel, ramdisk, page size: 2048
(039332) [18:37:45] (native) % cd /tmp/bootimg_parser; busybox su pmos -c HOME=/home/pmos unpackbootimg -i boot.img
ANDROID! magic found at: 0
BOARD_KERNEL_CMDLINE
BOARD_KERNEL_BASE 0x80000000
BOARD_NAME
BOARD_PAGE_SIZE 2048
BOARD_HASH_TYPE sha1
BOARD_KERNEL_OFFSET 0x00008000
BOARD_RAMDISK_OFFSET 0x04000000
BOARD_SECOND_OFFSET 0x00f00000
BOARD_TAGS_OFFSET 0x00000100
BOARD_HEADER_VERSION 0
(039332) [18:37:45] ERROR: Only 'ROOTFS' is supported as label, but your device has 'RECOVERY'. Please create an issue and attach your boot.img: https://postmarketos.org/issues
(039332) [18:37:45] See also: <https://postmarketos.org/troubleshooting>
(039332) [18:37:45] Traceback (most recent call last):
File "/home/emanuele/pmbootstrap-venv/lib/python3.9/site-packages/pmb/__init__.py", line 49, in main
getattr(frontend, args.action)(args)
File "/home/emanuele/pmbootstrap-venv/lib/python3.9/site-packages/pmb/helpers/frontend.py", line 555, in bootimg_analyze
bootimg = pmb.parse.bootimg(args, args.path)
File "/home/emanuele/pmbootstrap-venv/lib/python3.9/site-packages/pmb/parse/bootimg.py", line 116, in bootimg
has_mtk_header(f"{bootimg_path}-ramdisk", "ROOTFS")
File "/home/emanuele/pmbootstrap-venv/lib/python3.9/site-packages/pmb/parse/bootimg.py", line 28, in has_mtk_header
raise RuntimeError(f"Only '{supported_label}' is supported as"
RuntimeError: Only 'ROOTFS' is supported as label, but your device has 'RECOVERY'. Please create an issue and attach your boot.img: https://postmarketos.org/issues
I attach the TWRP file. I can share other information as you may need Thank you!