summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2024-06-13 20:22:22 +0200
committerSimon Rettberg2024-06-13 20:22:22 +0200
commit6cca8b1b0b57db30feac2be774d7525dce8c0594 (patch)
tree37fc803fceef5f3d459a26d278e3ec43eb62f7fc
parent[dnbd3root] Add missing .service (diff)
downloadsystemd-init-6cca8b1b0b57db30feac2be774d7525dce8c0594.tar.gz
systemd-init-6cca8b1b0b57db30feac2be774d7525dce8c0594.tar.xz
systemd-init-6cca8b1b0b57db30feac2be774d7525dce8c0594.zip
[slx-dmsetup] Kill stray line
-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"