Преглед на файлове

Merge pull request #542 from netbootxyz/anarchyn

adding anarchy installer
Antony Messerli преди 5 години
родител
ревизия
229e925d94
променени са 3 файла, в които са добавени 35 реда и са изтрити 0 реда
  1. 1 0
      README.md
  2. 7 0
      roles/netbootxyz/defaults/main.yml
  3. 27 0
      roles/netbootxyz/templates/menu/anarchy.ipxe.j2

+ 1 - 0
README.md

@@ -99,6 +99,7 @@ In addition to being able to host netboot.xyz locally, you can also create your
 | Name       | URL             | Installer Kernel | Live OS       |
 |------------|-----------------|------------------|---------------|
 |Alpine Linux| https://alpinelinux.org | Yes | No |
+|Anarchy Linux| https://www.anarchylinux.org | Yes | No |
 |Arch Linux| https://www.archlinux.org| Yes | No |
 |Backbox|https://www.backbox.org | No | Yes |
 |BlackArch Linux|https://blackarch.org| Yes | Yes |

+ 7 - 0
roles/netbootxyz/defaults/main.yml

@@ -84,6 +84,13 @@ releases:
         code_name: "v3.11"
       - name: "Edge (development)"
         code_name: "edge"
+  anarchy:
+    name: "Anarchy Linux"
+    enabled: true
+    menu: "linux"
+    versions:
+      - name: "current"
+        code_name: "current"
   archlinux:
     name: "Arch Linux"
     mirror: "mirror.rackspace.com"

+ 27 - 0
roles/netbootxyz/templates/menu/anarchy.ipxe.j2

@@ -0,0 +1,27 @@
+#!ipxe
+
+# Anarchy Linux Operating System
+# https://www.anarchylinux.org/
+
+goto ${menu}
+
+:anarchy
+set os {{ releases.anarchy.name }}
+menu ${os} Installers
+{% for item in releases.anarchy.versions %}
+item {{ item.code_name }} ${space} ${os} {{ item.name }}
+{% endfor %}
+choose anarchy_version || goto anarchy_exit
+goto anarchy_boot
+
+:anarchy_boot
+imgfree
+set url ${live_endpoint}{{ endpoints.anarchy.path }}
+kernel ${url}vmlinuz archisobasedir=arch ip=dhcp archiso_http_srv=${url} initrd=initrd
+initrd ${url}initrd
+boot
+goto anarchy_exit
+
+:anarchy_exit
+clear menu
+exit 0