git clone git://git.zx2c4.com/wireguard-linux-compat -b v1.0.20220627 bash wireguard-linux-compat/kernel-tree-scripts/create-patch.sh > wireguard.patch git apply wireguard.patch rm wireguard.patch rm -rf wireguard-linux-compat