Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
appnotes:autobootchainurl [2009/07/23 06:18] abo created |
appnotes:autobootchainurl [2009/11/05 15:46] (current) chaz6 Add note about hacking autoboot_exec() |
||
|---|---|---|---|
| Line 17: | Line 17: | ||
| Go into ''src/usr/autoboot.c'' and find the ''netboot()'' function. In that function there is a line "''route();''". After that line, add "''return 0;''". This causes autoboot to return when it has obtained a DHCP lease so that the next command is run. | Go into ''src/usr/autoboot.c'' and find the ''netboot()'' function. In that function there is a line "''route();''". After that line, add "''return 0;''". This causes autoboot to return when it has obtained a DHCP lease so that the next command is run. | ||
| - | Now build your patched gPXE with the following embedded script: | + | Go into ''src/hci/commands/autoboot_cmd.c'' and find the line "''/* Can never return success by definition */''". Change the following line from "''return 1;''" to "''return 0;''". |
| + | |||
| + | Now build your patched gPXE with the following [[:scripting|embedded script]]: | ||
| <code> | <code> | ||
| Line 28: | Line 30: | ||
| This method is of course a hack which will likely be obsoleted by scripting language improvements in the future. | This method is of course a hack which will likely be obsoleted by scripting language improvements in the future. | ||
| + | |||