From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1YtD4p-00049L-0Q for mharc-grub-devel@gnu.org; Fri, 15 May 2015 06:42:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46225) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YtD4m-000493-6k for grub-devel@gnu.org; Fri, 15 May 2015 06:42:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YtD4i-0001fT-1l for grub-devel@gnu.org; Fri, 15 May 2015 06:42:44 -0400 Received: from smtprelay03.ispgateway.de ([80.67.31.37]:49950) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YtD4h-0001f6-Rt for grub-devel@gnu.org; Fri, 15 May 2015 06:42:39 -0400 Received: from [217.92.161.189] (helo=[192.168.42.88]) by smtprelay03.ispgateway.de with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.84) (envelope-from ) id 1YtD4B-0005t5-Gx for grub-devel@gnu.org; Fri, 15 May 2015 12:42:07 +0200 Message-ID: <5555CD85.4050804@pipping.org> Date: Fri, 15 May 2015 12:42:13 +0200 From: Sebastian Pipping User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.6.0 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: Future of installing GRUB to LVM volumes (and loop devices) References: <5548F5AB.4080305@pipping.org> <20150505203836.30e66cbc@opensuse.site> <554A0948.9050301@pipping.org> <20150506201645.492f1743@opensuse.site> <5551D8CF.8080905@pipping.org> <20150512144143.6f4713d0@opensuse.site> <5555BC53.9030308@pipping.org> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Df-Sender: aGFydHdvcmtAYmluZXJhLmRl X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.67.31.37 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: Fri, 15 May 2015 10:42:45 -0000 Hello Andrei, On 05/15/2015 11:34 AM, Andrei Borzenkov wrote: > On Fri, May 15, 2015 at 12:28 PM, Sebastian Pipping > wrote: >> >> I understand that some relations may be hard to impossible to detect. >> The cases that I have are plain parent-child relations, though. >> It would rock the house to get these cases covered again. >> >> (On a side note, text "unknown device type loop0" looks like a bug to me >> since "loop0" is not a type.) > > It comes from Open Firmware part. May be it should be downgraded to > Info. But as long as it happens in grub-probe only it is OK. my point was more about the text of the error message. >>>>> Half working solution would be to assume that it is always child map. >>>>> >>>>> Or you can take shortcut and assume that /dev/mapper/XXXXpY is >>>>> partition of /dev/mapper/XXX but you still will need to verify it. >>>>> >>>>> Patches are welcome. >>>> >>>> I am still wondering: how come it was working in GRUB 2.00 but now >>>> longer is? >>>> >>> >>> But by you said in previous message that HEAD works? Not sure how >>> though :) >> >> That referred to the '(hd0)'-parameter-with-device-map case, only. >> >> This patch to grml-debootstrap says best what has stopped working: >> https://github.com/hartwork/grml-debootstrap/commit/a705ff45c2d053b0d90ec51700e2d25a760106f3 >> > > Could you please describe your exact configuration that does not work > (including all devices and their relationships) and what does not > work? Sorry if you did it already but I somehow lost track here. Sure. The setup is a single plain partition in an LVM volume. The following commands reproduce the setup (in RAM if /tmp is tmpfs). With a plain LVM volume, the error is the same tough. # tmpfile="$(mktemp)" # echo "${tmpfile}" # truncate --size=$((100*1024**2)) "${tmpfile}" # loop_device_2="$(losetup --show -f "${tmpfile}")" # echo "${loop_device_2}" # vgcreate vg "${loop_device_2}" # lvcreate --name lv -l 100%free vg # sleep 1 # parted /dev/vg/lv --script mklabel msdos # parted /dev/vg/lv --script mkpart primary ext4 4m 100% # sleep 1 # mkfs.ext4 /dev/mapper/vg-lv1 # mkdir /mnt/lv-root # mount /dev/mapper/vg-lv1 /mnt/lv-root # mkdir /mnt/lv-root/boot # grub-install --boot-directory=/mnt/lv-root/boot /dev/mapper/vg-lv ; echo $? Installing for i386-pc platform. grub-install: error: disk `lvmid/KO9MVd-KNgN-Nbo0-RJb0-pGdK-K7lO-apdskW/rrvxSA-SFY6-P6gy-1jYv-0ims-RmyL-m1KZMB' not found. 1 Best, Sebastian