We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e745fb7 commit fe62932Copy full SHA for fe62932
tools/docker-build.sh
@@ -114,9 +114,15 @@ while (( $# > 0 )); do
114
done
115
# End parse options
116
117
+if [[ -d /usr/lib/modules/$(uname -r) ]]; then
118
+ KMODS_DIR=/usr/lib/modules
119
+else
120
+ KMODS_DIR=/lib/modules
121
+fi
122
+
123
DOCKER_RUN_OPTS=()
124
DOCKER_RUN_OPTS+=(-v "${DIST_DIR}:/alterlinux/out")
-DOCKER_RUN_OPTS+=(-v "/usr/lib/modules:/usr/lib/modules:ro")
125
+DOCKER_RUN_OPTS+=(-v "${KMODS_DIR}:/usr/lib/modules:ro")
126
[[ "x${EXTERNAL_WORK_DIR}" != "x" ]] && \
127
DOCKER_RUN_OPTS+=(-v "${EXTERNAL_WORK_DIR}:/alterlinux/work")
128
[[ "x${NO_SHARE_PKG}" != "xTrue" ]] && {
0 commit comments