From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LfE2d-000723-CB for mharc-grub-devel@gnu.org; Thu, 05 Mar 2009 08:55:15 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LfE2b-0006zy-Ib for grub-devel@gnu.org; Thu, 05 Mar 2009 08:55:13 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LfE2a-0006xr-CK for grub-devel@gnu.org; Thu, 05 Mar 2009 08:55:12 -0500 Received: from [199.232.76.173] (port=52277 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LfE2a-0006xS-54 for grub-devel@gnu.org; Thu, 05 Mar 2009 08:55:12 -0500 Received: from mail-bw0-f172.google.com ([209.85.218.172]:60214) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LfE2Z-0001x8-KJ for grub-devel@gnu.org; Thu, 05 Mar 2009 08:55:11 -0500 Received: by bwz20 with SMTP id 20so3234185bwz.42 for ; Thu, 05 Mar 2009 05:55:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=OPnHY//FfVmKtGwderkvfCNRjG+Tk9vq0F/Uv/BnMUM=; b=w5wtWWfvtd2e6lx+YWaW+QpRoawxf0H/oUyNsuCsKHBvM0+7y7VMYID+gNZBTsOSR5 JWvzLWHhsj/UqCoI2nsd0M6xAQMqd4GjfrHsQThZqhuUqnKeL/5XIDoc+S78E5DXKkLf nP1747JWKRgfpgTQ2iBDm1/j4/zQoIXTGZWcM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=Tmp+rq5pcBMkOBF7SlFCfyy0aVGoP7wNkv8/lMTNSNBX+MYjF5TC3kGMzrKEL2mgFm BaWJvc1yIbbelO+/vAWa9gCQbVd0o7Ds4V8DoGOdMd+ujl8PQ/y0blkyTHMKslnYRWmT jEDBtmUci9taOTs3zH9kdFZ6LE+X20LbubjhE= Received: by 10.223.110.3 with SMTP id l3mr975419fap.48.1236261307750; Thu, 05 Mar 2009 05:55:07 -0800 (PST) Received: from arch.homenet.telecomitalia.it (host232-145-dynamic.54-79-r.retail.telecomitalia.it [79.54.145.232]) by mx.google.com with ESMTPS id b17sm2530fka.4.2009.03.05.05.55.06 (version=SSLv3 cipher=RC4-MD5); Thu, 05 Mar 2009 05:55:07 -0800 (PST) Date: Thu, 5 Mar 2009 14:55:18 +0100 From: Aesir To: grub-devel@gnu.org Message-Id: <20090305145518.20e2e18a.aesir.ml@gmail.com> In-Reply-To: <20090304210538.GF31201@thorin> References: <20090228185509.44b5711f.aesir.ml@gmail.com> <20090304210538.GF31201@thorin> X-Mailer: Sylpheed 2.6.0 (GTK+ 2.14.7; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: Set an LVM volume as default root device X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Mar 2009 13:55:14 -0000 On Wed, 4 Mar 2009 22:05:38 +0100 Robert Millan 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