From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1cWF9D-0006zw-Hx for mharc-grub-devel@gnu.org; Tue, 24 Jan 2017 23:25:27 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46997) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWF9A-0006yh-Pi for grub-devel@gnu.org; Tue, 24 Jan 2017 23:25:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cWF99-0001AV-VS for grub-devel@gnu.org; Tue, 24 Jan 2017 23:25:24 -0500 Received: from mail-vk0-x22e.google.com ([2607:f8b0:400c:c05::22e]:33277) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cWF99-0001AR-Rh for grub-devel@gnu.org; Tue, 24 Jan 2017 23:25:23 -0500 Received: by mail-vk0-x22e.google.com with SMTP id k127so126387750vke.0 for ; Tue, 24 Jan 2017 20:25:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=coreos.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=QxOiKEoFiTFApoqm25/XDI/8xSFpJuyx+skFHEA9dQ4=; b=UI7YfuBarKIiZ10/boXCyiTdSLgXIl+gz8YngPh6ZiE3ewNYedBjWIMILuJDJ6Iz/H bPR+4Of6Vv8API7q6w6QnhIlyLspDlnolB3h9j5q9kiEuVM2OtFZY1W38x/N8bIFngz3 p/91sa4DefqUB47QyiGoKQclz6oJH5zht1Qns= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=QxOiKEoFiTFApoqm25/XDI/8xSFpJuyx+skFHEA9dQ4=; b=heQl1xIEoH93XJDizP73jUV5pkOdv1DFnLbz0u24FP9wnzRATHFC/RpW2rGWQIjiTh +zHeuFAOWaT4LF6PkRS6Q2g2f3YwAzxxqu78PISebalAaE9bO0uqoL6QPs/T6cLSqGfR Yg/VTGBepmJ3xMCnkT59CE0NQL2qteDUb5pNath2HXtRUldjIKd7GfGEhlckWmOW+2qN 1k8i08Ho9+kr7P8/E8cN37TMw1B8g6V/T+WGDkKgciLVVrqvDacA4YI1lP9732mM1AWM yvPFGNrVfFZDsnGtf8YxcYWIjTd595GQ53zEu35Ib6pBSiEAyfKltfcgHeXTA7nrJvW7 KUeQ== X-Gm-Message-State: AIkVDXJVvq3dpU0whBZn6neIf4KKzd/sKOSWcElJth9daV8l5rzCLpPpBci+u6MMa41/sh/GuxX70ehrGYmGyhaR X-Received: by 10.31.217.7 with SMTP id q7mr14656116vkg.32.1485318323251; Tue, 24 Jan 2017 20:25:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.148.26 with HTTP; Tue, 24 Jan 2017 20:25:22 -0800 (PST) In-Reply-To: References: <20170124003601.24612-1-mjg59@coreos.com> <20170124003601.24612-5-mjg59@coreos.com> <411c7ef8-85a2-afd8-7446-0fd8d3d98616@gmail.com> From: Matthew Garrett Date: Tue, 24 Jan 2017 20:25:22 -0800 Message-ID: Subject: Re: [PATCH 4/4] Allow protocol to be separated from host with a semicolon To: Andrei Borzenkov Cc: The development of GNU GRUB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400c:c05::22e X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2017 04:25:25 -0000 On Tue, Jan 24, 2017 at 8:15 PM, Andrei Borzenkov wro= te: > 25.01.2017 07:06, Matthew Garrett =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >> I don't understand - grub_net_open_real() already handles this case: > > Because bootfile from DHCP packet is not used to set device part of > $prefix. Setting bootfile to (http,host)filename will end up with full > prefix "(tftp,$next_ip)(http,host)base-name-of-filename". If you mean > something different, please explain. If prefix isn't set then won't bootfile be interpreted as the device plus f= ile? >> Because we ship prebuilt images but don't know what IP addresses users >> will be using for their deployment servers. >> > > I can think about implementing URI parsing (somewhat in line with UEFI > HTTPboot spec) and/or supporting partial $prefix that sets only > protocol, something like "grub-mknetdir --prefix=3D(http,)", where server > part is filled from DHCP ACK. We need the ability to pass port as well, so that would still be insufficie= nt.