openmptcprouter icon indicating copy to clipboard operation
openmptcprouter copied to clipboard

Restore installed packages when backup is restored

Open Steltek opened this issue 3 years ago • 4 comments

I've installed a couple extra packages on my router (qrencode, keepalived, ...), however because I am running it as a VM, I do not have the option of running a sysupgrade and keeping installed packages that way (I have to drop the used HDD image and replace it with a new one instead).

It would be nice if the system could auto-install formerly installed/missing packages when the configuration is restored from backup. (The data seems to be in /etc/backup/installed-packages.txt, so it might just need a trigger or some extra scripting to do that installation after the reboot....)

Steltek avatar Oct 13 '22 13:10 Steltek

Should be the case, after an update installed packages are installed again if you update via the web interface. I don't understand why you can't run a sysupgrade ?

Ysurac avatar Oct 13 '22 13:10 Ysurac

There are no sysupgrade images for x86-64 (64-bits) so I assumed a sysupgrade wasn't possible. I am running openmptcprouter-v0.59.1-5.4-r0+16594-ce92de8c8c-x86-64-generic-ext4-combined.img.gz.

Steltek avatar Oct 13 '22 13:10 Steltek

You need to use this image to update via web interface. No need for a special sysupgrade image here.

Ysurac avatar Oct 13 '22 14:10 Ysurac

That explains it. I was under the assumption I had to replace the image that the VM boots from.

I'll try feeding it the new image through the UI for the next version.

Steltek avatar Oct 13 '22 14:10 Steltek

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar Jan 11 '23 19:01 github-actions[bot]