diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-06-06 12:40:30 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-06-06 12:40:30 +0200 |
commit | 4bb48e7f997caef5d4ca5a6d7b9af12f3cbd87ba (patch) | |
tree | 964d6bf9ea8de591068ffe6c0ec0d70bb5b493a4 | |
parent | 6c1a69627d1e1cc456ea46e5fddbc7ecdad10868 (diff) |
wireguard: Don't fail if modprobe fails
This can lead to unnecessary failures if the kernel module is already
loaded:
Jun 06 12:38:50 chef bglisn9bz0y5403vdw9hny0ij43r41jk-unit-script-wireguard-wg0-start[13261]: modprobe: FATAL: Module wireguard not found in directory /run/booted-system/kernel-modules/lib/modules/4.19.36
-rw-r--r-- | nixos/modules/services/networking/wireguard.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/wireguard.nix b/nixos/modules/services/networking/wireguard.nix index c07481582c2f..e9dcb0fc896c 100644 --- a/nixos/modules/services/networking/wireguard.nix +++ b/nixos/modules/services/networking/wireguard.nix @@ -303,7 +303,7 @@ let }; script = '' - ${optionalString (!config.boot.isContainer) "modprobe wireguard"} + ${optionalString (!config.boot.isContainer) "modprobe wireguard || true"} ${values.preSetup} |