Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #37862 - Support EFI boot on windows #10336

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,16 @@ ping --count 1 ${netX/dns} || echo Ping to DNS failed or ping command not availa
set boot-url tftp://<%= foreman_request_addr %>/
kernel ${boot-url}<%= @host.operatingsystem.bootfile(medium_provider,:kernel) %>

iseq ${platform} efi && goto win_efi || goto win_legacy

:win_efi
initrd -n peSetup.cmd <%= foreman_url('script') %> peSetup.cmd
goto boot

:win_legacy
initrd <%= foreman_url('script') %> peSetup.cmd

:boot
initrd ${boot-url}<%= @host.operatingsystem.bootfile(medium_provider,:bcd) %> BCD
initrd ${boot-url}<%= @host.operatingsystem.bootfile(medium_provider,:bootsdi) %> boot.sdi
initrd ${boot-url}<%= @host.operatingsystem.bootfile(medium_provider,:bootwim) %> boot.wim
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,16 @@ description: |
set boot-url http://<%= foreman_request_addr %>/httpboot/
kernel ${boot-url}<%= @host.operatingsystem.bootfile(medium_provider,:kernel) %>

iseq ${platform} efi && goto win_efi || goto win_legacy

:win_efi
initrd -n peSetup.cmd <%= foreman_url('script') %> peSetup.cmd
goto boot

:win_legacy
initrd <%= foreman_url('script') %> peSetup.cmd

:boot
initrd ${boot-url}<%= @host.operatingsystem.bootfile(medium_provider,:bcd) %> BCD
initrd ${boot-url}<%= @host.operatingsystem.bootfile(medium_provider,:bootsdi) %> boot.sdi
initrd ${boot-url}<%= @host.operatingsystem.bootfile(medium_provider,:bootwim) %> boot.wim
Expand Down
Loading