sleep needs to be last, not after each.
Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
parent
aed66d6901
commit
535d08ba50
|
@ -55,9 +55,8 @@ spec:
|
||||||
mkdir -p /data/overlay-{{ .destName }}-upper;
|
mkdir -p /data/overlay-{{ .destName }}-upper;
|
||||||
mkdir -p /data/overlay-{{ .destName }}-work;
|
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 }};
|
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 }}
|
{{- end }}
|
||||||
touch /combined/overlays-mounted;
|
touch /combined/overlays-mounted; sleep infinity;
|
||||||
lifecycle:
|
lifecycle:
|
||||||
preStop:
|
preStop:
|
||||||
exec:
|
exec:
|
||||||
|
|
Loading…
Reference in New Issue