From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1XWT6B-00060E-3T for mharc-grub-devel@gnu.org; Tue, 23 Sep 2014 12:37:55 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWT65-0005rW-5S for grub-devel@gnu.org; Tue, 23 Sep 2014 12:37:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XWT60-00071n-A4 for grub-devel@gnu.org; Tue, 23 Sep 2014 12:37:49 -0400 Received: from mail-lb0-x22e.google.com ([2a00:1450:4010:c04::22e]:56188) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWT60-000715-13 for grub-devel@gnu.org; Tue, 23 Sep 2014 12:37:44 -0400 Received: by mail-lb0-f174.google.com with SMTP id l4so9084037lbv.19 for ; Tue, 23 Sep 2014 09:37:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=g4lqyVe18Uv7pMlUbiQVqDVCXNun7jIcuvsx2E+OZVA=; b=Voq43De7IABCL+vmanr7/MsehKCSvsEZEqZu7En0816/JnwtQZnQa1O3AfHSaXhIqm plF7N74tzN2ITurhJ6wrMVkXFEMjvpUv4OKfEJuMemAvmlEpw5LpkhNtAM12+IzVFNtC PB7BbbaLu6d45ztOipu2M8rHE7VKuzUg2FqBePH21A1XQHozAxBWkALu2j8EA3WUp7ZQ sc5giWVGiFvhy6RkvVARYaeXojPxRGne2ZevSx1f50PdaqwD4dyM8mfPYRj2DFTsxUKM s79wvG1kLzmarUQBk0I7Rh1PkCvvGbZoAFK2VWX/DiPaNmpZcChLxOmzgzelXvpbA46p XG0w== X-Received: by 10.112.200.134 with SMTP id js6mr872805lbc.0.1411490257862; Tue, 23 Sep 2014 09:37:37 -0700 (PDT) Received: from opensuse.site (ppp94-29-94-89.pppoe.spdop.ru. [94.29.94.89]) by mx.google.com with ESMTPSA id mn4sm4972598lbb.4.2014.09.23.09.37.36 for (version=SSLv3 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 23 Sep 2014 09:37:37 -0700 (PDT) Date: Tue, 23 Sep 2014 20:37:34 +0400 From: Andrei Borzenkov To: The development of GNU GRUB Subject: Re: Having the configuration file embedded into core.img look for the grub partition by its label Message-ID: <20140923203734.1bf0eaca@opensuse.site> In-Reply-To: <54212B29.80907@gmx.fr> References: <54208B55.7060100@gmx.fr> <5420AC43.7060303@gmail.com> <54212B29.80907@gmx.fr> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.23; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::22e Cc: arbiel.perlacremaz@gmx.fr 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: Tue, 23 Sep 2014 16:37:53 -0000 =D0=92 Tue, 23 Sep 2014 10:11:21 +0200 Arbiel Perlacremaz =D0=BF=D0=B8=D1=88=D0=B5=D1= =82: > Having the grub directory on the external device is not what I'm looking > for. >=20 > I indeed use several external devices and I've installed GRUB on each of > them so that it is always available, whatsoever my configuration is. To > avoid confusion when updating GRUB, all my fstab files mount a unique > directory, always the same, on /boot/grub. This is the reason why I want > GRUB on my hard drive. >=20 Well, use grub-mkimage then; you are completely free in adding your own embedded config file. >=20 > Le 23/09/2014 01:09, Vladimir '=CF=86-coder/phcoder' Serbinenko a =C3=A9c= rit : > > On 22.09.2014 22:49, Arbiel Perlacremaz wrote: > >> Hi > >> > >> 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. > >> > >> I do locate the grub.cfg file in a partition of the internal hard driv= e. > >> In such a situation, grub-install embeddes a config file which reads > >> something like > >> > >> search.fs_uuid 367C9BBD7C9B75F9 root hd0,msdos1 > >> set prefix=3D($root)'/' > >> > >> This is great. > >> > >> 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 = as > >> 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 = label. > >> > >> 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. > >> Regards > >> > >> Arbiel > >> > >> _______________________________________________ > >> Grub-devel mailing list > >> Grub-devel@gnu.org > >> https://lists.gnu.org/mailman/listinfo/grub-devel > >> > > > > > > > > _______________________________________________ > > Grub-devel mailing list > > Grub-devel@gnu.org > > https://lists.gnu.org/mailman/listinfo/grub-devel >=20 >=20 > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel