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
This commit is contained in:
Eelco Dolstra 2019-06-06 12:40:30 +02:00
parent 6c1a69627d
commit 4bb48e7f99
No known key found for this signature in database
GPG Key ID: 8170B4726D7198DE

View File

@ -303,7 +303,7 @@ let
};
script = ''
${optionalString (!config.boot.isContainer) "modprobe wireguard"}
${optionalString (!config.boot.isContainer) "modprobe wireguard || true"}
${values.preSetup}