Merge pull request #1550 from MichaIng/patch-1

Add support for xz-compressed WireGuard kernel module
This commit is contained in:
4s3ti 2022-06-10 14:42:26 +02:00 committed by GitHub
commit e809d5bd32
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).
# Source: https://github.com/MichaIng/DietPi/blob/7bf5e1041f3b2972d7827c48215069d1c90eee07/dietpi/dietpi-software#L1807-L1815
WIREGUARD_BUILTIN=0
for i in /lib/modules/**/wireguard.ko; do
for i in /lib/modules/**/wireguard.ko{,.xz}; do
[[ -f $i ]] || continue
dpkg-query -S "$i" &> /dev/null || continue
WIREGUARD_BUILTIN=1