Start creating loop devices from /dev/loop0
Add a comment elaborating why this is a shell infinite loop.
It's taking me too long to fix this, so requesting to merge it as-is
and having the cleanup in a separate pull request, to unblock
others.
@@ -120,11 +120,13 @@ spec:
- -c
- |
while true; do
- for i in $(seq 100); do
+ for i in $(seq 0 100); do
if ! [ -e /dev/loop$i ]; then
mknod /dev/loop$i b 7 $i
fi
done
+ # XXX: we can't finish running because we're a DaemonSet
+ # Switch to being a Pod!
sleep 100000000
done
image: {{.DockerPrefix}}/disks-images-provider:{{.DockerTag}}
