From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1XXuDe-0007ct-Tm for mharc-grub-devel@gnu.org; Sat, 27 Sep 2014 11:47:34 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXuDY-0007bZ-BH for grub-devel@gnu.org; Sat, 27 Sep 2014 11:47:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXuDT-0002fU-Mq for grub-devel@gnu.org; Sat, 27 Sep 2014 11:47:28 -0400 Received: from mail-la0-x236.google.com ([2a00:1450:4010:c03::236]:63666) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXuDT-0002eE-F4 for grub-devel@gnu.org; Sat, 27 Sep 2014 11:47:23 -0400 Received: by mail-la0-f54.google.com with SMTP id ty20so3505868lab.27 for ; Sat, 27 Sep 2014 08:47:17 -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=zKTypZMdMeZ+FssDHIeIb+P+7hNn5ycdIF+0ej294e0=; b=SeMDtlQD4vy0ZFuxgzYAUx8otDO+KaAgfmPqoaTiowNVkno/rkK1CwliRIkFMomhA+ RMSkFNJKOOOOYKbcz8I+J9HJCqzCEjnBVegA6AST5Vgtp7E19qWya3mSizhPNYR3q/R7 83zJsfmCH/1SAo+iv4D7J4A3CmFxJWDHhG0bubNgGrC1oyXZo2/I6ob0S+/KcvIEV2wb GuHiKqC4vRBMWajyZQTSKkviFIu9Tz+I51OdSmDqNdloiNGZuFIdsOczeZK6aUrN3Ewo erW+nSieLkmKUiLtZWmf0W561DzFJ9gFs+gXE5SxrtAouPgt8o/nvsUzOANigyd6ARym XkMQ== X-Received: by 10.152.27.200 with SMTP id v8mr27732690lag.53.1411832837217; Sat, 27 Sep 2014 08:47:17 -0700 (PDT) Received: from opensuse.site (ppp94-29-94-89.pppoe.spdop.ru. [94.29.94.89]) by mx.google.com with ESMTPSA id n7sm2981867lae.47.2014.09.27.08.47.15 for (version=SSLv3 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 27 Sep 2014 08:47:16 -0700 (PDT) Date: Sat, 27 Sep 2014 19:47:14 +0400 From: Andrei Borzenkov To: Arbiel Perlacremaz Subject: Re: Having the configuration file embedded into core.img look for the grub partition by its label Message-ID: <20140927194714.7a908fb0@opensuse.site> In-Reply-To: <5426DA46.1090902@gmx.fr> References: <54208B55.7060100@gmx.fr> <5420AC43.7060303@gmail.com> <54212B29.80907@gmx.fr> <20140923203734.1bf0eaca@opensuse.site> <5426DA46.1090902@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:c03::236 Cc: The development of GNU GRUB 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: Sat, 27 Sep 2014 15:47:33 -0000 =D0=92 Sat, 27 Sep 2014 17:39:50 +0200 Arbiel Perlacremaz =D0=BF=D0=B8=D1=88=D0=B5=D1= =82: > Hi > Le 23/09/2014 18:37, Andrei Borzenkov a =C3=A9crit : > > =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 looki= ng > >> for. > >> > >> 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 wa= nt > >> GRUB on my hard drive. > >> > > Well, use grub-mkimage then; you are completely free in adding your own > > embedded config file. > OK >=20 > However this raises two issues >=20 > 1) there is no grub-install parameter ( Did you accidentally omitted something? > >> Le 23/09/2014 01:09, Vladimir '=CF=86-coder/phcoder' Serbinenko a =C3= =A9crit : > >>> On 22.09.2014 22:49, Arbiel Perlacremaz wrote: > >>>> Hi > >>>> > >>>> A way I'm using to avoid any Window's reinstallation to overwrite GR= UB > >>>> in a multiboot environment is to install the later on the MBR of a U= SB > >>>> 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 dr= ive. > >>>> 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 modification= s as > >>>> Linux partitions, I do locate the grub.cfg file in that Windows > >>>> partition. However it would be more straightforward to locate the fi= le > >>>> into a Linux partition, and to have grub search this partition by it= s 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 > >> _______________________________________________ > >> Grub-devel mailing list > >> Grub-devel@gnu.org > >> https://lists.gnu.org/mailman/listinfo/grub-devel >=20