Skip to content

Commit

Permalink
[ws-daemon] Fix shiftfs-module-loader
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Weichel committed Oct 21, 2020
1 parent d54f791 commit 84be881
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion chart/templates/ws-daemon-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ spec:
initContainers:
- name: shiftfs-module-loader
volumeMounts:
- mountPath: /usr/src
- mountPath: /usr/src_node
name: node-linux-src
readOnly: true
image: {{ template "gitpod.comp.imageFull" (dict "root" . "gp" $.Values "comp" $comp.userNamespaces.shiftfsModuleLoader) }}
Expand Down
4 changes: 2 additions & 2 deletions components/ws-daemon/shiftfs-module-loader/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ fi

set -ex
mkdir -p /lib/modules/${KERNEL_RELEASE}
ln -s /usr/src/linux-headers-${KERNEL_RELEASE} /lib/modules/${KERNEL_RELEASE}/build
dkms install -m ${DRIVER_NAME} -v ${DRIVER_VERSION} -k $KERNEL_RELEASE --kernelsourcedir /usr/src/linux-headers-${KERNEL_RELEASE}
ln -s /usr/src_node/linux-headers-${KERNEL_RELEASE} /lib/modules/${KERNEL_RELEASE}/build
dkms install -m ${DRIVER_NAME} -v ${DRIVER_VERSION} -k $KERNEL_RELEASE --kernelsourcedir /usr/src_node/linux-headers-${KERNEL_RELEASE}
insmod /var/lib/dkms/${DRIVER_NAME}/${DRIVER_VERSION}/${KERNEL_RELEASE}/${ARCH}/module/${DRIVER_NAME}.ko

0 comments on commit 84be881

Please sign in to comment.