From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1XXjm2-0000Sf-8Q for mharc-grub-devel@gnu.org; Sat, 27 Sep 2014 00:38:22 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54605) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXjlv-0000Re-4C for grub-devel@gnu.org; Sat, 27 Sep 2014 00:38:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXjlq-000874-BG for grub-devel@gnu.org; Sat, 27 Sep 2014 00:38:15 -0400 Received: from mail-la0-x229.google.com ([2a00:1450:4010:c03::229]:46650) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXjlp-00086k-UI for grub-devel@gnu.org; Sat, 27 Sep 2014 00:38:10 -0400 Received: by mail-la0-f41.google.com with SMTP id pn19so187200lab.28 for ; Fri, 26 Sep 2014 21:38:03 -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=KmM9GrUzM5wyc1ioYDMa7Uw4DD8zpC6sCgnZ8PiuoG0=; b=vgxlxLE52QkJ2VLy3AtJbWgEX4d6+OzQNp5sxGG9RW626HfUj8338WNMRiaBUlmR2M ycDd+QtvWMl1lcz45jkqqTUKuoNRyeK4Z5lmm7SIM1KC63FrXphuLOPWwT6cq+EKTc8T 8ZchtPCpKIaEwJ1eYXL+rIeq70dHUiL+hG2yPPXk6ZH3WhQXqc+QrcyakT9I+wKuFLv+ g7u0KQDx/vEO5jxuffVeQx4R2CtggvNm+Ps/R0s96AWTLFmrX21nNCqGMElvb1jd4y/e xKpSr633x5oYv0zS1Tb40gX8lEJabMYxJUrKU1NiTgMP69XnUtdD+938l1N7Fi5A+S6y 8uvg== X-Received: by 10.152.198.204 with SMTP id je12mr25158853lac.52.1411792683820; Fri, 26 Sep 2014 21:38:03 -0700 (PDT) Received: from opensuse.site (ppp94-29-94-89.pppoe.spdop.ru. [94.29.94.89]) by mx.google.com with ESMTPSA id z4sm2518298laz.39.2014.09.26.21.38.02 for (version=SSLv3 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 26 Sep 2014 21:38:02 -0700 (PDT) Date: Sat, 27 Sep 2014 08:37:59 +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: <20140927083759.77fb9362@opensuse.site> In-Reply-To: <5425D474.5010503@gmx.fr> References: <54208B55.7060100@gmx.fr> <5420AC43.7060303@gmail.com> <54212B29.80907@gmx.fr> <5425B7D7.2010404@gmail.com> <5425D474.5010503@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::229 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: Sat, 27 Sep 2014 04:38:20 -0000 =D0=92 Fri, 26 Sep 2014 23:02:44 +0200 Arbiel Perlacremaz =D0=BF=D0=B8=D1=88=D0=B5=D1= =82: > Hi >=20 > Le 26/09/2014 21:00, Vladimir '=CF=86-coder/phcoder' Serbinenko a =C3=A9c= rit : > > On 23.09.2014 10:11, Arbiel Perlacremaz wrote: > >> 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. > >> > > Upgrading modules without rerunning grub-install on all devices is not > > supported. It may work for few revisions but when core functions change > > it will break. > Grub and grub's modules are located in none external device. They are > located on a single partition on my hard disk. On the external devices > are only recorded the grub bootloader in the MBR and core.img in the gap > between the MBR and the first partition. > Do you mean that in this situation, I will have to rerun grub-install on > all USB devices any time a grub module has been modified ?=20 Any time you update grub. > And how do I > know that a grub module has been modified ? In general you do not know that's the reason you should always do full installation so core.img matches on-disk modules. Actually I was thinking about portable way to chainload grub (mostly in relation to using Windows bootloader to boot Linux). I think that it could be done by creating core.img that includes multiboot and simply multiboots core.img from disk. That avoids changed ABI problem. Vladimir, are you interested in adding tool to generate such core.img? Either as option for grub-install or separate binary? > >> 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 > >> > > > > > > > > _______________________________________________ > > 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