From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1ZbAsZ-0003qS-JS for mharc-grub-devel@gnu.org; Sun, 13 Sep 2015 13:15:51 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38744) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbAsX-0003og-7Q for grub-devel@gnu.org; Sun, 13 Sep 2015 13:15:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZbAsT-0004N8-71 for grub-devel@gnu.org; Sun, 13 Sep 2015 13:15:49 -0400 Received: from mail-lb0-x22a.google.com ([2a00:1450:4010:c04::22a]:36285) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbAsS-0004N3-VH for grub-devel@gnu.org; Sun, 13 Sep 2015 13:15:45 -0400 Received: by lbcao8 with SMTP id ao8so57428158lbc.3 for ; Sun, 13 Sep 2015 10:15:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=t1guBNj7F7DXqbROJbTVx7bLOR9xxd99XHOokTIlaHM=; b=cFOu6T4IBuUPO067gbmziRZR8ywm1IfWXRJjfad28e0fnJg5G12KyYaVF6o9ZkwX0D JE/rp875UbpKd4s2T+LDuat+vRlB+11UtDftX/Gnnqpc4gQnl1TDyjZrDdSFmobKq6lx Sybjp4HbrQldgAcfLSxE20WAtxSK0s8hgVe3EK0hrkx5kSf+0KwT9VqFxKvlFztZ6IQj 0LLJHW3N6svY4L2NzouhCixeKYWxXSwaoT7PTBzuoVlshzzV+shX3wZHmAwb0j1VNcrU UcaBQzVUt9wK3xYLTaVM7MW89gORGZn9WpUvw/qPDcrtALGwlVi84aDrwJywGp+ivqyl WcfQ== X-Received: by 10.152.22.73 with SMTP id b9mr9242523laf.83.1442164543779; Sun, 13 Sep 2015 10:15:43 -0700 (PDT) Received: from [192.168.1.43] (ppp91-76-134-130.pppoe.mtu-net.ru. [91.76.134.130]) by smtp.gmail.com with ESMTPSA id j2sm235765lag.9.2015.09.13.10.15.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 13 Sep 2015 10:15:43 -0700 (PDT) Subject: Re: Fwd: LVM/BTRFS on LUKS unreadable To: The development of GNU GRUB References: <55DDF9BB.8050503@autoboot.org> From: Andrei Borzenkov Message-ID: <55F5AF3E.1070709@gmail.com> Date: Sun, 13 Sep 2015 20:15:42 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <55DDF9BB.8050503@autoboot.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::22a X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Sep 2015 17:15:50 -0000 26.08.2015 20:39, Klemens Nanni пишет: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 > > - -------- Forwarded Message -------- > Subject: LVM/BTRFS on LUKS unreadable > Date: Mon, 17 Aug 2015 23:24:32 +0000 > From: Autoboot > To: bug-grub@gnu.org > > Hello, > > GRUB 2.02~beta2 as of commit afd0f21b2027310fda52b00ac1b964041d39a363 > used as autoboot payload on a ThinkPad X201 here. > > After setting up LVM on LUKS and writing random test files on the disk, > GRUB2 opens the disk but cannot read it's content at (crypto0). > > Disk setup: > $ cryptsetup luksFormat /dev/sdb > $ cryptsetup open /dev/sdb test > $ pvcreate /dev/mapper/test > $ vgcreate test /dev/mapper/test > $ lvcreate test -L 50G -n root > $ mkfs.ext4 -L test_root /dev/mapper/test-root > $ mount /dev/mapper/test-root /mnt > $ dd if=/dev/urandom bs=1M count=20M of=/mnt/20M > > GRUB Shell: > (all modules incl. lvm properly loaded) > $ cryptomount (ahci0) I pushed fix that properly strips parenthesis from device name. Otherwise use cryptomount ahci0 it works. Thank you for report!