Received: from list by lists.gnu.org with archive (Exim 4.71) id 1cWROu-000436-Fv for mharc-grub-devel@gnu.org; Wed, 25 Jan 2017 12:30:28 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41173) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWROq-00040D-Mg for grub-devel@gnu.org; Wed, 25 Jan 2017 12:30:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cWROn-00024G-I8 for grub-devel@gnu.org; Wed, 25 Jan 2017 12:30:24 -0500 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]:34928) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cWROn-00023u-AW for grub-devel@gnu.org; Wed, 25 Jan 2017 12:30:21 -0500 Received: by mail-lf0-x241.google.com with SMTP id v186so21783057lfa.2 for ; Wed, 25 Jan 2017 09:30:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=g6FOCfA0zjNtaKhoR/2FRTdba+vRKHAeHxT+nTQf9Tc=; b=hVIcyCRexAwSaoPJxSrXKvI27HupIoGB8xmYqWWM+pl+oW7dURI0YjfxyAx0k0HDpG d73lwoTcVNZjAzeMuClZ+iyv1AdlYa/wAMtcVpWTh60dp2oJddy9x8XMtElCzDZRhg7Q Zub7k2i+CEGat7hQeNMeaOkajN37n4Sm5FVU95XOoZrTlzzqeu/Rpt0BzdOrru4Rs1XT ZLghaHyaZPvhK1Qk22evr4o8QXU8EwJCuNN7m3vJND+gvh2c6AbD7Z7xTgpa53HAiLbY 7aGP+YKYlKR01FfLgJANhJCYtPP7trmi820WjK5ItvDAktyeu+MTuupr/Zl3946C72MI Kimw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=g6FOCfA0zjNtaKhoR/2FRTdba+vRKHAeHxT+nTQf9Tc=; b=KHfEkSRoukwVoAwYOa+ptPUd7HjvQJSmmmnbmaB4OUE8Ik6VczW8nfz4acANL14PU7 ocCkCIYnACvSskJyAaViUhc945gz5n04IoUS/Z/WvIypOLNFcVbhS5ncoiNAi34V3Blv Tpcr+f80d2ArUhxD0RG+r6sAz0Q9lIRIPVjRM3jdz7MCO4PryP9OlJDhDrnI5CHSFRXB pjCjAS86id8muczwBHFoFfkuuDEY53RNjJuC4my7xd6xWSYWa33DHG+2Dyuy16XgU9gv qJHtXBTij/tDGHphZ2SjJYmA9Q34Nb9dIfJxoJDRDuukCrVMAAuO6fPW4PQNwR9bjSBm /smg== X-Gm-Message-State: AIkVDXJpHQTCsj7uV3wW+xi7qOZCvE7m0JLzzG75Tr3CxZOVDieeipJSUs8gcN+mcSDMyQ== X-Received: by 10.25.201.71 with SMTP id z68mr11605249lff.3.1485365419513; Wed, 25 Jan 2017 09:30:19 -0800 (PST) Received: from [192.168.1.3] (ppp109-252-90-129.pppoe.spdop.ru. [109.252.90.129]) by smtp.gmail.com with ESMTPSA id t23sm8618263ljd.30.2017.01.25.09.30.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Jan 2017 09:30:18 -0800 (PST) Subject: Re: [PATCH 4/4] Allow protocol to be separated from host with a semicolon To: Matthew Garrett References: <20170124003601.24612-1-mjg59@coreos.com> <20170124003601.24612-5-mjg59@coreos.com> <411c7ef8-85a2-afd8-7446-0fd8d3d98616@gmail.com> Cc: The development of GNU GRUB From: Andrei Borzenkov Message-ID: <12615df1-0935-3e04-1520-42f780f42155@gmail.com> Date: Wed, 25 Jan 2017 20:30:18 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::241 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 17:30:25 -0000 24.01.2017 23:50, Matthew Garrett пишет: > On Mon, Jan 23, 2017 at 8:02 PM, Andrei Borzenkov wrote: >> 24.01.2017 03:36, Matthew Garrett пишет: >>> Some DHCP servers (such as dnsmasq) tokenise parameters with commas, making >>> it impossible to pass boot files with commas in them. Allow using a >> >> grub_net_open() operates on devices, not files. Please give more details >> about your problem. > > The DHCP server will return a string in the boot_file field. If you > want to indicate that this file should be obtained over http, the > easiest way to handle this is to provide a boot file in the form > (http,host)filename. Unfortunately dnsmasq uses commas to tokenise its > configuration parameters and there appears to be no way to override > that, which makes it impossible to provide a boot file in this form. Really? dnsmasq -d -z --dhcp-range=192.168.11.20,192.168.11.30 --dhcp-option option:bootfile-name,'(http,1.2.3.4)/foo/bar' -i eth1 Bootstrap Protocol (ACK) ... Option: (67) Bootfile name Length: 23 Bootfile name: (http,1.2.3.4)/foo/bar Option: (255) End Option End: 255