From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-x229.google.com (mail-wi0-x229.google.com [IPv6:2a00:1450:400c:c05::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Mon, 19 Oct 2015 09:06:49 +0200 (CEST) Received: by wijp11 with SMTP id p11so85363800wij.0 for ; Mon, 19 Oct 2015 00:06:49 -0700 (PDT) Received: from [10.34.26.80] (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id x16sm13720639wia.7.2015.10.19.00.06.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Oct 2015 00:06:48 -0700 (PDT) References: <20151019062122.GA21491@tansi.org> From: Milan Broz Message-ID: <56249687.9060404@gmail.com> Date: Mon, 19 Oct 2015 09:06:47 +0200 MIME-Version: 1.0 In-Reply-To: <20151019062122.GA21491@tansi.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] dmsetup or cryptsetup hangs in the initrd List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de I guess you are missing dmsetup udev rules in initramfs or something like that. (Hint: just add --debug to cryptsetup and it will show where is is waiting.) You should probably use systemd to activate crypt devices in RHEL7 anyway. On 10/19/2015 08:21 AM, Arno Wagner wrote: >> Obviously, this has all been stripped down to make it as simple as >> possible. Sorry for the hard coding. If you want to test it, you need to >> provide a /dev/sdb1 partition that is at least 2G. If you comment out the >> `exit 0' in go.sh it will setup the partition for you. Using hardcoded sdb1 is wrong, it will overwrite other disk if you e.g. forget USB drive plugged in. Use some hw id symlink. >> Note that if 95dmcrypt.sh has either the dmsetup or the 2 cryptsetup lines >> commented in, it will hang the machine. Run dracut shell, debug it by hand. Milan