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

add opsi #1103

Open
wants to merge 2 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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ In addition to being able to host netboot.xyz locally, you can also create your
| OpenBSD | https://openbsd.org | Yes | No |
| openEuler | https://openeuler.org | Yes | No |
| OpenSUSE | https://opensuse.org | Yes | No |
| OPSI | https://download.uib.de | Yes | No |
| Oracle Linux | https://www.oracle.com/linux/ | Yes | Installer |
| Parrot Security | https://www.parrotsec.org | No | Yes |
| Peppermint | https://peppermintos.com | No | Yes |
Expand Down
7 changes: 7 additions & 0 deletions endpoints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,13 @@ endpoints:
- squashfs.img
os: oracle
version: '7'
OPSI:
path: /asset-mirror/releases/download/20220330-7a5741de/
files:
- vmlinuz-x64
- miniroot-x64.zstd
os: opsi
version: current
kodachi-6:
path: /ubuntu-squash/releases/download/6.2-2a23039c/
files:
Expand Down
41 changes: 41 additions & 0 deletions roles/netbootxyz/templates/menu/opsi.ipxe.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!ipxe

goto ${menu} ||

:opsi_menu
menu OPSI {{ endpoints.opsi.version }} (Open PC Server Integration)
set kernel_url ${live_endpoint}{{ endpoints.opsi.path }}vmlinuz-x64
item --gap THIS SOFTWARE DESTROYS DATA
item --gap EVERY BOOT OPTION IS DESTRUCTIVE
item --gap DO NOT PROCEED IF YOU DO NOT KNOW WHAT THIS IS
item opsi_exit ${space} Go Back
item opsi_options ${space} Proceed I know what I am doing
choose menu || goto opsi_exit
goto ${menu}

:opsi_options
clear menu
menu OPSI {{ endpoints.opsi.version }} (Open PC Server Integration)
item --gap Choose a method:
item boot=lang=en video=vesa:ywrap,mtrr vga=791 service --- ${space} Start opsi (english)
item boot=lang=en video=vesa:ywrap,mtrr vga=791 service nodhcp --- ${space} Start opsi without DHCP (english)
item boot=lang=de video=vesa:ywrap,mtrr vga=791 service --- ${space} Opsi starten (deutsch)
item boot=lang=de video=vesa:ywrap,mtrr vga=791 service nodhcp --- ${space} Opsi ohne DHCP starten (deutsch)
item boot=lang=fr video=vesa:ywrap,mtrr vga=791 service --- ${space} Start opsi (french)
item boot=lang=fr video=vesa:ywrap,mtrr vga=791 service nodhcp --- ${space} Start opsi without DHCP (french)
item boot=lang=it video=vesa:ywrap,mtrr vga=791 service --- ${space} Start opsi (italian)
item boot=lang=it video=vesa:ywrap,mtrr vga=791 service nodhcp --- ${space} Start opsi without DHCP (italian)
item boot=lang=da video=vesa:ywrap,mtrr vga=791 service --- ${space} Start opsi (danish)
item boot=lang=da video=vesa:ywrap,mtrr vga=791 service nodhcp --- ${space} Start opsi without DHCP (danish)
choose opsi_method || goto dban_exit
goto opsi_boot

:opsi_boot
imgfree
kernel ${kernel_url} ${opsi_method} ${cmdline}
initrd ${live_endpoint}{{ endpoints.opsi.path }}miniroot-x64.zstd
boot

:opsi_exit
clear menu
exit 0