onekey-sec / ubi_reader

Collection of Python scripts for reading information about and extracting data from UBI and UBIFS images.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong vol_flags into ini file for ubinize

stich86 opened this issue · comments

Hi,

each time you create scripts for image using ubireader_utils_info, the *.ini file contains the value vol_flags = 0 that seems to not be supported by ubinize.

Is it normal behaviour? Only way to make UBI image back is to remove that flags or use vol_flags = autoresize, that is not supported by the original image

Thanks in advance

Sorry for the late answer. It depends on the UBI volume flags, see https://github.com/onekey-sec/ubi_reader/blob/main/ubireader/scripts/ubireader_utils_info.py#L95

My take is that it should either set vol_flags to autoresize or not set it at all. I'll come up with a fix soon.

oh good
thanks for feedback :)