fnginstall-common: handle gpt partition table
This is a fix for issue with ID 746-001412 : "fng-install: Handle existing GPT partition layout."
Edgehog is distributed via WIC files which use a GPT partition table. But fngsystem-self-update scripts, which are used with SECO NE boards, do not work correctly with GPT partition table, so the installation of FNG System fails on boards, where Edgehog WIC is installed.
Added the handling of GPT partition table to fngsystem-self-update:
- if "--fdisk|--force-repartition" argument is not specified, installation will stop immediately with error message;
- if "--fdisk|--force-repartition" argument is specified, an existing partition table on storage device on SECO NE board will be erased, and the installation process will continue as if this storage device was unformatted.
Note: existing version of mx6-boot is not able to boot into FNG System, it should be fixed as well.
Edited by Mikhail Vanyulin