summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-06-06 12:40:30 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-06-06 12:40:30 +0200
commit4bb48e7f997caef5d4ca5a6d7b9af12f3cbd87ba (patch)
tree964d6bf9ea8de591068ffe6c0ec0d70bb5b493a4 /nixos
parent6c1a69627d1e1cc456ea46e5fddbc7ecdad10868 (diff)
downloadnixpkgs-4bb48e7f997caef5d4ca5a6d7b9af12f3cbd87ba.tar
nixpkgs-4bb48e7f997caef5d4ca5a6d7b9af12f3cbd87ba.tar.gz
nixpkgs-4bb48e7f997caef5d4ca5a6d7b9af12f3cbd87ba.tar.bz2
nixpkgs-4bb48e7f997caef5d4ca5a6d7b9af12f3cbd87ba.tar.lz
nixpkgs-4bb48e7f997caef5d4ca5a6d7b9af12f3cbd87ba.tar.xz
nixpkgs-4bb48e7f997caef5d4ca5a6d7b9af12f3cbd87ba.tar.zst
nixpkgs-4bb48e7f997caef5d4ca5a6d7b9af12f3cbd87ba.zip
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
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/wireguard.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/wireguard.nix b/nixos/modules/services/networking/wireguard.nix
index c07481582c2..e9dcb0fc896 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}