Received: from list by lists.gnu.org with archive (Exim 4.71) id 1a0aio-0004O1-VE for mharc-grub-devel@gnu.org; Sun, 22 Nov 2015 14:54:50 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0aim-0004Lj-N0 for grub-devel@gnu.org; Sun, 22 Nov 2015 14:54:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0aii-0004ye-DC for grub-devel@gnu.org; Sun, 22 Nov 2015 14:54:48 -0500 Received: from b.a.painless.aa.net.uk ([81.187.30.65]:58763) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0aii-0004xt-81 for grub-devel@gnu.org; Sun, 22 Nov 2015 14:54:44 -0500 Received: from 3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.4.1.b.e.2.f.f.b.0.b.8.0.1.0.0.2.ip6.arpa ([2001:8b0:bff2:eb14::3] helo=riva.pelham.vpn.ucam.org) by a.painless.aa.net.uk with esmtps (TLSv1:AES128-SHA:128) (Exim 4.77) (envelope-from ) id 1a0aid-0007rn-M1 for grub-devel@gnu.org; Sun, 22 Nov 2015 19:54:42 +0000 Received: from ns1.pelham.vpn.ucam.org ([172.20.153.2] helo=riva.ucam.org) by riva.pelham.vpn.ucam.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84) (envelope-from ) id 1a0aic-0001UX-Ez for grub-devel@gnu.org; Sun, 22 Nov 2015 19:54:38 +0000 Date: Sun, 22 Nov 2015 19:54:37 +0000 From: Colin Watson To: grub-devel@gnu.org Subject: Re: Grub2 documentation of the GRUB_CMDLINE_*XEN* parameters -- unclear. What's _intended_? Message-ID: <20151122195437.GB4982@riva.ucam.org> References: <56510884.8060908@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <56510884.8060908@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 81.187.30.65 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: Sun, 22 Nov 2015 19:54:50 -0000 On Sat, Nov 21, 2015 at 04:12:52PM -0800, PGNet Dev wrote: > Grub2 documentation @ > https://www.gnu.org/software/grub/manual/grub.html#Configuration states > > ... > ‘GRUB_CMDLINE_XEN’ > ‘GRUB_CMDLINE_XEN_DEFAULT’ > > The values of these options are appended to the values of > ‘GRUB_CMDLINE_LINUX’ and ‘GRUB_CMDLINE_LINUX_DEFAULT’ for Linux and Xen menu > entries. > ‘GRUB_CMDLINE_LINUX_XEN_REPLACE’ > ‘GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT’ > > The values of these options replace the values of ‘GRUB_CMDLINE_LINUX’ > and ‘GRUB_CMDLINE_LINUX_DEFAULT’ for Linux and Xen menu entries. > ... > > From these docs. it's not clear which values get mapped to which grub > entries. One set 'appends', one set 'replaces'. Are they exclusive of one > another? No, they aren't exclusive of one another, but are used to construct different command lines. GRUB_CMDLINE_XEN* are used for the hypervisor command line; GRUB_CMDLINE_LINUX_XEN_REPLACE* are used for the Linux kernel command line (but if unset, the corresponding GRUB_CMDLINE_LINUX* values are used instead). The misleading description you quote was the one in 2.00, but was clarified in git a while ago: http://git.savannah.gnu.org/cgit/grub.git/commit/?id=48f39bb4df5b903aaa66db9fdc6679571bff0dd9 > And, what specifically gets mapped to Xen kernel's "options=" parameter > line? > > E.g., a grub2-mkconfig-generated xen*.cfg takes the form Upstream grub-mkconfig does not generate xen*.cfg at all. This is an openSUSE-specific patch. From inspecting their source code, I believe that the GRUB_CMDLINE_XEN* options will apply here. > The docs should clearly address which PARAMETERS map to the "options=" line, > and which to the kernel=" line in the Xen case. No doubt, but it is up to the openSUSE maintainers to make sure that their patches also include appropriate documentation changes. -- Colin Watson [cjwatson@ubuntu.com]