Add support for xz-compressed WireGuard kernel module

which is the default since Linux 5.15.

Signed-off-by: MichaIng <micha@dietpi.com>
This commit is contained in:
MichaIng 2022-06-10 14:38:10 +02:00 committed by GitHub
parent 2b791eb6a8
commit f120fab78f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -492,7 +492,7 @@ preconfigurePackages(){
# and not part of the .deb). # and not part of the .deb).
# Source: https://github.com/MichaIng/DietPi/blob/7bf5e1041f3b2972d7827c48215069d1c90eee07/dietpi/dietpi-software#L1807-L1815 # Source: https://github.com/MichaIng/DietPi/blob/7bf5e1041f3b2972d7827c48215069d1c90eee07/dietpi/dietpi-software#L1807-L1815
WIREGUARD_BUILTIN=0 WIREGUARD_BUILTIN=0
for i in /lib/modules/**/wireguard.ko; do for i in /lib/modules/**/wireguard.ko{,.xz}; do
[[ -f $i ]] || continue [[ -f $i ]] || continue
dpkg-query -S "$i" &> /dev/null || continue dpkg-query -S "$i" &> /dev/null || continue
WIREGUARD_BUILTIN=1 WIREGUARD_BUILTIN=1