diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2018-02-26 13:44:12 +0100 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2018-02-26 13:44:12 +0100 |
commit | 99ed12ae5bd670c72736371e19b939b851ee7213 (patch) | |
tree | 1bff334f19770ffed54d8fdf64553404dfcb2f81 /files/etc | |
parent | d74341418722aa09293c7b266bc5f07fcbe2d0d7 (diff) |
Create /lib/modules/ link for host kernel version
Diffstat (limited to 'files/etc')
-rwxr-xr-x | files/etc/init.d/container_init | 5 |
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 } |