From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#20791: GuixSD: cryptsetup luksFormat hangs when udevd is running Date: Fri, 12 Jun 2015 19:33:32 +0200 Message-ID: <87fv5wg7bn.fsf@gnu.org> References: <20150612005243.7952ebe1@numenor> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53031) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3SqC-0002YK-07 for bug-guix@gnu.org; Fri, 12 Jun 2015 13:34:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z3SqA-0008Oj-7R for bug-guix@gnu.org; Fri, 12 Jun 2015 13:34:03 -0400 Received: from debbugs.gnu.org ([140.186.70.43]:37586) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3SqA-0008OS-3t for bug-guix@gnu.org; Fri, 12 Jun 2015 13:34:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z3Sq9-0007OA-Ue for bug-guix@gnu.org; Fri, 12 Jun 2015 13:34:01 -0400 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <20150612005243.7952ebe1@numenor> (Benz Schenk's message of "Fri, 12 Jun 2015 00:52:43 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Benz Schenk Cc: 20791-done@debbugs.gnu.org Benz Schenk skribis: > Setting up luks encrypted partitions with cryptsetup doesn't work when ud= evd is running. > > cryptsetup luksFormat got stuck waiting on some semaphore to turn to zero > > According to http://www.saout.de/pipermail/dm-crypt/2013-November/003619.= html this is a udev issue, so i killed udevd and after that it worked > > I assume it's some configuration issue with udev, but I don't really know= enough about this stuff to pinpoint where exactly the problem lies Indeed, we were missing the udev rules for device-mapper. Commit e1ad6bf fixes that (tested in a VM as produced as by =E2=80=98guix system vm gnu/system/install.scm=E2=80=99.) If you have a working Guix installation, you can try rebuilding the image by yourself from a checkout of Guix master, with something like: guix system disk-image --image-size=3D850MiB gnu/system/install.scm Alternately, as a workaround, you could to the installation in two steps: 1. Install without encrypted devices. 2. Boot the installed system and run =E2=80=98cryptsetup luksFormat=E2=80= =99. 3. Run =E2=80=98guix system reconfigure=E2=80=99 with the configuration t= hat you want. Thank you! Ludo=E2=80=99.