Skip to content

Commit

Permalink
Start creating loop devices from /dev/loop0
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Maya Rashish <[email protected]>
  • Loading branch information
maya-r committed May 31, 2020
1 parent 85714b9 commit ee19361
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion manifests/testing/disks-images-provider.yaml.in
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down

0 comments on commit ee19361

Please sign in to comment.