Initial commit

This commit is contained in:
haochengkuo
2021-08-31 10:18:35 +08:00
parent 2ad6fb7b44
commit dc05a795b7
44 changed files with 5197 additions and 1 deletions

12
chroot/chroot.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
# This script is only used in the container, see Dockerfile.
DIR="/host" # csi-node mount / of the node to /host in the container
BIN="$(basename "$0")"
if [ -d "$DIR" ]; then
exec chroot $DIR /usr/bin/env -i PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" "$BIN" "$@"
fi
echo -n "Couldn't find hostPath: $DIR in the CSI container"
exit 1