All of lore.kernel.org
 help / color / mirror / Atom feed
From: Brugnara Daniele <daniele@brugnara.me>
To: Andrei Borzenkov <arvidjaar@gmail.com>,
	Brugnara Daniele <daniele@brugnara.me>
Cc: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: Autopilot, a module for remotely doing things
Date: Wed, 03 Dec 2014 17:00:31 +0000	[thread overview]
Message-ID: <CAODAU+qMbqkeK3qZSHqH8jQ7yfAps3KwbQSWtEBbypu=O-19LQ@mail.gmail.com> (raw)
In-Reply-To: CAA91j0XCUF62U0bBb2+Ki_jN73Hq87WhE=VXZRMdA-aiMXRJQQ@mail.gmail.com

[-- Attachment #1: Type: text/plain, Size: 4965 bytes --]

I've tried a lot without success. There's no documentation about (http) in
exception for a little entry in this documentation (
https://www.gnu.org/software/grub/manual/html_node/Device-syntax.html)
where is said about it but no details on how to mount or use this "device".

What I have also tried is:

insmod net
insmod http

net_ls_addr (gives no results)

and any of this commands gives no results (http server is never called, I'm
sure about this)
source (http,http://192.168.1.70:1273)/
source (http:http://192.168.1.70:1273)/
source (http,192.168.1.70,1273)/
source (http:192.168.1.70:1273:/)
[...]

Am I missing something? The lack of documentation doesn't help on this.
Many thanks for your time.

On Wed Dec 03 2014 at 9:31:34 AM Andrei Borzenkov <arvidjaar@gmail.com>
wrote:

> On Wed, Dec 3, 2014 at 11:18 AM, Brugnara Daniele <daniele@brugnara.me>
> wrote:
> > This seems a very nice feature but I'm unable to make it work. I'm having
> > this error:
> >
> > root@hulk:/home/vrut/dev/grub# update-grub
> > /usr/sbin/grub-mkconfig: 34: /etc/default/grub: source: not found
> >
>
> source is grub command that should be executed at run time. If you
> want to use grub-mkconfig to add this command, see
> /etc/grub.d/40_custom
>
> > Am I missing something?
> >
> > On Wed Dec 03 2014 at 8:42:36 AM Andrei Borzenkov <arvidjaar@gmail.com>
> > wrote:
> >>
> >> On Tue, Dec 2, 2014 at 7:22 PM, Brugnara Daniele <daniele@brugnara.me>
> >> 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 <
> daniele@brugnara.me>
> >> > 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
> >> >
>

[-- Attachment #2: Type: text/html, Size: 7771 bytes --]

  reply	other threads:[~2014-12-03 17:01 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-29  1:10 Remotely choose a menu entry Brugnara Daniele
2014-11-29 16:03 ` Andrei Borzenkov
2014-11-29 16:16   ` Brugnara Daniele
2014-12-01  8:19     ` Parmeshwr_Prasad
2014-12-01 10:37       ` Andrei Borzenkov
2014-12-01 10:43         ` Parmeshwr_Prasad
2014-12-01 11:29           ` Andrei Borzenkov
2014-12-01 11:30             ` Parmeshwr_Prasad
2014-12-01 23:13     ` Vladimir 'φ-coder/phcoder' Serbinenko
2014-12-02  6:22       ` Parmeshwr_Prasad
2014-12-02 16:22 ` Autopilot, a module for remotely doing things Brugnara Daniele
2014-12-03  7:42   ` Andrei Borzenkov
2014-12-03  8:18     ` Brugnara Daniele
2014-12-03  8:31       ` Andrei Borzenkov
2014-12-03 17:00         ` Brugnara Daniele [this message]
2014-12-03 18:03           ` Alan Perry
2014-12-03 20:03             ` Brugnara Daniele
2014-12-03 20:34               ` Brugnara Daniele
2014-12-04  6:26                 ` Andrei Borzenkov
2014-12-04  3:41               ` Andrei Borzenkov
2014-12-07 16:41   ` Vladimir 'φ-coder/phcoder' Serbinenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAODAU+qMbqkeK3qZSHqH8jQ7yfAps3KwbQSWtEBbypu=O-19LQ@mail.gmail.com' \
    --to=daniele@brugnara.me \
    --cc=arvidjaar@gmail.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.