iPXE discussion forum
How setup iPXE to skip dhcp root-path parameter on boot - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: How setup iPXE to skip dhcp root-path parameter on boot (/showthread.php?tid=7894)



How setup iPXE to skip dhcp root-path parameter on boot - dosik - 2015-12-25 04:41

Hello.
Merry Christmas!
I have the following issue: For my boot image needed option dhcp root-path for future use in the format of IP:/some/path/. But if my DHCP server returns it, iPXE trying to connect SAN device and receives an error - Could not open SAN device: Operation not supported (http://ipxe.org/3c092003).
Can I setup iPXE so that it skip and ignored the option dhcp root-path and continues to boot without attempting to open SAN device?
Best regards.


RE: How setup iPXE to skip dhcp root-path parameter on boot - MultimediaMan - 2016-01-19 08:25

(2015-12-25 04:41)dosik Wrote:  Hello.
Merry Christmas!
I have the following issue: For my boot image needed option dhcp root-path for future use in the format of IP:/some/path/. But if my DHCP server returns it, iPXE trying to connect SAN device and receives an error - Could not open SAN device: Operation not supported (http://ipxe.org/3c092003).
Can I setup iPXE so that it skip and ignored the option dhcp root-path and continues to boot without attempting to open SAN device?
Best regards.

Yes:

Code:
unset {$17} ||
will zero out the root-path, if you want to keep root-path and not boot from it, do something like this:

Code:
iseq {$17} $actualdhcp_root-path && goto action_1 || goto_action2

:action_1
boot

:action_2
$do_what_you_need