summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmodules.d/slx-dmsetup/hooks/dmsetup-slx-device1
1 files changed, 0 insertions, 1 deletions
diff --git a/modules.d/slx-dmsetup/hooks/dmsetup-slx-device b/modules.d/slx-dmsetup/hooks/dmsetup-slx-device
index ac965175..0888e97c 100755
--- a/modules.d/slx-dmsetup/hooks/dmsetup-slx-device
+++ b/modules.d/slx-dmsetup/hooks/dmsetup-slx-device
@@ -162,7 +162,6 @@ encrypt_device() {
modprobe dm-crypt || echo "$0: dm-crypt loading failed, maybe builtin?"
[ -b "$1" ] || return 1
[ -n "$2" ] || return 1
- [ -z "$3" ] &&
local dev_size="$( blockdev --getsz "$1" )"
if [ -z "$dev_size" ]; then
echo "$0: Cannot encrypt non-existent device $1"