From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1XWCkC-0005GA-DN for mharc-grub-devel@gnu.org; Mon, 22 Sep 2014 19:10:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39985) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWCkA-0005De-6e for grub-devel@gnu.org; Mon, 22 Sep 2014 19:10:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XWCk9-0004Tz-73 for grub-devel@gnu.org; Mon, 22 Sep 2014 19:10:06 -0400 Received: from mail-we0-x236.google.com ([2a00:1450:400c:c03::236]:59471) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWCk9-0004K4-1E for grub-devel@gnu.org; Mon, 22 Sep 2014 19:10:05 -0400 Received: by mail-we0-f182.google.com with SMTP id u57so1825150wes.27 for ; Mon, 22 Sep 2014 16:09:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=n0eNzLpj4cMQgpCHcGL8x6DslKCz8lVpfpB0mBg+6SA=; b=GYGWbZ0J2GA9HRWhZOyb3tAt/r9L0C/GFmOaDWfMHXr8WE9/ut+AzERO4XRc6dVWi1 NPvFzuL1ivcLHcOgVi9C53hrBQs01hh81oqyWLx8juXq4gkcu9cRJ8aegneR+oHOhn2G jOgPnbMBAtMQz3BABGjr0HT+BlRtCeTF2djKUmbUAHuZOFcVS1aXFkzBi2l1SXoUeSbG /v1Qgkslu2aDXWJVnlBGeonalr30f2dob3tpBGcXX2m1bm9xD2NQ6bDZv9JjJ4rW7CXn xWOTj3fe9W7LWm0cNniwSNXUeOWBmxVquR8nYIGQCtEd7xdrmyC9aG/qHiXYjb+/csE4 n1+A== X-Received: by 10.194.60.240 with SMTP id k16mr5949231wjr.109.1411427399327; Mon, 22 Sep 2014 16:09:59 -0700 (PDT) Received: from ?IPv6:2a02:1205:501d:9350:863a:4bff:fe50:abc4? ([2a02:1205:501d:9350:863a:4bff:fe50:abc4]) by mx.google.com with ESMTPSA id ic8sm13823878wjb.25.2014.09.22.16.09.56 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Sep 2014 16:09:56 -0700 (PDT) Message-ID: <5420AC43.7060303@gmail.com> Date: Tue, 23 Sep 2014 01:09:55 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.0 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: Having the configuration file embedded into core.img look for the grub partition by its label References: <54208B55.7060100@gmx.fr> In-Reply-To: <54208B55.7060100@gmx.fr> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="lfWtIc00IE6VOw3sVSsH7OOS9iQnsixOf" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c03::236 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: Mon, 22 Sep 2014 23:10:07 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --lfWtIc00IE6VOw3sVSsH7OOS9iQnsixOf Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 22.09.2014 22:49, Arbiel Perlacremaz wrote: > Hi >=20 > A way I'm using to avoid any Window's reinstallation to overwrite GRUB > in a multiboot environment is to install the later on the MBR of a USB > key. That way, when booting with no key pluged, the PC boots into > Windows and when booting with the key pluged, the PC boots according to= > the choice of the user in the grub menu's. >=20 > I do locate the grub.cfg file in a partition of the internal hard drive= =2E > In such a situation, grub-install embeddes a config file which reads > something like >=20 > search.fs_uuid 367C9BBD7C9B75F9 root hd0,msdos1 > set prefix=3D($root)'/' >=20 > This is great. >=20 > However, any undesired modification by any piece of software of the > partition's uuid will prevent GRUB to find it and lead to a boot > failure. As the Windows partition is less prone to such modifications a= s > Linux partitions, I do locate the grub.cfg file in that Windows > partition. However it would be more straightforward to locate the file > into a Linux partition, and to have grub search this partition by its l= abel. >=20 > How could this be done ? If this can't presently be done, can it be > included in a future grub release ? use --boot-directory to place all files on usb stick and make it load any other grub.cfg you might want. >=20 > Regards >=20 > Arbiel >=20 > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel >=20 --lfWtIc00IE6VOw3sVSsH7OOS9iQnsixOf 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 iF4EAREKAAYFAlQgrEMACgkQmBXlbbo5nOvgHgD/XhsNR4DgQ//OSs2W1jgjJrxs Q/+/7bLaO7Xi+K58d2oA/RuGsihyJMvxeHYisU1ArXDfe7J0S1nPKOy+Vc5IFjar =pV3W -----END PGP SIGNATURE----- --lfWtIc00IE6VOw3sVSsH7OOS9iQnsixOf--