From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1XXcfV-00034N-FK for mharc-grub-devel@gnu.org; Fri, 26 Sep 2014 17:03:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51982) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXcfN-000337-NW for grub-devel@gnu.org; Fri, 26 Sep 2014 17:03:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXcfH-0002Po-QC for grub-devel@gnu.org; Fri, 26 Sep 2014 17:03:01 -0400 Received: from mout.gmx.net ([212.227.17.21]:52779) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXcfH-0002P7-Gp for grub-devel@gnu.org; Fri, 26 Sep 2014 17:02:55 -0400 Received: from [192.168.1.13] ([31.34.87.55]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0LvhC4-1YKw133MBI-017Qsr for ; Fri, 26 Sep 2014 23:02:46 +0200 Message-ID: <5425D474.5010503@gmx.fr> Date: Fri, 26 Sep 2014 23:02:44 +0200 From: Arbiel Perlacremaz User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 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> <5420AC43.7060303@gmail.com> <54212B29.80907@gmx.fr> <5425B7D7.2010404@gmail.com> In-Reply-To: <5425B7D7.2010404@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:UHU50l26ybSZU8XtyOo9/3nKsXfEeboYoaUtqGxYZXM8OyKIMYM uEOMUMoXA15Xup0/m0cKXPqIlqYWIEqw98+OITXfwaldnCJT0W7CV8QACB96J4gYplBp3Qd 8yhGFVAiOj20+zLG4g9IQ7DRiQ4srJmhKDSEHtLHiAY8L7Yw+VcmqTOZlohLFU/MwasGVj3 ky2A3tQZhaPbba3eKlnLw== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.21 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, 26 Sep 2014 21:03:07 -0000 Hi Le 26/09/2014 21:00, Vladimir 'φ-coder/phcoder' Serbinenko a écrit : > On 23.09.2014 10:11, Arbiel Perlacremaz wrote: >> Having the grub directory on the external device is not what I'm looking >> 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 want >> 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 ? And how do I know that a grub module has been modified ? >> Le 23/09/2014 01:09, Vladimir 'φ-coder/phcoder' Serbinenko a écrit : >>> 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 drive. >>>> In such a situation, grub-install embeddes a config file which reads >>>> something like >>>> >>>> search.fs_uuid 367C9BBD7C9B75F9 root hd0,msdos1 >>>> set prefix=($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 >> >> _______________________________________________ >> 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