mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-05-28 21:34:19 +00:00
Merge pull request #982 from balena-io/dont-check-for-loaded-modules
Dont check config.gz for loaded i6tables module
This commit is contained in:
commit
1aa42b3b4a
12
entry.sh
12
entry.sh
@ -59,9 +59,13 @@ fi
|
|||||||
if [ ! -d /lib/modules ]; then
|
if [ ! -d /lib/modules ]; then
|
||||||
ln -s /mnt/root/lib/modules /lib/modules
|
ln -s /mnt/root/lib/modules /lib/modules
|
||||||
fi
|
fi
|
||||||
# Now load the ip6_tables kernel module, so we can do filtering on ipv6 addresses
|
# Now load the ip6_tables kernel module, so we can do
|
||||||
if [ -z "$(cat /proc/config.gz | gunzip | grep CONFIG_IP6_NF_IPTABLES=y || true)" ]; then
|
# filtering on ipv6 addresses. Don't fail here if the
|
||||||
modprobe ip6_tables
|
# modprobe fails, as this can either be that the module is
|
||||||
fi
|
# already loaded or that the kernel module isn't present. In
|
||||||
|
# the former case, this is fine for runtime, and in the
|
||||||
|
# latter it means that the supervisor will fail later on, so
|
||||||
|
# not a problem.
|
||||||
|
modprobe ip6_tables || true
|
||||||
|
|
||||||
exec node /usr/src/app/dist/app.js
|
exec node /usr/src/app/dist/app.js
|
||||||
|
Loading…
x
Reference in New Issue
Block a user