Return-Path: Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Sat, 27 Sep 2014 06:25:07 +0200 (CEST) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XXjZA-0008Nx-2N for dm-crypt@saout.de; Sat, 27 Sep 2014 06:25:04 +0200 Received: from 172.56.23.196 ([172.56.23.196]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 27 Sep 2014 06:25:04 +0200 Received: from frodowiz by 172.56.23.196 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 27 Sep 2014 06:25:04 +0200 From: frodowiz Date: Sat, 27 Sep 2014 04:20:30 +0000 (UTC) Message-ID: References: <1411000175.17610.0@smtp.gmail.com> <541AE1EB.5010201@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: Re: [dm-crypt] piping password to cryptsetup List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Konstantin Bläsi writes: i just wanted to say thank you to the replies. for some reason, possibly a race condition?, the problem dissapeared after i wrote this original post. seeing the replies helped me stick to the path i was on and voila!. echo "$pass" | cryptsetup --cipher aes-xts-plain --key-size 512 --hash sha512 --iter-time 10000 --use-urandom luksFormat "$container" works with "$container" and "$pass" defined earlier in a graphical dialog. thanks again for all your work on this. erik