From 625873827de104ddf39153212826241a3a00e4fa Mon Sep 17 00:00:00 2001 From: Juri Grabowski Date: Thu, 31 Mar 2022 16:13:48 +0200 Subject: [PATCH 1/2] add opsi --- README.md | 1 + endpoints.yml | 7 ++++ roles/netbootxyz/templates/menu/opsi.ipxe.j2 | 42 ++++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 roles/netbootxyz/templates/menu/opsi.ipxe.j2 diff --git a/README.md b/README.md index b029ef1411..cf8acd6d19 100644 --- a/README.md +++ b/README.md @@ -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 | diff --git a/endpoints.yml b/endpoints.yml index 96003ca2d3..c4ba275fe1 100644 --- a/endpoints.yml +++ b/endpoints.yml @@ -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: diff --git a/roles/netbootxyz/templates/menu/opsi.ipxe.j2 b/roles/netbootxyz/templates/menu/opsi.ipxe.j2 new file mode 100644 index 0000000000..f51cd08783 --- /dev/null +++ b/roles/netbootxyz/templates/menu/opsi.ipxe.j2 @@ -0,0 +1,42 @@ +#!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 From 152827f2e5bbf542bed43fd0bfa90fc10ff0bfc1 Mon Sep 17 00:00:00 2001 From: gratuxri Date: Wed, 13 Apr 2022 23:56:58 +0200 Subject: [PATCH 2/2] Update opsi.ipxe.j2 --- roles/netbootxyz/templates/menu/opsi.ipxe.j2 | 1 - 1 file changed, 1 deletion(-) diff --git a/roles/netbootxyz/templates/menu/opsi.ipxe.j2 b/roles/netbootxyz/templates/menu/opsi.ipxe.j2 index f51cd08783..6e8afbf9b1 100644 --- a/roles/netbootxyz/templates/menu/opsi.ipxe.j2 +++ b/roles/netbootxyz/templates/menu/opsi.ipxe.j2 @@ -30,7 +30,6 @@ item boot=lang=da video=vesa:ywrap,mtrr vga=791 service nodhcp --- ${space} Star choose opsi_method || goto dban_exit goto opsi_boot - :opsi_boot imgfree kernel ${kernel_url} ${opsi_method} ${cmdline}