Hello All,
Thanks for your prompt reply. I did some workaround for this issue that I described below. It may not be good practice and I might miss something, but I was only doing some proof of concept work so it was ok for me.
2. I went ahead and modified the upgrader script in this location - /opt/openwisp2/env/lib/python3.9/site-packages/openwisp_firmware_upgrader/upgraders/openwrt.py and removed the "-c" from the command.
3. retired the upgrade again and it was a success. I used a base image directly downloaded from OpenWRT website.
4. in my OpenWRT devices, i saw my configurations were there (e.g - i had a openVPN connection with pfSense before the upgrade and after the upgrade config is still there, and the tunnel was established).
5. for OpenWISP, I saw config file is there (in /etc/config/openwisp), but the OpenWISP package itself was missing. After some reading, I found out it's normal that packages are not retained after sysupgrade.
6. As a workaround, I built a custom image with pre-installed my necessary packages and did the firmware upgrade using it. After the upgrade now everything is good, including packages as those were already pre-baked.
Hope this helps!
Thank you.