mirror of
https://github.com/netbootxyz/netboot.xyz.git
synced 2026-01-23 02:34:26 +00:00
Add ipxe builds for linux userspace
This commit is contained in:
parent
0a5fb50ad1
commit
807cd83674
5 changed files with 60 additions and 2 deletions
|
|
@ -82,6 +82,7 @@ generate_checksums: true
|
|||
generate_disks: true
|
||||
generate_disks_arm: false
|
||||
generate_disks_efi: true
|
||||
generate_disks_linux: false
|
||||
generate_disks_hybrid: false
|
||||
generate_disks_legacy: true
|
||||
generate_disks_rpi: false
|
||||
|
|
|
|||
|
|
@ -6,6 +6,10 @@
|
|||
when:
|
||||
- generate_disks_legacy | default(true) | bool
|
||||
|
||||
- include: generate_disks_linux.yml
|
||||
when:
|
||||
- generate_disks_linux | default(false) | bool
|
||||
|
||||
- include: generate_disks_efi.yml
|
||||
when:
|
||||
- generate_disks_efi | default(true) | bool
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
bin/ipxe.dsk \
|
||||
bin/ipxe.lkrn \
|
||||
bin/ipxe.kpxe \
|
||||
bin/undionly.kpxe \
|
||||
bin-x86_64-linux/slirp.linux
|
||||
bin/undionly.kpxe
|
||||
args:
|
||||
chdir: "{{ ipxe_source_dir }}/src"
|
||||
tags:
|
||||
|
|
|
|||
53
roles/netbootxyz/tasks/generate_disks_linux.yml
Normal file
53
roles/netbootxyz/tasks/generate_disks_linux.yml
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
---
|
||||
|
||||
- name: Copy netboot.xyz local legacy iPXE configs
|
||||
copy:
|
||||
src: "ipxe/local/{{ item }}"
|
||||
dest: "{{ ipxe_source_dir }}/src/config/local/{{ item }}"
|
||||
with_items:
|
||||
- colour.h
|
||||
- console.h
|
||||
- crypto.h
|
||||
- general.h
|
||||
|
||||
- name: Set trust file to ipxe ca
|
||||
set_fact:
|
||||
trust_files: "{{ cert_dir }}/{{ ipxe_ca_filename }}"
|
||||
when: not generate_signatures
|
||||
|
||||
- name: Combine trust args if set
|
||||
set_fact:
|
||||
trust_files: "{{ cert_dir }}/{{ ipxe_ca_filename }},{{ cert_dir }}/{{ cert_file_filename }}"
|
||||
when: generate_signatures | bool
|
||||
|
||||
- name: Compile iPXE Linux bootloader for Legacy BIOS
|
||||
shell: |
|
||||
make clean
|
||||
make EMBED={{ bootloader_filename }} \
|
||||
TRUST={{ trust_files }} \
|
||||
bin-x86_64-linux/slirp.linux
|
||||
args:
|
||||
chdir: "{{ ipxe_source_dir }}/src"
|
||||
tags:
|
||||
- skip_ansible_lint
|
||||
when: ipxe_debug_enabled | bool == false
|
||||
|
||||
- name: Compile iPXE Linux bootloader for Legacy BIOS with debug flags
|
||||
shell: |
|
||||
make clean
|
||||
make EMBED={{ bootloader_filename }} \
|
||||
DEBUG={{ ipxe_debug_options }} \
|
||||
TRUST={{ trust_files }} \
|
||||
bin-x86_64-linux/slirp.linux
|
||||
args:
|
||||
chdir: "{{ ipxe_source_dir }}/src"
|
||||
tags:
|
||||
- skip_ansible_lint
|
||||
when: ipxe_debug_enabled | bool
|
||||
|
||||
- name: Copy iPXE linux binary for Legacy BIOS to http directory
|
||||
copy:
|
||||
src: "{{ ipxe_source_dir }}/src/bin-x86_64-linux/slirp.linux"
|
||||
dest: "{{ netbootxyz_root }}/ipxe/{{ bootloader_filename }}-linux.bin"
|
||||
remote_src: True
|
||||
when: bootloader_filename != "netboot.xyz-packet"
|
||||
|
|
@ -3,6 +3,7 @@ sigs_menu: true
|
|||
sigs_enabled: true
|
||||
generate_disks_arm: true
|
||||
generate_disks_hybrid: true
|
||||
generate_disks_linux: true
|
||||
generate_disks_rpi: true
|
||||
generate_version_file: true
|
||||
generate_local_vars: false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue