]> TLD Linux GIT Repositories - rc-scripts.git/commitdiff
- never try to create luks volumes, it may lead to data loss, leave it to user
authorMarcin Krol <hawk@tld-linux.org>
Mon, 30 Mar 2020 18:10:15 +0000 (20:10 +0200)
committerMarcin Krol <hawk@tld-linux.org>
Mon, 30 Mar 2020 18:10:15 +0000 (20:10 +0200)
rc.d/init.d/cryptsetup

index e2ff60efc91dad66ae5117764aec445c5e7dcd9a..263a39cb4ed8b71ec1d51d853571bc6995da8be9 100755 (executable)
@@ -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