Merge pull request #906 from balena-io/dont-remount

Don't mount /lib/modules if it is already mounted
This commit is contained in:
CameronDiver 2019-02-14 14:04:20 +00:00 committed by GitHub
commit 229f478efc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,9 @@ fi
# Mount the host kernel module path onto the expected 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
modprobe ip6_tables