Received: from list by lists.gnu.org with archive (Exim 4.71) id 1QChBc-0007fc-5X for mharc-grub-devel@gnu.org; Wed, 20 Apr 2011 19:51:56 -0400 Received: from eggs.gnu.org ([140.186.70.92]:53008) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QChBZ-0007fL-EX for grub-devel@gnu.org; Wed, 20 Apr 2011 19:51:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QChBY-0002wW-Ga for grub-devel@gnu.org; Wed, 20 Apr 2011 19:51:53 -0400 Received: from 60-242-66-41.static.tpgi.com.au ([60.242.66.41]:52824 helo=fs.beware.dropbear.id.au) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QChBW-0002eO-GK for grub-devel@gnu.org; Wed, 20 Apr 2011 19:51:52 -0400 Received: from [10.0.0.2] (sibyl.beware.dropbear.id.au [10.0.0.2]) by fs.beware.dropbear.id.au (8.14.4/8.14.4) with ESMTP id p3KN9wRs030977 for ; Thu, 21 Apr 2011 08:40:01 +0930 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=beware.dropbear.id.au; s=dk1; t=1303341001; bh=Z4MFgBXlnkBLa1rAU/wTx+v6pHJTaih7/2QFDiEgnUs=; h=Subject:From:To:Content-Type:Date:Message-ID:Mime-Version: Content-Transfer-Encoding; b=IYXSaCOQcT2nJJ0rECuEOIz2OVNdZXsRdSVjnx7b6Fx5EZopnar7GUlt67QYqnivH Fd3HXojXGl8l9jfdROw0A== Subject: grub-probe can't find device (regression) Bug #33133 From: Ian Dall To: grub-devel@gnu.org Content-Type: text/plain; charset="ISO-8859-1" Date: Thu, 21 Apr 2011 08:39:58 +0930 Message-ID: <1303340998.3182.79.camel@sibyl.beware.dropbear.id.au> Mime-Version: 1.0 X-Mailer: Evolution 2.30.2 (2.30.2-4.fc13) Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.3 (fs.beware.dropbear.id.au [10.0.0.1]); Thu, 21 Apr 2011 08:40:01 +0930 (CST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 60.242.66.41 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: Wed, 20 Apr 2011 23:51:54 -0000 I have reported bug #33133 in savannah. The issue is that "grub-probe -v --target=device /tmp/root/boot" fails in current trunk. The issue appears to have been introduced in revision 3214 into grub/grub-core/kern/emu/getroot.c:grub_find_root_device_from_mountinfo(). /tmp for me is a tmpfs. /tmp/root has mounted on it a USB pen (/dev/sdd1). Steppign through with gdb, it seems that the list of entries gets created properly, but around line 209, there is something curious: if (entries[i].major != 0) continue; /* not a virtual device */ which I can't understand. Its effect is to always skip over mount points for real devices. I'm not really sure I completely understand what this virtual device work around is. But may this whole test is just bogus. Why not the "lowest" mount enclosing the path? Regards, Ian -- Ian Dall