All of lore.kernel.org
 help / color / mirror / Atom feed
* Remotely choose a menu entry
@ 2014-11-29  1:10 Brugnara Daniele
  2014-11-29 16:03 ` Andrei Borzenkov
  2014-12-02 16:22 ` Autopilot, a module for remotely doing things Brugnara Daniele
  0 siblings, 2 replies; 24+ messages in thread
From: Brugnara Daniele @ 2014-11-29  1:10 UTC (permalink / raw)
  To: grub-devel

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

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.

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

^ permalink raw reply	[flat|nested] 24+ messages in thread
* RE: Remotely choose a menu entry
@ 2014-12-01 12:03 Brugnara Daniele
  2014-12-01 16:43 ` Jonathan McCune
  0 siblings, 1 reply; 24+ messages in thread
From: Brugnara Daniele @ 2014-12-01 12:03 UTC (permalink / raw)
  To: Parmeshwr_Prasad, grub-devel

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

You have simply misunderstood me. I'm trying to explain deeply :)

When grub starts, it asks for a choice, lets take this, as an example:

1) Linux
2) Linux (mem test ecc)
3) Windows 7
4) Windows Server 2000

I want grub to listen for an encrypted UDP packet that emulate an human
choice.

Continuing the example:

1) send a WOL to aa:bb:cc:dd:ee:ff
2) start an UDP loop to the same mac address, to start the 3rd grub menu'
choice (in this example, windows 7)
3) when grub receive that UDP packet, successfully decrypts it and it is
sure that this packet is trusted (rsa or what you want), selects that menu
choice
4) grub boots the selected item.

No files are passed in any way. I'm telling GRUB to boot a specific and
preconfigured entry.

In the UDP packet, I'm thinking to insert a grub command line. This is very
similar to pressing E when grub asks what to do at boot.

I'm not sure of why you have wrote about kernel files. I never wrote about
sending files because this should be done by a PXE or bootp but this is NOT
my goal.

Another very useful thing, should be that GRUB sends an encrypted UDP
packet with his menu configuration in order to do a reasonable choice from
a third party application.

Many thanks for your time.

Daniele.

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

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2014-12-07 16:41 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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
2014-12-01 12:03 Remotely choose a menu entry Brugnara Daniele
2014-12-01 16:43 ` Jonathan McCune
2014-12-01 18:59   ` Brugnara Daniele

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.