From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1YqgkC-0001fq-8I for mharc-grub-devel@gnu.org; Fri, 08 May 2015 07:47:04 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yqgk7-0001YK-Qt for grub-devel@gnu.org; Fri, 08 May 2015 07:47:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yqgk5-00082w-AZ for grub-devel@gnu.org; Fri, 08 May 2015 07:46:59 -0400 Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::12]:51444) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yqgk5-00082T-1C for grub-devel@gnu.org; Fri, 08 May 2015 07:46:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1431085615; l=1143; s=domk; d=aepfle.de; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Subject:To:From:Date; bh=butFbux9Y3WkMJIxv9wUW98fIUnnC+Zpd9cwp7WcjjI=; b=HUMpmCeMGrUeGT9r5jh7HcdbPwF+zLfK1xwEhDAPLiL07aDnISJW8/XTYqtJ1IK/755 4sJW4Fu9Y0sLvRIq8fpnQTBeBsX2WcEVTu77FLO7785R3tRM4ijT+IfDb46DyLAtyGz/J 9mpirzFdv1dw7g5um8qx+jDZmDqEnXVW1zQ= X-RZG-AUTH: :P2EQZWCpfu+qG7CngxMFH1J+yackYocTD1iAi8x+OWi/zfN1cLnBYfssVY1SE5ClEYfb5sQvxDNUdfk3GFAM3xrxaZN0YQ== X-RZG-CLASS-ID: mo00 Received: from probook.fritz.box ([2001:a60:10a3:eb01:1ec1:deff:feb9:bb48]) by smtp.strato.de (RZmta 37.5 AUTH) with ESMTPSA id j06c63r48Bktfwj (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve sect571r1 with 571 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate) for ; Fri, 8 May 2015 13:46:55 +0200 (CEST) Received: by probook.fritz.box (Postfix, from userid 1000) id CFF52502A7; Fri, 8 May 2015 13:46:54 +0200 (CEST) Date: Fri, 8 May 2015 13:46:54 +0200 From: Olaf Hering To: The development of GNU GRUB Subject: Re: passing options to grub in xen,openfirmware and efi Message-ID: <20150508114654.GA12411@aepfle.de> References: <20150429164921.GA9393@aepfle.de> <554B7A74.7010404@gmail.com> <20150507145426.GA26929@aepfle.de> <554B7DBA.8060501@gmail.com> <554B830A.8040400@gmail.com> <20150508100958.GA13979@aepfle.de> <20150508111515.GA5612@aepfle.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.22.rev6346 (2013-10-29) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a01:238:20a:202:5300::12 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, 08 May 2015 11:47:01 -0000 On Fri, May 08, Andrei Borzenkov wrote: > On Fri, May 8, 2015 at 2:15 PM, Olaf Hering wrote: > > On Fri, May 08, Vladimir 'phcoder' Serbinenko wrote: > > > >> That's not the plan which is pushed by xen guys. They propose to make grub > >> stored on dom0 to just load grub from a predefined place in domU. This I.a. > >> allows easier upgrade of bootloader for distros as they don't have to worry > >> about dom0 having very old grub. > > > > Thats news, where was that proposed and discussed? > http://xenbits.xen.org/docs/unstable/misc/x86-xenpv-bootloader.html That is chainloading, and in that sense at a different layer. The kernel= still looks just at the very first disk, or whatever disk is returned by "search -f /path". If grub2 would start to look at extra= it will be possible to select a configured disk. I just browsed the code today, grub_xen_start_page_addr->cmd_line is what /boot/chosen is in OF. Should be easy to add similar code to set variables found in that cmdline. Its then up to the scripts running in the binary referenced by kernel= to make use of such variables. Olaf