Skip to content

Commit 528ede7

Browse files
Merge pull request #25 from dappnode/3alpha/version-bump
Bump
2 parents c5e1e42 + 96b8ffb commit 528ede7

5 files changed

Lines changed: 16 additions & 16 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/linuxserver/baseimage-ubuntu:bionic
1+
FROM ghcr.io/linuxserver/baseimage-ubuntu:focal
22

33
# set version label
44
ARG BUILD_DATE

Dockerfile.aarch64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/linuxserver/baseimage-ubuntu:arm64v8-bionic
1+
FROM ghcr.io/linuxserver/baseimage-ubuntu:arm64v8-focal
22

33
# set version label
44
ARG BUILD_DATE

Dockerfile.armhf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/linuxserver/baseimage-ubuntu:arm32v7-bionic
1+
FROM ghcr.io/linuxserver/baseimage-ubuntu:arm32v7-focal
22

33
# set version label
44
ARG BUILD_DATE

root/defaults/server.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
Address = ${INTERFACE}.1
33
ListenPort = 51820
44
PrivateKey = $(cat /config/server/privatekey-server)
5-
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
6-
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
5+
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth+ -j MASQUERADE
6+
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth+ -j MASQUERADE

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if ip link add dev test type wireguard; then
1010
SKIP_COMPILE="true"
1111
ip link del dev test
1212
else
13-
echo "**** The wireguard module is not active, will attempt kernel header install and module compilation. ****"
13+
echo "**** The wireguard module is not active, will attempt kernel header install and module compilation. If you believe that your kernel should have wireguard support already, make sure that it is activated via modprobe! ****"
1414
fi
1515

1616
# install headers if necessary
@@ -30,31 +30,31 @@ if [ "$SKIP_COMPILE" != "true" ] && [ ! -e /lib/modules/$(uname -r)/build ]; the
3030
apt-get install -y \
3131
raspberrypi-kernel-headers
3232
elif uname -v | grep -q 'Ubuntu'; then
33-
echo "**** Ubuntu kernel detected, but likely not Bionic. ****"
34-
echo "**** Attempting to install kernel headers from Ubuntu Xenial repo ****"
33+
echo "**** Ubuntu kernel detected, but likely not Focal. ****"
34+
echo "**** Attempting to install kernel headers from Ubuntu Bionic repo ****"
3535
if uname -m | grep -q 'x86_64'; then
3636
echo -e \
37-
"deb http://archive.ubuntu.com/ubuntu/ xenial main restricted\ndeb-src http://archive.ubuntu.com/ubuntu/ xenial main restricted\n\ndeb http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted\ndeb-src http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted" \
38-
> /etc/apt/sources.list.d/xenial-focal.list
37+
"deb http://archive.ubuntu.com/ubuntu/ bionic main restricted\ndeb-src http://archive.ubuntu.com/ubuntu/ bionic main restricted\n\ndeb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted\ndeb-src http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted" \
38+
> /etc/apt/sources.list.d/xenial-bionic.list
3939
else
4040
echo -e \
41-
"deb http://ports.ubuntu.com/ubuntu-ports/ xenial main restricted\ndeb-src http://ports.ubuntu.com/ubuntu-ports/ xenial main restricted\n\ndeb http://ports.ubuntu.com/ubuntu-ports/ xenial-updates main restricted\ndeb-src http://ports.ubuntu.com/ubuntu-ports/ xenial-updates main restricted" \
42-
> /etc/apt/sources.list.d/xenial-focal.list
41+
"deb http://ports.ubuntu.com/ubuntu-ports/ bionic main restricted\ndeb-src http://ports.ubuntu.com/ubuntu-ports/ bionic main restricted\n\ndeb http://ports.ubuntu.com/ubuntu-ports/ bionic-updates main restricted\ndeb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-updates main restricted" \
42+
> /etc/apt/sources.list.d/xenial-bionic.list
4343
fi
4444
apt-get update
4545
if apt-cache show linux-headers-$(uname -r) 2&>1 >/dev/null; then
4646
apt-get install -y \
4747
linux-headers-$(uname -r)
4848
else
49-
echo "**** No kernel headers found in the Ubuntu Xenial repo!! Trying Ubuntu Focal. ****"
50-
sed -i 's/xenial/focal/g' /etc/apt/sources.list.d/xenial-focal.list
49+
echo "**** No kernel headers found in the Ubuntu Bionic repo!! Trying Ubuntu Xenial. ****"
50+
sed -i 's/bionic/xenial/g' /etc/apt/sources.list.d/xenial-bionic.list
5151
apt-get update
5252
if apt-cache show linux-headers-$(uname -r) 2&>1 >/dev/null; then
5353
apt-get install -y \
5454
linux-headers-$(uname -r)
5555
else
5656
echo "**** No kernel headers found in the Ubuntu repos!! Will try the headers from host (if mapped), may or may not work ****"
57-
rm -rf /etc/apt/sources.list.d/xenial-focal.list
57+
rm -rf /etc/apt/sources.list.d/xenial-bionic.list
5858
fi
5959
fi
6060
elif uname -v | grep -q 'Debian'; then
@@ -156,7 +156,7 @@ DUDE
156156
sleep infinity
157157
fi
158158
else
159-
echo "**** Kernel headers don't seem to be available, can't compile the module. Sleeping now. . . ****"
159+
echo "**** Kernel headers don't seem to be available in Ubuntu, Debian and Raspbian repos, or shared from the host; therefore can't compile the module. Sleeping now. . . ****"
160160
sleep infinity
161161
fi
162162
fi

0 commit comments

Comments
 (0)