mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 01:29:07 +00:00
See https://github.com/moby/moby/issues/38887 for details. Basically 5.x removed support for CFQ with f382fb0bcef4 ("block: remove legacy IO schedulers") and the Moby check still requires it. Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
19 lines
398 B
Bash
Executable File
19 lines
398 B
Bash
Executable File
#!/bin/sh
|
|
|
|
function failed {
|
|
printf "Kernel config test suite FAILED\n"
|
|
exit 1
|
|
}
|
|
|
|
/check-kernel-config.sh || failed
|
|
|
|
# Skip moby kernel checks on 5.x kernels for now.
|
|
# See: https://github.com/moby/moby/issues/38887
|
|
kernelVersion="$(uname -r)"
|
|
kernelMajor="${kernelVersion%%.*}"
|
|
if [ "$kernelMajor" -lt 5 ]; then
|
|
bash /check-config.sh || failed
|
|
fi
|
|
|
|
printf "Kernel config test suite PASSED\n"
|