mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-01 19:46:44 +00:00
Merge pull request #906 from balena-io/dont-remount
Don't mount /lib/modules if it is already mounted
This commit is contained in:
commit
229f478efc
4
entry.sh
4
entry.sh
@ -48,7 +48,9 @@ fi
|
|||||||
|
|
||||||
# Mount the host kernel module path onto the expected location
|
# Mount the host kernel module path onto the expected location
|
||||||
# We need to do this as busybox doesn't support using a custom location
|
# We need to do this as busybox doesn't support using a custom location
|
||||||
ln -s /mnt/root/lib/modules /lib/modules
|
if [ ! -d /lib/modules ]; then
|
||||||
|
ln -s /mnt/root/lib/modules /lib/modules
|
||||||
|
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 filtering on ipv6 addresses
|
||||||
modprobe ip6_tables
|
modprobe ip6_tables
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user