After solving the problem the upgrade was pretty smooth. The firewall perform the following steps:
- upgrade to the last current minor version of the current major branch
- upgrade to the first minor version of the next major branch
- upgrade to the last minor version ot the current major branch