summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2018-02-26 13:44:12 +0100
committerMikael Magnusson <mikma@users.sourceforge.net>2018-02-26 13:44:12 +0100
commit99ed12ae5bd670c72736371e19b939b851ee7213 (patch)
tree1bff334f19770ffed54d8fdf64553404dfcb2f81
parentd74341418722aa09293c7b266bc5f07fcbe2d0d7 (diff)
Create /lib/modules/ link for host kernel version
-rwxr-xr-xfiles/etc/init.d/container_init5
1 files changed, 5 insertions, 0 deletions
diff --git a/files/etc/init.d/container_init b/files/etc/init.d/container_init
index 386dcbd..706ebe4 100755
--- a/files/etc/init.d/container_init
+++ b/files/etc/init.d/container_init
@@ -43,5 +43,10 @@ boot() {
log_output -p daemon.info "ip tables loaded successfully"
fi
fi
+
+ for r in /lib/modules/*; do
+ ln -s $r /lib/modules/$(uname -r)
+ break
+ done
exit $res
}