From: Marcin Krol Date: Mon, 30 Mar 2020 18:10:15 +0000 (+0200) Subject: - never try to create luks volumes, it may lead to data loss, leave it to user X-Git-Tag: 0.5.2~1 X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=f36b4d8e1d6c614f06e7dd5d895f533220689204;p=rc-scripts.git - never try to create luks volumes, it may lead to data loss, leave it to user --- diff --git a/rc.d/init.d/cryptsetup b/rc.d/init.d/cryptsetup index e2ff60e..263a39c 100755 --- a/rc.d/init.d/cryptsetup +++ b/rc.d/init.d/cryptsetup @@ -115,8 +115,6 @@ init_crypto() { nls "%s: options are invalid for LUKS partitions, ignoring them" "$dst" fi /sbin/cryptsetup ${key:+-d $key} luksOpen "$src" "$dst" <&1 - else - /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null fi rc=$? if [ $rc -ne 0 ]; then