Lochnair / vyatta-wireguard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Debian repository

p3lim opened this issue · comments

Any chance you could set up a debian repository for this package?
It was mentioned in the original feature request (link and link), and I've seen other packages manage this (e.g. blacklist).

This would make upgrading a breeze (link), and can make the installation persistent between upgrades (link).

This has been on my wish list for a good while now.

Well, upgrading would be easier, but you'd still have to either delete the interfaces or reboot, to be able to load the new module.

There's nothing to stop you from downloading the latest vyatta-wireguard package from the release page and saving it to /config/data/install-packages right now, but britannic's deb install script won't work per his install instructions for this purpose. The reason being, that we need vyatta-wireguard to be installed before the config loads. You could make it work by installing it to /config/scripts/pre-config.d instead which runs before the config loader runs.

Setting up an apt repo is by itself quite feasible, but we have to consider the fact that is not unusual that I'm maintaining multiple branches at a time, like 1.10 and 2.0. And sometimes in a bugfix release, they'll change something in the kernel which means I need to build new wireguard binaries, and that in turn will break vyatta-wireguard for people still on the old version.

A related item on my wish list is to create automated builds of wireguard for each firmware version.

I've developed a script that will install/update WireGuard, without the need of a reboot, and preserve the package installation after a firmware upgrade. (link)

@farmwald I've updated my repo. If you haven't already, reboot your router before running the new script. The old script has the potential to put the EdgeOS configuration in a broken state.