Browse Source

Add EndeavourOS support

Antony Messerli 4 năm trước cách đây
mục cha
commit
bb53f1c23b
3 tập tin đã thay đổi với 39 bổ sung0 xóa
  1. 2 0
      CHANGELOG.md
  2. 1 0
      README.md
  3. 36 0
      roles/netbootxyz/templates/menu/endeavouros.ipxe.j2

+ 2 - 0
CHANGELOG.md

@@ -5,6 +5,8 @@ All notable changes to this project will be documented in this file.
 ## [Unreleased]
 
 ## [2.0.35]
+### Added
+- Support for EndeavourOS
 
 ## [2.0.34]
 ### Added

+ 1 - 0
README.md

@@ -112,6 +112,7 @@ In addition to being able to host netboot.xyz locally, you can also create your
 | Deepin | https://www.deepin.org | No | Yes |
 | Devuan | https://devuan.org | Yes | No |
 | Elementary OS | https://elementary.io | No | Yes |
+| EndeavourOS | https://endeavouros.com | No | Yes |
 | Fatdog64 | https://distro.ibiblio.org/fatdog/web/ | No | Yes |
 | Fedora | https://fedoraproject.org | Yes | Yes |
 | Feren OS | https://ferenos.weebly.com/ | Yes | No |

+ 36 - 0
roles/netbootxyz/templates/menu/endeavouros.ipxe.j2

@@ -0,0 +1,36 @@
+#!ipxe
+
+goto ${menu} ||
+
+:live_menu
+set os EndeavourOS
+menu ${os} - Current Arch [ ${arch} ]
+iseq ${arch} x86_64 && set arch_a amd64 || set arch_a ${arch}
+set ipparam BOOTIF=${netX/mac} ip=dhcp net.ifnames=0
+item --gap ${os} Versions
+{% for key, value in endpoints.items() | sort %}
+{% if value.os == "endeavouros" %}
+item {{ value.version }} ${space} ${os} {{ value.version }}
+{% endif %}
+{% endfor %}
+choose live_version || goto live_exit
+goto ${live_version}
+
+{% for key, value in endpoints.items() | sort %}
+{% if value.os == "endeavouros" %}
+:{{ value.version }}
+set url ${live_endpoint}{{ value.path }}
+goto boot
+
+{% endif %}
+{% endfor %}
+
+:boot
+imgfree
+kernel ${url}vmlinuz archisobasedir=arch ${ipparam} archiso_http_srv=${url} initrd=initrd ${cmdline}
+initrd ${url}initrd
+boot
+
+:live_exit
+clear menu
+exit 0