From: Aesir <aesir.ml@gmail.com>
To: grub-devel@gnu.org
Subject: Re: Set an LVM volume as default root device
Date: Thu, 5 Mar 2009 14:55:18 +0100 [thread overview]
Message-ID: <20090305145518.20e2e18a.aesir.ml@gmail.com> (raw)
In-Reply-To: <20090304210538.GF31201@thorin>
On Wed, 4 Mar 2009 22:05:38 +0100
Robert Millan <rmh@aybabtu.com> wrote:
> On Sat, Feb 28, 2009 at 06:55:09PM +0100, Aesir wrote:
> > Hi everyone,
> >
> > while discovering the beauties of grub2 I'm trying to get a working setup with /boot partition on LVM. Unfortunately until now to boot this system I had to set root device and prefix "by hand" from the rescue shell. In fact, while the working values should be
> >
> > root (vg0-boot)
> > prefix (vg0-boot)/grub
> >
> > the ones that grub2 uses by default are
> >
> > root (hd0)
> > prefix (hd0)/grub
> >
> > I haven't figured out yet how to change that default value, even reading grub-setup help I couldn't find it out. I would be really pleased if someone could help me.
> >
> > Sorry if this is a silly question, hope for your comprehension :-)
>
> grub-install / grub-mkconfig should already DTRT. Are you using those to
> install and generate grub.cfg ?
>
> --
> Robert Millan
>
> The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
> how) you may access your data; but nobody's threatening your freedom: we
> still allow you to remove your data and not access it at all."
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
Thanks for the reply.
I realized what the problem was.
The commands I was using were:
grub-mkimage --output=/boot/grub/core.img ext2 _chain pc gpt biosdisk lvm --prefix=/grub
and
grub-setup --root-device='(vg0-boot)' /dev/sda
Obviously my fault was to indicate only the relative path in the --prefix option instead of '(vg0-boot)/grub'. I mistakenly tought that the --root-device option in grub-setup served for that purpose.
Now everything is perfectly working,
Thanks again.
--
Maurizio Longari
prev parent reply other threads:[~2009-03-05 13:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-28 17:55 Set an LVM volume as default root device Aesir
2009-03-04 21:05 ` Robert Millan
2009-03-05 13:55 ` Aesir [this message]
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=20090305145518.20e2e18a.aesir.ml@gmail.com \
--to=aesir.ml@gmail.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.