Confusion about sysupgrade with additional packages

Hi,

I'm having this issue every time I'm using a SYSUPGRADE firmware, all the previously installed softwares (add-ons) are missing, like Wireguard, BUT after I've reinstalled the missing softwares fortunately the config files and parameters are kept from the previous installation.
The router kept all the settings like routes, wifi, configs
Only softwares are missing

Any clue of what's wrong ? And why the SYSUPGRADE firmware doesn't keep the previously installed softwares ?

Best of regards

your expectations.

you mean there should be a sysupgrade image for every device and manually installed package combination out there ?

use OWUT when upgrading - Owut: OpenWrt Upgrade Tool.

4 Likes

I was expecting that after performing a SYSUPGRADE firmware update I don't have to manually reinstall the softwares.
Am I wrong ?
Will have a look to OWUT,
Thanks for helping
Regards

you are.

how is the sysupgrade image supposed to know which packages you've installed ?

unless you customize it through https://firmware-selector.openwrt.org/, only the base packages will be included.

2 Likes

Ok, so you're saying that I had a wrong idea how to use a sysupgrade ?
Thanks for the explanation that wasn't so obvious to understand.
OWUT seems to be the solution to update the firmware and keep all the packages that were previously installed before the upgrade.
TY very much.

2 Likes

dude, I'm a nerd, not a mind reader, but it would appear so :wink:

5 Likes

Do you mean the attendended sysupgrade option in Luci or a sysupgrade image?

When I use attended sysupgrade in Luci it conserves the software and configuration if I select to it.

Only in some major upgrades it cannot conserve it and throws a message, and I have to upgrade manually.

1 Like

just SYSUPGRADE.
I wasn't figuring out the proper result.

Next time I will use OWUT or unattended sysupgrade and see if it keeps the previously installed packages.

TY

2 Likes

Saves packages installed from the official openwrt site. If packages are installed from other places, it does not save. You need to install them again manually. The only difference is in working with the console, or clicking the mouse in the Web interface.

No if you simply download an image it obviously can’t know what packages you added. You have a few choices to make this easy. This is well documented on the doc pages -

  1. owut - command line tool you can SSH in to use it’ll make sysupgrade with your packages updated easy. Needs to be installed.

  2. luci-app-attendedsysupgrade - adds web UI page that is similar to above, however is a separate package. Needs to be installed.

  3. Firmware Selector - click customize, paste in the extra packages you want into installed packages box, hit request image. It’ll provide an image with all your extra packages included.

  4. Sysupgrade, then manually reinstall packages with opkg/apk. This can be pasted into SSH in one command to make it quick as well.

6 Likes

TY crystal clear

2 Likes

I had the same problem w LuCi ATTENDED SYSUPGRADE....

I learnt that I needed to manually specify all my packages/modules in the IMAGE request process, before the IMAGE is built/downloaded.

There is a way to copy the modules list that you have installed & use that "master list" for specifying all the modules needed in the new IMAGE. I've looked through my own notes, but they don't make enough sense to me to repeat here...

I personally think the LuCi process should read the current list of installed modules itself, rather than making us list them manually. If there is no way of reading such a list from the OpenWrt OS, that itself should be an necessary upgrade.

However there IS the owut command-line util that can be run through SSH. This is what I intend to do next time. You may have to install owut, its a new util. OWUT seems to be able to do what you expect/hope it will do.... upgrade the entire system, including all modules, in place.

Why does it seam that nobody uses the firmware image builder locally any more?
It's fast, reliable, and you can mostly do want you like without "wasting" remote resources.

1 Like

I see I wasn't the only one not properly figuring out what to expect of SYSUPGRADE.
Thanks for sharing all the best practices and different ways to achieve these procedures.

It's not intended to sound harsh, but the issue is, nobody seams to read the wiki and just watching half baked YouTube Videos by random guys who are treated as "experts" because they have lots of clicks....

1 Like

uh ?
The behavior of attended sysupagre(ASU) is :
"ASU eliminates the need to make a list of packages you installed manually, or fuss with opkg just to upgrade your firmware.