From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1QZwDR-0007I8-Ih for mharc-grub-devel@gnu.org; Thu, 23 Jun 2011 22:33:53 -0400 Received: from eggs.gnu.org ([140.186.70.92]:48568) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZwDN-0007Hb-Sg for grub-devel@gnu.org; Thu, 23 Jun 2011 22:33:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZwDL-0005WP-SA for grub-devel@gnu.org; Thu, 23 Jun 2011 22:33:49 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:60373) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZwDL-0005WJ-Eu for grub-devel@gnu.org; Thu, 23 Jun 2011 22:33:47 -0400 Received: by wwf22 with SMTP id 22so2004119wwf.30 for ; Thu, 23 Jun 2011 19:33:46 -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:x-enigmail-version:content-type; bh=jnEUdaRpr3kbbcGxAL0yMTi06wsW+lljySE/G5XcB5E=; b=oKfmfqZjqz5EXPqQsuNPRkXPgedrV2x9loCWU9X0y/+LVGgvYAIF9hgFYk+9gVqpNk xE1usrqI1h2arLeX2ysp3aw4JqyI7tPtUw9yl99oY0oHHbhcg3vnkLTh2p1LwAO+y5pt vbOmzghbpfGommy+6YI+OvwfYn1IdkMxfadFU= 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:x-enigmail-version:content-type; b=ibmvxvWeNYMKg0JBldYPqblWjz2jW/pp4bJiBVEm1+lQ94ai3tCalZpbjkotxL7uF/ jrREtZ5KLdnrySHKnRY5AakujmrYjhi9YLIXm8o2r2PuOegmDjlicYGIuaUA0MYQCgsY NMMsuiSPwBX6uBJiiO1AD0ZZ4yqX8jwLZE/6o= Received: by 10.227.207.196 with SMTP id fz4mr2595055wbb.42.1308882826322; Thu, 23 Jun 2011 19:33:46 -0700 (PDT) Received: from debian.x201.phnet (32-1.203-62.cust.bluewin.ch [62.203.1.32]) by mx.google.com with ESMTPS id fe4sm855208wbb.28.2011.06.23.19.33.44 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 23 Jun 2011 19:33:45 -0700 (PDT) Message-ID: <4E03F787.6000208@gmail.com> Date: Fri, 24 Jun 2011 04:33:43 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110606 Iceowl/1.0b2 Icedove/3.1.10 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: grub 1.99 configuration References: <4DF4243D.4050108@gmail.com> <4E03DAE9.70303@gmail.com> <4E03F3EC.7010102@gmail.com> In-Reply-To: <4E03F3EC.7010102@gmail.com> X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enigD8181ECE3C1D2272062BCD5E" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.49 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:33:51 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigD8181ECE3C1D2272062BCD5E Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 24.06.2011 04:18, Bruce Dubbs wrote: > Vladimir '=CF=86-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=3Ddevice / >>> >>> Drilling down, grub-probe is doing: >>> device_name =3D 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=3Dcontinue,barrier=3D0,data=3Dwriteback >>> >>> 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= =2E > > In any case, I don't think GRUB should choke because /dev/root is > missing. > it's fixed now but handling these cases requires to scan /dev to find the matching device based on major/minor pair which is slower, sometimes much slower. > -- Bruce > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enigD8181ECE3C1D2272062BCD5E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAk4D94cACgkQNak7dOguQgkpwgD+JJEM1xnf/KZeKSSfvz58RB6I kjKkFSK1gMmsqbhYQJUA/i/NhMDxSsDf3UEAop/kjhVrLFO/3WwQXnOveoCl7Xqx =3Kin -----END PGP SIGNATURE----- --------------enigD8181ECE3C1D2272062BCD5E--