From: "Jan Beulich" Subject: Re: [PATCH] build: save generated config in /boot Date: Wed, 06 Jan 2016 03:38:36 -0700 Message-ID: <568CFCBC02000078000C3DA8@prv-mh.provo.novell.com> References: <1450474548-26428-1-git-send-email-cardoe@cardoe.com> <5677FA9802000078000C1DA7@prv-mh.provo.novell.com> <56780E25.9090806@cardoe.com> <56781FFA02000078000C1F3D@prv-mh.provo.novell.com> <567818B3.6060908@cardoe.com> <56782A4402000078000C1FD0@prv-mh.provo.novell.com> <567945F9.7040109@cardoe.com> <5679558002000078000C23CE@prv-mh.provo.novell.com> <56796237.4090102@citrix.com> <5679818402000078000C253F@prv-mh.provo.novell.com> <5679740E.9090309@cardoe.com> <567983C302000078000C255F@prv-mh.provo.novell.com> <568BF504.1030205@cardoe.com> <568CEAFB02000078000C3D0F@prv-mh.provo.novell.com> <1452076277.7292.17.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1452076277.7292.17.camel@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Keir Fraser , Andrew Cooper , Tim Deegan , xen-devel@lists.xen.org, Ian Jackson , Doug Goldstein List-Id: xen-devel@lists.xenproject.org >>> On 06.01.16 at 11:31, wrote: > On Wed, 2016-01-06 at 02:22 -0700, Jan Beulich wrote: >> > > > On 05.01.16 at 17:53, wrote: >> > On 12/22/15 10:09 AM, Jan Beulich wrote: >> > > > > > On 22.12.15 at 17:02, wrote: >> > > > How does it not make sense in this case? That's what Andrew and I >> > > > are >> > > > asking you to explain. >> > > >> > > But I already explained it: The file isn't needed for booting. >> > >> > One use of it in /boot would be to check the file in 20_linux_xen like >> > we check the kernel config for different options to add different >> > parameters. >> >> Which, if you search for it, is a very controversial thing: I agree >> with the side demanding for grub to not inspect the kernel's >> .config. > > What is the preferred mechanism for determining from the contents of /boot > whether an XSM entry should be produced or not? I don't think this can be inferred - iirc even an XSM-enabled build can be booted without unless in some kind of strict mode? IOW this needs to be configured on the host, not guessed by inspecting .config. (And as a side note, inspecting .config doesn't truly require .config to be on the boot partition, unless such inspection would happen at boot time, which I don't think is the case.) Jan