mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 12:23:35 +01:00
update kernel builder
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
7a95bd6503
commit
afc07805f0
|
@ -94,15 +94,13 @@ install_kernel(){
|
||||||
|
|
||||||
|
|
||||||
# Install Wireguard VPN into the kernel.
|
# Install Wireguard VPN into the kernel.
|
||||||
if [[ ! -f "${DIR}/net/wireguard/allowedips.c" ]]; then
|
if [[ "$OPT" == "wireguard" ]] && [[ ! -f "${DIR}/net/wireguard/allowedips.c" ]]; then
|
||||||
echo "Applying patch for Wireguard VPN..."
|
echo "Applying patch for Wireguard VPN..."
|
||||||
(
|
(
|
||||||
cd "$DIR"
|
cd "$DIR"
|
||||||
/wireguard/contrib/kernel-tree/create-patch.sh | patch -p1
|
/wireguard/contrib/kernel-tree/create-patch.sh | patch -p1
|
||||||
)
|
)
|
||||||
echo "Patch for Wireguard VPN successfully applied!"
|
echo "Patch for Wireguard VPN successfully applied!"
|
||||||
else
|
|
||||||
echo "Patch for Wireguard VPN has already been applied!"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Copy the config from /usr/src/config if it does not already exist.
|
# Copy the config from /usr/src/config if it does not already exist.
|
||||||
|
@ -118,7 +116,9 @@ install_kernel(){
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add the config options for Wireguard VPN.
|
# Add the config options for Wireguard VPN.
|
||||||
echo "CONFIG_WIREGUARD=y" >> .config
|
if [[ "$OPT" == "wireguard" ]]; then
|
||||||
|
echo "CONFIG_WIREGUARD=y" >> .config
|
||||||
|
fi
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user