Skip to content
This repository was archived by the owner on Oct 6, 2023. It is now read-only.

Commit b24dd37

Browse files
authored
Merge pull request obeone#4 from dalazx/builtin_kernel_modules_fix
Fixed the kernel module assertion to consider builtin modules
2 parents 893ac21 + f1eebf3 commit b24dd37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ assert_kernel_mod() {
226226

227227
log "checking for presence of kernel module: $moduleName"
228228

229-
lsmod | grep -Eq "^$moduleName\\s+"
229+
lsmod | grep -Eq "^$moduleName\\s+" || [ -d "/sys/module/$moduleName" ]
230230

231231
exit_on_failure "$moduleName module is not loaded on the Docker host's kernel (try: modprobe $moduleName)"
232232
}

0 commit comments

Comments
 (0)