summaryrefslogtreecommitdiff
path: root/roles/installer/debian/usb/templates/syslinux.cfg.j2
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-07-11 04:21:12 +0200
committerChristian Pointner <equinox@spreadspace.org>2020-07-11 04:21:12 +0200
commit18cfada22a9acd031d3b77ba6132d700b611eedb (patch)
treea4e1e6242274accb71edf7a9075a95de80fa3a02 /roles/installer/debian/usb/templates/syslinux.cfg.j2
parentMerge branch 'topic/vm-host-network' (diff)
usb installer: add multi-host boot stick support
Diffstat (limited to 'roles/installer/debian/usb/templates/syslinux.cfg.j2')
-rw-r--r--roles/installer/debian/usb/templates/syslinux.cfg.j222
1 files changed, 22 insertions, 0 deletions
diff --git a/roles/installer/debian/usb/templates/syslinux.cfg.j2 b/roles/installer/debian/usb/templates/syslinux.cfg.j2
new file mode 100644
index 00000000..c91f7287
--- /dev/null
+++ b/roles/installer/debian/usb/templates/syslinux.cfg.j2
@@ -0,0 +1,22 @@
+SAY *****************************************
+SAY **
+{% if (ansible_play_hosts_all | length) == 1 %}
+DEFAULT {{ install_hostname }}
+SAY ** will be booting automated installer for {{ install_hostname }} in 10s ...
+TIMEOUT 100
+{% else %}
+SAY ** Please select host to install:
+SAY **
+{% for host in ansible_play_hosts_all %}
+SAY ** -> {{ host }}
+{% endfor %}
+{% endif %}
+SAY **
+PROMPT 1
+{% for host in ansible_play_hosts_all %}
+
+LABEL {{ host }}
+ KERNEL {{ syslinux_base_path }}linux
+ INITRD {{ syslinux_base_path }}initrd.{{ host }}.gz
+ APPEND install {{ (hostvars[host].install_cooked.kernel_cmdline | default([])) | join(' ') }}
+{% endfor %}