From f36b4d8e1d6c614f06e7dd5d895f533220689204 Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Mon, 30 Mar 2020 20:10:15 +0200 Subject: [PATCH] - never try to create luks volumes, it may lead to data loss, leave it to user --- rc.d/init.d/cryptsetup | 2 -- 1 file changed, 2 deletions(-) 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 -- 2.46.0