iPXE discussion forum

Full Version: How setup iPXE to skip dhcp root-path parameter on boot
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
(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
Reference URL's