index.html.j2 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. #!ipxe
  2. #### {{ boot_domain }} initial loader ####
  3. #### see https://netboot.xyz for more information ####
  4. {% if bootloader_https_enabled | bool %}
  5. set conn_type https
  6. chain --autofree https://{{ boot_domain }}/menu.ipxe || echo HTTPS failed... attempting HTTP...
  7. {% endif %}
  8. {% if bootloader_http_enabled | bool %}
  9. set conn_type http
  10. chain --autofree http://{{ boot_domain }}/menu.ipxe || echo HTTP failed, localbooting...
  11. {% endif %}
  12. exit
  13. <!DOCTYPE html>
  14. <html lang="en">
  15. <head>
  16. <title>{{ site_name }} BootLoaders - Powered by netboot.xyz</title>
  17. <meta name='description' content='Download links for available {{ site_name }} bootloaders.'>
  18. <meta name="viewport" content="width=device-width, initial-scale=1">
  19. <style>
  20. table, th, td {
  21. padding: 5px;
  22. border: 1px solid black;
  23. }
  24. </style>
  25. </head>
  26. <body>
  27. <div style="font-family: monospace, fixed; font-weight: bold;">
  28. {% if index_title.stdout is defined %}
  29. {{ index_title.stdout }}
  30. {% else %}
  31. <h1>{{ site_name }}</h1>
  32. {% endif %}
  33. <p>
  34. Version: {{ boot_version }}<br>
  35. Powered by <a href=https://netboot.xyz>netboot.xyz</a>
  36. </p>
  37. {% if generate_disks_hybrid == true %}
  38. <p>Legacy and EFI Combined iPXE Bootloaders</p>
  39. <table style="width:100%">
  40. <!-- table header -->
  41. <tr>
  42. <th style="width:10%;"> Type </th>
  43. <th style="width:20%;"> Bootloader </th>
  44. <th style="width:70%;"> Description </th>
  45. </tr>
  46. <!-- table rows -->
  47. {% for item in bootloaders.hybrid %}
  48. <tr>
  49. <td> {{ item.type }} </td>
  50. <td> <a href="ipxe/{{ site_name }}{{ item.output_bin }}">{{ site_name }}{{ item.output_bin }}</a> </td>
  51. <td> {{ item.desc }} </td>
  52. </tr>
  53. {% endfor %}
  54. </table>
  55. {% endif %}
  56. {% if generate_disks_legacy == true %}
  57. <p>Legacy (PCBIOS) iPXE Bootloaders</p>
  58. <table style="width:100%">
  59. <!-- table header -->
  60. <tr>
  61. <th style="width:10%;"> Type </th>
  62. <th style="width:20%;"> Bootloader </th>
  63. <th style="width:70%;"> Description </th>
  64. </tr>
  65. <!-- table rows -->
  66. {% for item in bootloaders.legacy %}
  67. <tr>
  68. <td> {{ item.type }} </td>
  69. <td> <a href="ipxe/{{ site_name }}{{ item.output_bin }}">{{ site_name }}{{ item.output_bin }}</a> </td>
  70. <td> {{ item.desc }} </td>
  71. </tr>
  72. {% endfor %}
  73. </table>
  74. {% endif %}
  75. {% if generate_disks_efi == true %}
  76. <p>UEFI iPXE Bootloaders</p>
  77. <table style="width:100%">
  78. <!-- table header -->
  79. <tr>
  80. <th style="width:10%;"> Type </th>
  81. <th style="width:20%;"> Bootloader </th>
  82. <th style="width:70%;"> Description </th>
  83. </tr>
  84. <!-- table rows -->
  85. {% for item in bootloaders.uefi %}
  86. <tr>
  87. <td> {{ item.type }} </td>
  88. <td> <a href="ipxe/{{ site_name }}{{ item.output_bin }}">{{ site_name }}{{ item.output_bin }}</a> </td>
  89. <td> {{ item.desc }} </td>
  90. </tr>
  91. {% endfor %}
  92. </table>
  93. {% endif %}
  94. {% if generate_disks_arm == true %}
  95. <p>ARM64 iPXE Bootloaders</p>
  96. <table style="width:100%">
  97. <!-- table header -->
  98. <tr>
  99. <th style="width:10%;"> Type </th>
  100. <th style="width:20%;"> Bootloader </th>
  101. <th style="width:70%;"> Description </th>
  102. </tr>
  103. <!-- table rows -->
  104. {% for item in bootloaders.arm %}
  105. <tr>
  106. <td> {{ item.type }} </td>
  107. <td> <a href="ipxe/{{ site_name }}{{ item.output_bin }}">{{ site_name }}{{ item.output_bin }}</a> </td>
  108. <td> {{ item.desc }} </td>
  109. </tr>
  110. {% endfor %}
  111. </table>
  112. {% endif %}
  113. {% if generate_disks_rpi == true %}
  114. <p>Raspberry Pi iPXE Bootloaders</p>
  115. <table style="width:100%">
  116. <!-- table header -->
  117. <tr>
  118. <th style="width:10%;"> Type </th>
  119. <th style="width:20%;"> Bootloader </th>
  120. <th style="width:70%;"> Description </th>
  121. </tr>
  122. <!-- table rows -->
  123. {% for item in bootloaders.rpi %}
  124. <tr>
  125. <td> {{ item.type }} </td>
  126. <td> <a href="ipxe/{{ site_name }}{{ item.output_bin }}">{{ site_name }}{{ item.output_bin }}</a> </td>
  127. <td> {{ item.desc }} </td>
  128. </tr>
  129. {% endfor %}
  130. </table>
  131. {% endif %}
  132. <p>Checksums<p>
  133. <a href="ipxe/{{ site_name }}-sha256-checksums.txt">SHA256 checksums</a>
  134. </div>
  135. </body>
  136. </html>