Le Potato won't boot after installing WireGuard

After installing the wireguard package via apt, then rebooting the device, it hangs after detecting USB devices and won’t boot. Any ideas how to get wireguard installed without crashing it? I had to re-flash the SD card after attempting this.

Logs? Wireguard should have no effect on the OS.

The issue was that wireguard is already installed on the stock distro (and I was unaware of this), and installing the new version also upgraded the kernel to a newer version which is not supported on the Le Potato. Using the stock wireguard installation is the answer in this case.

Another update: the operating system doesn’t include the Wireguard userspace tools (i.e. wg, wg-quick), so attempting to install these (i.e. sudo apt install wireguard-tools) will also attempt to update the kernel, thus breaking the OS.

To get around this, use sudo apt install wireguard-tools --no-install-recommends

Hope this helps anyone else needing to use Wireguard on the Le Potato running Raspbian.