From a7ac96f30325ea73fc6288ce5c0298870f2ecea8 Mon Sep 17 00:00:00 2001 From: Stanislav Barantsev Date: Tue, 26 Sep 2023 20:28:04 +0300 Subject: [PATCH] Fix snapshot reload on ec2 instances (#298) Apparently, AWS has patched its base utils, which works differently when we try to use our scripts. In this particular case, their ls utility doesn't support a [real basic] flag -l. This caused our reload script to crash without reloading the subscripts for each particular volume that is tracked by the driver. Closes #297 --- dist/initramfs/reload | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/initramfs/reload b/dist/initramfs/reload index e099f51c..dc02be5e 100755 --- a/dist/initramfs/reload +++ b/dist/initramfs/reload @@ -1,6 +1,6 @@ #!/bin/sh -ls -l /etc/elastio/dla/mnt/etc/elastio/dla/reload_* > /dev/null 2>&1 +ls /etc/elastio/dla/mnt/etc/elastio/dla/reload_* > /dev/null 2>&1 if [ "$?" = "0" ]; then FILES="/etc/elastio/dla/mnt/etc/elastio/dla/reload_*"