From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Xw4aB-0004lg-Uk for mharc-grub-devel@gnu.org; Wed, 03 Dec 2014 02:42:43 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51723) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xw4a8-0004kN-Vp for grub-devel@gnu.org; Wed, 03 Dec 2014 02:42:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xw4a2-0000k5-K6 for grub-devel@gnu.org; Wed, 03 Dec 2014 02:42:40 -0500 Received: from mail-qg0-x235.google.com ([2607:f8b0:400d:c04::235]:53886) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xw4a2-0000k0-FB for grub-devel@gnu.org; Wed, 03 Dec 2014 02:42:34 -0500 Received: by mail-qg0-f53.google.com with SMTP id q108so10688172qgd.12 for ; Tue, 02 Dec 2014 23:42:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=IwFzCjzObvNSFoihgNVW4iGuVF17SUPEZfUalaFfjZk=; b=feiQZDuM0I96G2kgmNchaXa1OVYdCDYjZSkpYB7NgIWkxvb7q9FS5GwCUNC4yS9bwB ajHeUuKe8a1De4sngZnAsixx1yWdmao02T80hJCekJfUx9st4P7zoyYXMMeIvosiCOvD 5M2t6Swy0xqLHBxRHGuw48ca94o3n3NsVtSZEt+CGTynIfNi9Ut7HvVXspj7nTr/X9hV ehCsBTEXx3A/Z5E1DaAqbT7AvyteCOUokQBDasm/0Z4xtiFC9J3aDQxSxAOpftZu3zMo IYXyaWlOng+RCI7uVH7KWfRbECK/TYHYulFo+TyoLwZr08k6GJuU95jtVGEFe+vK+f45 geUw== MIME-Version: 1.0 X-Received: by 10.224.64.197 with SMTP id f5mr5900246qai.49.1417592554025; Tue, 02 Dec 2014 23:42:34 -0800 (PST) Received: by 10.140.225.197 with HTTP; Tue, 2 Dec 2014 23:42:33 -0800 (PST) In-Reply-To: References: Date: Wed, 3 Dec 2014 10:42:33 +0300 Message-ID: Subject: Re: Autopilot, a module for remotely doing things From: Andrei Borzenkov To: The development of GNU GRUB Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c04::235 Cc: Brugnara Daniele 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: Wed, 03 Dec 2014 07:42:42 -0000 On Tue, Dec 2, 2014 at 7:22 PM, Brugnara Daniele wrote: > Here I am again.. I'm studying grub code and thinking about this feature we > are talking about. > A funny name could be "autopilot". I'm thinking this about a big container > where to put more than a "pilot". > ... > Each pilot will do the very same thing: receive/read a small cfg file and > GRUB will do what it must to do. > This does not need any module. source (http,server-or-IP)/extra.cfg enclose in "set check_signatures=enforce; ...; set check_signatures=" to ensure file verification. > For a first release, it should be enough to pass: > > choice=1 > > or > > choice=Windows 7 (64 bit) > > Why two HTTP? > > It's just an idea. We can think GRUB as a web service that allows it self > being called from any application: > > POST grub.local:8080/api/autopilot [!DATA!] > > or see GRUB as a client that asks for a file to a centralized server: > > http://givemethatfile.please/aa:bb:cc:dd:ee:ff > > Security > > This is a very important thing. Any suggestion will be very appreciated. > > Pilots > > The first release, can have only one pilot. There's no need to develop all 4 > and more important, this four are not a final decision. Let's talk about > this. > > GRUB.cfg > > All informations about this module can be stored into grub.cfg or better, a > specific autopilot.cfg but I do not want to add too much complexity. > > I'm thinking something about: > > [autopilot] > pilots_engaged = UDP[, HTTPSERVER[, SERIAL]] > > UDP.port = 1664 > HTTPSERVER.port = 8080 > SERIAL.port = /dev/ttyUSB0 > SERIAL.conf = 57600 8N1 > [...] > > > As always, let's talk about this :) > > Daniele. > > > On Sat Nov 29 2014 at 2:07:31 AM Brugnara Daniele > wrote: >> >> Hi all. >> >> I'm thinking about a system that boots with a wol packet. Who sends this >> packet in 99% of cases, is far away from that computer and it could be >> useful to boot into a different system instead of the default one. (please >> keep in mind that changing the default option in grub is not a option for >> this specific use case) >> >> If a wol can be delivered successfully, an UDP packet containing simple >> datas should be enough to achieve this. >> >> Something like this: >> >> - MAC: the destination device mac address >> - choice: a number (can be empty) >> - commandLine: a full commandline (a choice or this..) >> - more? I don't know for now.. >> >> This option should be enabled in the grub.conf by the user. >> >> What do you think about? Could this be useful? Am I missing something, >> like a tool that does this automagically? >> >> I've read about an eth-to-serial but it's not what I want. >> PXE or bootp is not an option here. I don't want to manage another >> server... >> >> Thanks for your time. >> >> Daniele. >> > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel >