From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1YnVAz-0004uM-0i for mharc-grub-devel@gnu.org; Wed, 29 Apr 2015 12:49:33 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnVAt-0004tk-IP for grub-devel@gnu.org; Wed, 29 Apr 2015 12:49:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YnVAq-0004HM-Bs for grub-devel@gnu.org; Wed, 29 Apr 2015 12:49:27 -0400 Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::3]:22732) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnVAq-0004Ei-1j for grub-devel@gnu.org; Wed, 29 Apr 2015 12:49:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1430326161; l=1462; s=domk; d=aepfle.de; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Subject:To:From:Date; bh=Z/cRrla7ot7WGVkzEI2+fmjYPvY/wgA54K038HoGTYY=; b=BqL1XIUGThvuYufB3PzmCMM2bfEgzRF6eC7qnw9Sl7K/KFaqfKRUj20+RpVJVx9s8xF hv79nR8qUlqFlMK+JOknk5YobEbRXUZ0GSMmig/z0H97mSg21JHKvTdLNZaGes+zXxknY +Aq5g6097FPcsdEjAs1/zyB7FivOlTyDW7E= X-RZG-AUTH: :P2EQZWCpfu+qG7CngxMFH1J+yackYocTD1iAi8x+OWtqWFmrC5F/k8792baG X-RZG-CLASS-ID: mo00 Received: from probook.fritz.box (aftr-185-17-204-14.dynamic.mnet-online.de [185.17.204.14]) by smtp.strato.de (RZmta 37.5 DYNA|AUTH) with ESMTPSA id 005990r3TGnLgfV (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 ; Wed, 29 Apr 2015 18:49:21 +0200 (CEST) Received: by probook.fritz.box (Postfix, from userid 1000) id 5B6E050292; Wed, 29 Apr 2015 18:49:21 +0200 (CEST) Date: Wed, 29 Apr 2015 18:49:21 +0200 From: Olaf Hering To: The development of GNU GRUB Subject: Re: passing options to grub in xen,openfirmware and efi Message-ID: <20150429164921.GA9393@aepfle.de> References: <5540F299.4020304@gmail.com> <20150429151011.GA5931@aepfle.de> <20150429153527.GA12448@aepfle.de> <20150429154801.GA7715@aepfle.de> <20150429162800.GA32494@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::3 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: Wed, 29 Apr 2015 16:49:31 -0000 On Wed, Apr 29, Vladimir 'phcoder' Serbinenko wrote: > > On Apr 29, 2015 6:28 PM, "Olaf Hering" wrote: > > > > On Wed, Apr 29, Vladimir 'phcoder' Serbinenko wrote: > > > > > There is a standard where to put it. See xen docs > > > > Yes, its like that: > > kernel="/usr/whatever/distro/grub.xen" > > extra="opt1=val opt2=val" > > > That's not what I meant. There is a standard on where to find files inside the > domU. Sigh.. There are likely ways to find out where grub was loaded from even on a PC, and use that as initial root=. In a PV guest no such thing exists because itself grub is the firmware. In OF I can imaging that it might be useful to point grub right away to some other device than listed in /chosen/bootpath. > > And grub2 does not grab the cmdline provided via extra=. I think that > > providing root=xen/xvdb is the right way to control grub inside the > > domU. > > In anycase, what the OF does today in its init code is valid and should > > stay. > Mixing up namespaces is certainly not valid. This will lead to both intended > misuses like changing variables that shouldn't be and unintentional when e.g. > root=/dev/xvda2 meant for Linux will sneak into grub breaking stuff Since the kernel= is grub and the stuff in cmdline is obviously meant for that very kernel (grub), it can have no meaning for an OS that possibly loaded later. It does not even know about that string. Olaf