Fix the pre stop hook for disks-images-provider
The manual creation of local block storage has been removed from
images/disks-images-provider/entrypoint.sh along with the LOOP_DEVICE
env var in So drop the leftover cleanup code of the loop
device as it causes failures of the pre stop hook.
@@ -27,7 +27,7 @@ spec:
lifecycle:
preStop:
exec:
- command: ["/bin/sh","-c","source /etc/bashrc && chroot /host losetup -d ${LOOP_DEVICE} && chroot /host umount ${LOOP_DEVICE_HP} && chroot /host losetup -d ${LOOP_DEVICE_HP}"]
+ command: ["/bin/sh","-c","source /etc/bashrc && chroot /host umount ${LOOP_DEVICE_HP} && chroot /host losetup -d ${LOOP_DEVICE_HP}"]
volumeMounts:
- name: images
mountPath: /hostImages
