sleep needs to be last, not after each.

Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
Martyn 2024-03-04 12:52:05 +00:00
parent aed66d6901
commit 535d08ba50
1 changed files with 1 additions and 2 deletions

View File

@ -55,9 +55,8 @@ spec:
mkdir -p /data/overlay-{{ .destName }}-upper;
mkdir -p /data/overlay-{{ .destName }}-work;
mount -t overlay -o lowerdir=/extras/{{ join ":/extras/" .shares }},upperdir=/data/overlay-{{ .destName }}-upper,workdir=/data/overlay-{{ .destName }}-work overlay /combined/{{ .destName }};
sleep infinity;
{{- end }}
touch /combined/overlays-mounted;
touch /combined/overlays-mounted; sleep infinity;
lifecycle:
preStop:
exec: