From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VsWYy-00080e-5W for mharc-grub-devel@gnu.org; Mon, 16 Dec 2013 06:42:16 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43159) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VsWYs-0007zE-Bs for grub-devel@gnu.org; Mon, 16 Dec 2013 06:42:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VsWYo-0008RX-1A for grub-devel@gnu.org; Mon, 16 Dec 2013 06:42:10 -0500 Received: from smtp.citrix.com ([66.165.176.89]:35453) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VsWYn-0008RN-TC for grub-devel@gnu.org; Mon, 16 Dec 2013 06:42:05 -0500 X-IronPort-AV: E=Sophos;i="4.95,494,1384300800"; d="scan'208";a="84867192" Received: from accessns.citrite.net (HELO FTLPEX01CL01.citrite.net) ([10.9.154.239]) by FTLPIPO01.CITRIX.COM with ESMTP; 16 Dec 2013 11:42:04 +0000 Received: from [10.80.2.80] (10.80.2.80) by FTLPEX01CL01.citrite.net (10.13.107.78) with Microsoft SMTP Server id 14.2.342.4; Mon, 16 Dec 2013 06:42:04 -0500 Message-ID: <1387194123.20076.86.camel@kazak.uk.xensource.com> Subject: Re: [Xen-devel] [PATCH 0/4] Turn-key PV-GRUB2 installation From: Ian Campbell To: Colin Watson Date: Mon, 16 Dec 2013 11:42:03 +0000 In-Reply-To: <20131212153643.GA1431@riva.ucam.org> References: <20131212153643.GA1431@riva.ucam.org> Organization: Citrix Systems, Inc. Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.4.4-3 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.2.80] X-DLP: MIA2 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.165.176.89 Cc: grub-devel@gnu.org, xen-devel@lists.xen.org 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: Mon, 16 Dec 2013 11:42:14 -0000 On Thu, 2013-12-12 at 15:36 +0000, Colin Watson wrote: > This patch set should make it easier to maintain PV-GRUB2 installations. > The general idea is based on discussions I had with Xen developers > (mainly Ian Jackson) at the Ubuntu Developer Summit in May 2011; though > I never did manage to get the core port done and Vladimir beat me to > that, I think the configuration approach we discussed there is still > valid and useful. > > The idea here is that people maintaining dom0s, especially in big cloud > installations, will probably not want to update their PV-GRUB2 image > (which will be read from the dom0 filesystem but will run in the domU) > very often; but on the other hand people maintaining distributions will > want to be able to move on and make use of latest-and-greatest features. > To make this work, we build a dom0-filesystem-suitable grub.xen image > which just tries to chainload another grub.xen from a couple of > reasonably standard locations in the domU's filesystem > (/boot/grub/grub.xen and /boot/grub2/grub.xen). This all sounds rather sensible. (actually, it sounds pretty awesome!) A bit unrelated, and perhaps a bit far fetched, but I wonder if it might be possible to chainload somehow from dom0's pvgrub1 to a pvgrub2 from within the guest. I'm thinking of how long it might take cloud providers to start providing pvgrub2 from their dom0s... > > I've arranged that you can either use that very same grub.xen image in > the domU by way of a new mechanism that passes GRUB environment > variables via the Xen guest command line so that we can tell which > context we're in, or you can run "grub-install --target=x86_64-xen" in > the domU which will build and install a suitable one in more or less the > usual way. > > Colin Watson (4): > Add an option to exclude devices from search results. > Accept environment variables on the command line for Xen. > Build grub.xen. > Improve installation on Xen. > > .gitignore | 1 + > ChangeLog | 45 ++++++++++++++++++++++++++++++++++++++++ > Makefile.am | 14 +++++++++++++ > configure.ac | 1 + > docs/grub.texi | 7 ++++++- > grub-core/Makefile.core.def | 7 +++++++ > grub-core/boot/xen/xen.cfg.in | 31 +++++++++++++++++++++++++++ > grub-core/commands/search.c | 15 ++++++++++++-- > grub-core/commands/search_wrap.c | 27 +++++++++++++++++++----- > grub-core/kern/xen/init.c | 44 +++++++++++++++++++++++++++++++++++++++ > include/grub/search.h | 9 +++++--- > util/grub-install.c | 11 ++++++++-- > 12 files changed, 199 insertions(+), 13 deletions(-) > create mode 100644 grub-core/boot/xen/xen.cfg.in >