grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
From: Andrei Borzenkov <arvidjaar@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Cc: arbiel.perlacremaz@gmx.fr
Subject: Re: Having the configuration file embedded into core.img look for the grub partition by its label
Date: Tue, 23 Sep 2014 20:37:34 +0400	[thread overview]
Message-ID: <20140923203734.1bf0eaca@opensuse.site> (raw)
In-Reply-To: <54212B29.80907@gmx.fr>

В Tue, 23 Sep 2014 10:11:21 +0200
Arbiel Perlacremaz <arbiel.perlacremaz@gmx.fr> пишет:

> 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.
> 

Well, use grub-mkimage then; you are completely free in adding your own
embedded config file.

> 
> 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



  reply	other threads:[~2014-09-23 16:37 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-22 20:49 Having the configuration file embedded into core.img look for the grub partition by its label Arbiel Perlacremaz
2014-09-22 23:09 ` Vladimir 'φ-coder/phcoder' Serbinenko
2014-09-23  8:11   ` Arbiel Perlacremaz
2014-09-23 16:37     ` Andrei Borzenkov [this message]
2014-09-27 15:39       ` Arbiel Perlacremaz
2014-09-27 15:47         ` Andrei Borzenkov
2014-09-27 16:24         ` Arbiel Perlacremaz
2014-09-27 20:00       ` Arbiel Perlacremaz
2014-09-26 19:00     ` Vladimir 'φ-coder/phcoder' Serbinenko
2014-09-26 21:02       ` Arbiel Perlacremaz
2014-09-27  4:37         ` Andrei Borzenkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140923203734.1bf0eaca@opensuse.site \
    --to=arvidjaar@gmail.com \
    --cc=arbiel.perlacremaz@gmx.fr \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).