Skip to content

Commit b171fb5

Browse files
committed
fix: Safe not mounted detection
Install util-linux versions of mount/umount (instead of default busybox versions) to pass the 'safe not mounted' test in mount-utils See https://github.com/kubernetes/mount-utils/blob/dfd453c575c09ba21aa9f45bf9a9ddb8724c5e0b/mount_linux.go#L317
1 parent 40fbd87 commit b171fb5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmd/cloudstack-csi-driver/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ RUN apk add --no-cache \
1111
e2fsprogs-extra \
1212
# Provides mkfs.xfs
1313
xfsprogs \
14-
# Provides blkid, also used by k8s.io/mount-utils
15-
blkid
14+
# blkid, mount and umount are required by k8s.io/mount-utils \
15+
blkid \
16+
mount \
17+
umount
1618

1719
COPY ./bin/cloudstack-csi-driver /cloudstack-csi-driver
1820
ENTRYPOINT ["/cloudstack-csi-driver"]

0 commit comments

Comments
 (0)