From 4ded33d34505af19ddf19bfa125b5e6c243ebd94 Mon Sep 17 00:00:00 2001
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
Date: Thu, 26 Nov 2020 12:56:03 +0100
Subject: [PATCH] crypt: allow encrypted_dev to be symlink to support using
devices in /dev/disk/... or UUID
---
heartbeat/crypt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/heartbeat/crypt b/heartbeat/crypt
index 7d0a5607c..3ca28b92d 100755
--- a/heartbeat/crypt
+++ b/heartbeat/crypt
@@ -177,7 +177,7 @@ crypt_validate_all() {
esac
esac
fi
- if [ ! -b "$encrypted_dev" ]; then
+ if [ ! -b "$encrypted_dev" ] && [ ! -L "$encrypted_dev" ]; then
ocf_exit_reason "Encrypted device $encrypted_dev not accessible"
return $OCF_ERR_ARGS
fi