Skip to contentSkip to conversation

How do I boot a standalone program in grub (a password checker via serial input) before allowing grub to continue booting?

DISCUSSION CurlyCoconutTree 5 participants 6 messages Nov 3, 2007 – Nov 10, 2007

lore
Share & tools
lore
#0 lore raw

How do I boot a standalone program in grub (1.95) (a password checker via serial input) before allowing grub to continue booting? I'm trying to develop a program that will run, stand alone or with the libraries Grub gives me access to, parse serial data for a password, store the password to the MBR, then if valid return to Grub to boot windows... I'm not looking for a solution, I'm just looking for a place to start! Grub, is pretty poorly documented and I wouldn't be posting this is there was more (or I could find more) info on how to develop for GRUB. I guess I'd be a 'noob'... I hate using that term... we all have to start from some where.

-C

Signature · 2 lines
View this message in context: http://www.nabble.com/How-do-I-boot-a-standalone-program-in-grub-%28a-password-checker-via-serial-input%29-before-allowing-grub-to-continue-booting--tf4739931.html#a13554502
Sent from the Grub - Dev mailing list archive at Nabble.com.
#1 lore raw
Quoted 10 lines · CurlyCoconutTree

How do I boot a standalone program in grub (1.95) (a password checker via serial input) before allowing grub to continue booting? I'm trying to develop a program that will run, stand alone or with the libraries Grub gives me access to, parse serial data for a password, store the password to the MBR, then if valid return to Grub to boot windows... I'm not looking for a solution, I'm just looking for a place to start! Grub, is pretty poorly documented and I wouldn't be posting this is there was more (or I could find more) info on how to develop for GRUB. I guess I'd be a 'noob'... I hate using that term... we all have to start from some where.

IIRC someone implemented password checks in boot already, or was working on that, but hasn't been merged yet. I suggest you check the mailing list archives.

Signature · 5 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)
#2 lore raw

.... I think the actual question should have been worded more like "is it possible to return control to GRUB from a booted (say) Multiboot kernel, provided nothing (say) below 1MB is touched...".

Is it possible? I'm curious myself.

Andrei Evgenievich Warkentin
[email protected]
Cell: (+1) (847) 321-15-55

05.11.2007, в 9:35, Robert Millan писал(а):

Quoted 28 lines · CurlyCoconutTree
Quoted 10 lines

How do I boot a standalone program in grub (1.95) (a password checker via serial input) before allowing grub to continue booting? I'm trying to develop a program that will run, stand alone or with the libraries Grub gives me access to, parse serial data for a password, store the password to the MBR, then if valid return to Grub to boot windows... I'm not looking for a solution, I'm just looking for a place to start! Grub, is pretty poorly documented and I wouldn't be posting this is there was more (or I could find more) info on how to develop for GRUB. I guess I'd be a 'noob'... I hate using that term... we all have to start from some where.

IIRC someone implemented password checks in boot already, or was working on that, but hasn't been merged yet. I suggest you check the mailing list archives.

Signature · 11 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)


_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
#3 lore raw
Quoted 5 lines · Andrei E. Warkentin

.... I think the actual question should have been worded more like
"is it possible to return control to GRUB from a booted (say)
Multiboot kernel, provided nothing (say) below 1MB is touched...".

Is it possible? I'm curious myself.

No.

Signature · 5 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)
#4 lore raw
In reply to Robert Millan

I know someone was working on this. I need to create my own program for personal use.

Quoted 37 lines · Robert Millan
Quoted 2 lines · CurlyCoconutTree

How do I boot a standalone program in grub (1.95) (a password checker

via

Quoted 3 lines

serial input) before allowing grub to continue booting? I'm trying to develop a program that will run, stand alone or with the libraries Grub gives me access to, parse serial data for a password, store the password

to

Quoted 1 line

the MBR, then if valid return to Grub to boot windows... I'm not looking

for

Quoted 1 line

a solution, I'm just looking for a place to start! Grub, is pretty

poorly

Quoted 1 line

documented and I wouldn't be posting this is there was more (or I could

find

Quoted 1 line

more) info on how to develop for GRUB. I guess I'd be a 'noob'... I

hate

Quoted 1 line

using that term... we all have to start from some where.

IIRC someone implemented password checks in boot already, or was working on
that, but hasn't been merged yet. I suggest you check the mailing list archives.

--
Robert Millan

<GPLv2> I know my rights; I want my phone call! <DRM> What use is a phone call, if you are unable to speak? (as seen on /.)

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

#5 lore raw
In reply to CurlyCoconutTree
Quoted 9 lines · CurlyCoconutTree

How do I boot a standalone program in grub (1.95) (a password checker via serial input) before allowing grub to continue booting? I'm trying to develop a program that will run, stand alone or with the libraries Grub gives me access to, parse serial data for a password, store the password to the MBR, then if valid return to Grub to boot windows... I'm not looking for a solution, I'm just looking for a place to start! Grub, is pretty poorly documented and I wouldn't be posting this is there was more (or I could find more) info on how to develop for GRUB. I guess I'd be a 'noob'... I hate using that term... we all have to start from some where.

Noone is using that term. We also value good documentation and will be very happy if you could work on that.

One way of doing this might be writing a new command. See hello/hello.c as an example.

--
Marco