summaryrefslogtreecommitdiff
path: root/roles/installer/ubuntu/usb/templates/grub.cfg.j2
blob: 8282e95cc898aef5603631553cb93f8ba0879876 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
if loadfont $prefix/font.pf2 ; then
  set gfxmode=auto
  insmod efi_gop
  insmod efi_uga
  insmod gfxterm
  terminal_output gfxterm
fi

set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
{% if (ansible_play_hosts_all | length) == 1 %}
set timeout=10
set default=0
{% endif %}
{% for host in ansible_play_hosts_all %}

menuentry "automated installer for {{ host }}" {
  set gfxpayload=keep
  linux  /casper/vmlinuz quiet nopersistent autoinstall "ds=nocloud;s=/cdrom/autoinstall/{{ host }}/" {{ (hostvars[host].install.kernel_cmdline | default([])) | join(' ') }}
  initrd /casper/initrd
}
{% endfor %}