Skip to content

Commit 466a005

Browse files
authored
Merge pull request #45 from linuxserver/debian
Add Debian updates and security repos for headers
2 parents d4991a0 + cb1a600 commit 466a005

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
268268

269269
## Versions
270270

271+
* **05.07.20:** - Add Debian updates and security repos for headers.
271272
* **25.06.20:** - Simplify module tests, prevent iptables issues from resulting in false negatives.
272273
* **19.06.20:** - Add support for Ubuntu Focal (20.04) kernels. Compile wireguard tools and kernel module instead of using the ubuntu packages. Make module install optional. Improve verbosity in logs.
273274
* **29.05.20:** - Add support for 64bit raspbian.

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ app_setup_block: |
8585
8686
# changelog
8787
changelogs:
88+
- { date: "05.07.20:", desc: "Add Debian updates and security repos for headers." }
8889
- { date: "25.06.20:", desc: "Simplify module tests, prevent iptables issues from resulting in false negatives." }
8990
- { date: "19.06.20:", desc: "Add support for Ubuntu Focal (20.04) kernels. Compile wireguard tools and kernel module instead of using the ubuntu packages. Make module install optional. Improve verbosity in logs." }
9091
- { date: "29.05.20:", desc: "Add support for 64bit raspbian." }

root/etc/cont-init.d/30-config

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,17 @@ if [ "$SKIP_COMPILE" != "true" ] && [ ! -e /lib/modules/$(uname -r)/build ]; the
5959
elif uname -v | grep -q 'Debian'; then
6060
echo "**** Debian host detected, attempting to install kernel headers from Debian Buster repo ****"
6161
curl -s https://ftp-master.debian.org/keys/archive-key-10.asc | apt-key add -
62-
echo -e \
63-
"deb http://deb.debian.org/debian buster main contrib non-free\ndeb-src http://deb.debian.org/debian buster main contrib non-free\ndeb http://deb.debian.org/debian buster-backports main contrib non-free\ndeb-src http://deb.debian.org/debian buster-backports main contrib non-free" \
64-
> /etc/apt/sources.list.d/debian.list
62+
curl -s https://ftp-master.debian.org/keys/archive-key-10-security.asc | apt-key add -
63+
cat <<DUDE > /etc/apt/sources.list.d/debian.list
64+
deb http://deb.debian.org/debian buster main contrib non-free
65+
deb-src http://deb.debian.org/debian buster main contrib non-free
66+
deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free
67+
deb-src http://deb.debian.org/debian-security/ buster/updates main contrib non-free
68+
deb http://deb.debian.org/debian buster-updates main contrib non-free
69+
deb-src http://deb.debian.org/debian buster-updates main contrib non-free
70+
deb http://deb.debian.org/debian buster-backports main contrib non-free
71+
deb-src http://deb.debian.org/debian buster-backports main contrib non-free
72+
DUDE
6573
apt-get update
6674
if apt-cache show linux-headers-$(uname -r) 2&>1 >/dev/null; then
6775
if uname -r | grep -qs "bpo"; then
@@ -75,6 +83,7 @@ if [ "$SKIP_COMPILE" != "true" ] && [ ! -e /lib/modules/$(uname -r)/build ]; the
7583
else
7684
echo "**** Attempting to install kernel headers from the Debian Stretch repo ****"
7785
curl -s https://ftp-master.debian.org/keys/archive-key-9.asc | apt-key add -
86+
curl -s https://ftp-master.debian.org/keys/archive-key-9-security.asc | apt-key add -
7887
sed -i 's/buster/stretch/g' /etc/apt/sources.list.d/debian.list
7988
apt-get update
8089
if apt-cache show linux-headers-$(uname -r) 2&>1 >/dev/null; then
@@ -100,6 +109,7 @@ if [ "$SKIP_COMPILE" != "true" ]; then
100109
if [ -e /lib/modules/$(uname -r)/build ]; then
101110
echo "**** Kernel headers seem to be present, attempting to build the wireguard module. . . ****"
102111
if [ ! -f /lib/modules/$(uname -r)/build/certs/signing_key.pem ]; then
112+
mkdir -p /lib/modules/$(uname -r)/build/certs
103113
cd /lib/modules/$(uname -r)/build/certs
104114
cat <<DUDE >> x509.genkey
105115
[ req ]

0 commit comments

Comments
 (0)