Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvJjl-0000ZO-6X for mharc-grub-devel@gnu.org; Mon, 04 Jun 2007 17:05:13 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvJjj-0000So-IZ for grub-devel@gnu.org; Mon, 04 Jun 2007 17:05:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvJji-0000PO-Lx for grub-devel@gnu.org; Mon, 04 Jun 2007 17:05:11 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvJji-0000Ox-Es for grub-devel@gnu.org; Mon, 04 Jun 2007 17:05:10 -0400 Received: from neonescio.viaisn.org ([82.94.249.43]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvJjh-0004X1-Ut for grub-devel@gnu.org; Mon, 04 Jun 2007 17:05:10 -0400 Received: from dijkstra.dekkers.cx ([2001:960:7a0:0:213:d4ff:fe9c:2487] ident=Debian-exim) by neonescio.viaisn.org with esmtpsa (TLS-1.0:RSA_AES_256_CBC_SHA1:32 CV=0) (Exim 4.63 #1) id 1HvJje-0001Ri-KD; Mon, 04 Jun 2007 23:05:06 +0200 Received: from localhost ([127.0.0.1] helo=dijkstra.dekkers.cx ident=jeroen) by dijkstra.dekkers.cx with esmtp (Exim 4.63) (envelope-from ) id 1HvJjd-0005sO-Lz; Mon, 04 Jun 2007 23:05:05 +0200 Date: Mon, 04 Jun 2007 23:05:05 +0200 Message-ID: <878xazqvlq.wl@dekkers.cx> From: Jeroen Dekkers To: Robert Millan , 427289@bugs.debian.org In-Reply-To: <20070604203012.GA19433@aragorn> References: <87bqfyhtp7.fsf@gismo.pca.it> <20070603213725.GA10192@aragorn> <87abvfqy31.wl@dekkers.cx> <20070604203012.GA19433@aragorn> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.7 Emacs/22.0.95 (x86_64-pc-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-detected-kernel: Linux 2.6 (newer, 3) Cc: The development of GRUB 2 , Luca Capello Subject: Re: Bug#427289: more LVM stuff (Re: Bug#427289: grub-probe: error: unknown device when / is an encrypted LVM) X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 21:05:11 -0000 At Mon, 4 Jun 2007 22:30:12 +0200, Robert Millan wrote: > > On Mon, Jun 04, 2007 at 10:11:30PM +0200, Jeroen Dekkers wrote: > > At Sun, 3 Jun 2007 23:37:25 +0200, > > Robert Millan wrote: > > > Here's another report with issues about LVM. I notice the device name is > > > different than previous ones (note: device.map only has /dev/sda). > > > > The problem seems to be that grub-install is probing for things > > outside of /boot. GRUB shouldn't use anything outside of /boot to > > start. > > update-grub calls grub-probe a few times, in different places. Some of them > could be avoided, but at least these appear to be necessary: > > # Device containing our userland. Typicaly used for root= parameter. > GRUB_DEVICE="`grub-probe --target=device /`" > > # Filesystem for the device containing our userland. Used for stuff like > # choosing Hurd filesystem module. > GRUB_FS="`grub-probe --target=fs /`" > > See also 00_header.in for code that might scan /usr/share/ in search of > unifont. If e.g. /usr is a separate partition, grub needs to know that > somehow to load the font later. GRUB shouldn't load anything from any other partition than /boot. The whole reason that we have /boot partitions is that it might be possible that the rest isn't readable by GRUB. The reason we have grub-probe is to find out which modules need to be in core.img. You're currently using grub-probe for other things and that isn't always going to work. Grub-probe won't be able to parse encrypted LVM volumes for example, and thus grub-probe --target=fs / is never going to work if your / is encrypted. Jeroen Dekkers