Similar to how Porteus self-updates base modules on request, I'd like to make a script that runs automatically once per session, checking for example:
Code: Select all
curl -s https://api.github.com/repos/porteux/porteux/releases/latest | grep -Po '"tag_name": "\K.*?(?=")'
Code: Select all
cat /etc/os-release | grep VERSION
The previous version of activated modules can often be renamed and then deleted on the reboot. Not sure about initrd.zst and vmlinuz. Porteus self-updating script cannot replace active base modules in-place: it does it on reboot. So do most self-updating applications. Take Firefox or any browser for example: it' quietly downloads the new version and updates it on the program restart.
So, basically, in 2025 I don't want to know which particular PorteuX v1.* I'm running: I just want it to always be the latest, until an update breaks something, but I'm willing to take that risk.
@porteux and @all could you help me develop such a script and let me hear your thoughts and objections to this idea please.