From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1QZvyX-0005Tx-6r for mharc-grub-devel@gnu.org; Thu, 23 Jun 2011 22:18:29 -0400 Received: from eggs.gnu.org ([140.186.70.92]:53403) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZvyU-0005TY-81 for grub-devel@gnu.org; Thu, 23 Jun 2011 22:18:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZvyS-0003bH-VJ for grub-devel@gnu.org; Thu, 23 Jun 2011 22:18:26 -0400 Received: from mail-yi0-f41.google.com ([209.85.218.41]:58419) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZvyS-0003b4-Dn for grub-devel@gnu.org; Thu, 23 Jun 2011 22:18:24 -0400 Received: by yia13 with SMTP id 13so1287497yia.0 for ; Thu, 23 Jun 2011 19:18:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=PmC1Egz6g+3HXeutS+1Xcs+DXYBVO+7bD0Z8n+rl3PI=; b=CYUeMmkHsv4o74ajytoU82SnLLGNakEbZsVxBqq6BHGCSCBYps4MqmKY3LFHWW2bfT hKYBDe/cC1VM8mO+H/9J1l2lWhOvqKQtMeOTjZyuazsVGZkRDYXBtkQ0C84tcqau7e8j BMmbxiYXK7Nty6qWN6uCAczKwxPRF7z4MFjX8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=tVLgeUs2BvNQeE0voMZ3b/zw7fZnghfFf/13UELOjw0qk38gWI8IuDuDK/5dLTW5yT +PdtQ6uQ17fQpn6TRFIA0m+at2eeIRy+L0gWqfum7z0RSKjqE4CgWGqorT7zsLANH3lu qdwhy9YR9aWatTjlw8yNUdZBGgAA7b7OLxHNU= Received: by 10.90.2.6 with SMTP id 6mr3132146agb.7.1308881903069; Thu, 23 Jun 2011 19:18:23 -0700 (PDT) Received: from [192.168.0.75] (cpe-72-181-111-242.satx.res.rr.com [72.181.111.242]) by mx.google.com with ESMTPS id e4sm1434388yhm.78.2011.06.23.19.18.21 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 23 Jun 2011 19:18:21 -0700 (PDT) Message-ID: <4E03F3EC.7010102@gmail.com> Date: Thu, 23 Jun 2011 21:18:20 -0500 From: Bruce Dubbs User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.16) Gecko/20080722 SeaMonkey/1.1.11 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: grub 1.99 configuration References: <4DF4243D.4050108@gmail.com> <4E03DAE9.70303@gmail.com> In-Reply-To: <4E03DAE9.70303@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.218.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: Fri, 24 Jun 2011 02:18:27 -0000 Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 12.06.2011 04:28, Bruce Dubbs wrote: >> I'm trying to manually run grub-mkconfig to establish grub-1.99 >> installation instructions for Linux From Scratch. >> >> I am getting: >> >> grub-mkconfig -o /boot/grub/grub.cfg >> /usr/sbin/grub-probe: error: cannot stat `/dev/root' >> >> Doing some investigating grub-mkconfig is running: >> /usr/sbin/grub-probe --target=device / >> >> Drilling down, grub-probe is doing: >> device_name = grub_guess_root_device (path); >> >> Which in turn is doing: >> grub_find_root_device_from_mountinfo( "/", NULL ); >> >> This is reading /proc/self/mountinfo. The problem here is that this >> file does not give the device, but specifies /dev/root: >> >> 13 1 8:15 / / rw,relatime - ext3 /dev/root >> rw,errors=continue,barrier=0,data=writeback >> >> The kernel is 2.6.39.1, but 2.6.37 seems to give the same thing. >> grub-probe should be able to detect /dev/sda15, but fails on newer >> kernels. >> >> grub-probe for grub-1.98 works fine. A grep there shows no use of >> /proc/self/mountinfo. >> >> Suggestions? >> > update either udev or grub. normally /dev/root should be a symlink. > Newer grub-probe can cope with some other arrangements as well Well I'm using udev-171. That is the most recent version. We don't like to non-release package versions in LFS, but we do occasionally patch files. I don't know when /dev/root became a 'device'. Udev doesn't create it. We also don't use an initrd. That's not needed when you know in advance what your hardware configuration is. I did work around the problem by manually creating the symlink. I do not know of anything other than GRUB that needs it, but I don't use lvm. In any case, I don't think GRUB should choke because /dev/root is missing. -- Bruce