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

feat(windows): Add support for booting Windows on arm64 #1542

Open
wants to merge 3 commits into
base: development
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
2 changes: 2 additions & 0 deletions roles/netbootxyz/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -856,4 +856,6 @@ utilitiespcbios64:
util_path: https://mirror.sysadminguide.net/ubcd/ubcd539.iso
version: '539'
wimboot_location: http://${boot_domain}/wimboot
wimboot_arm_location: http://${boot_domain}/wimboot.arm64
wimboot_upstream_url: https://github.com/ipxe/wimboot/releases/latest/download/wimboot
wimboot_arm64_upstream_url: https://github.com/ipxe/wimboot/releases/latest/download/wimboot.arm64
6 changes: 5 additions & 1 deletion roles/netbootxyz/tasks/generate_disks_base.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

- name: Gathering facts
ansible.builtin.setup:

Expand Down Expand Up @@ -36,6 +35,11 @@
url: "{{ wimboot_upstream_url }}"
dest: "{{ netbootxyz_root }}/wimboot"

- name: Retrieve latest wimboot.arm64
ansible.builtin.get_url:
url: "{{ wimboot_arm64_upstream_url }}"
dest: "{{ netbootxyz_root }}/wimboot.arm64"

- name: Copy helper apps
ansible.builtin.copy:
src: "{{ item }}"
Expand Down
2 changes: 1 addition & 1 deletion roles/netbootxyz/templates/menu/boot.cfg.j2
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ set menu_unix 0
set menu_freedos 0
set menu_live 0
set menu_live_arm 1
set menu_windows 0
set menu_windows 1
set menu_utils 0
set menu_utils_arm 1
set menu_pci 0
Expand Down
8 changes: 4 additions & 4 deletions roles/netbootxyz/templates/menu/windows.ipxe.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ goto ${menu} ||
:windows
set os Microsoft Windows
clear win_version
menu ${os}
menu ${os}
item --gap Installers
item win_install ${space} Load ${os} Installer...
item --gap Options:
Expand All @@ -19,7 +19,7 @@ choose win_version || goto windows_exit
goto ${win_version}

:arch_set
iseq ${win_arch} x64 && set win_arch x86 || set win_arch x64
iseq ${win_arch} x64 && set win_arch x86 && set win_arch arm64 || set win_arch x64
goto windows

:url_set
Expand All @@ -43,9 +43,9 @@ isset ${win_base_url} && goto boot || echo URL not set... && goto url_set

:boot
imgfree
kernel {{ wimboot_location }}
iseq ${win_arch} arm64 && kernel {{ wimboot_arm_location }} || kernel {{ wimboot_location }}
initrd -n bootmgr ${win_base_url}/${win_arch}/bootmgr bootmgr ||
initrd -n bootmgr.efi ${win_base_url}/${win_arch}/bootmgr.efi bootmgr.efi ||
initrd -n bootmgr.efi ${win_base_url}/${win_arch}/bootmgr.efi bootmgr.efi ||
initrd -n bcd ${win_base_url}/${win_arch}/boot/bcd bcd ||
initrd -n bcd ${win_base_url}/${win_arch}/Boot/BCD bcd ||
initrd -n boot.sdi ${win_base_url}/${win_arch}/boot/boot.sdi boot.sdi ||
Expand Down