summaryrefslogtreecommitdiff
path: root/roles/installer/ubuntu/iso/templates
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-07-01 20:32:35 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-07-01 20:32:35 +0200
commitc2d011a50b37ad3e02e965dbb8c8960835165764 (patch)
treeb27d2691903db5b52ba31adbdcc4f30975c4cb38 /roles/installer/ubuntu/iso/templates
parentch-equinox-* install ddrecsue (diff)
parentcosmetic changes (diff)
Merge branch 'topic/new-ubuntu-installer'
Diffstat (limited to 'roles/installer/ubuntu/iso/templates')
-rw-r--r--roles/installer/ubuntu/iso/templates/grub.cfg.j218
-rw-r--r--roles/installer/ubuntu/iso/templates/isolinux.cfg.j215
2 files changed, 33 insertions, 0 deletions
diff --git a/roles/installer/ubuntu/iso/templates/grub.cfg.j2 b/roles/installer/ubuntu/iso/templates/grub.cfg.j2
new file mode 100644
index 00000000..f49d7f40
--- /dev/null
+++ b/roles/installer/ubuntu/iso/templates/grub.cfg.j2
@@ -0,0 +1,18 @@
+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
+set timeout=10
+set default=0
+
+menuentry "automated installer for {{ inventory_hostname }}" {
+ set gfxpayload=keep
+ linux /casper/vmlinuz quiet nopersistent autoinstall "ds=nocloud;s=/cdrom/autoinstall/{{ inventory_hostname }}/" {{ (install_cooked.kernel_cmdline | default([])) | join(' ') }}
+ initrd /casper/initrd
+}
diff --git a/roles/installer/ubuntu/iso/templates/isolinux.cfg.j2 b/roles/installer/ubuntu/iso/templates/isolinux.cfg.j2
new file mode 100644
index 00000000..99401b8b
--- /dev/null
+++ b/roles/installer/ubuntu/iso/templates/isolinux.cfg.j2
@@ -0,0 +1,15 @@
+DEFAULT {{ inventory_hostname }}
+TIMEOUT 100
+PROMPT 1
+SAY *****************************************
+SAY **
+SAY ** Distro: {{ install_distro }}
+SAY ** Codename: {{ install_codename }}
+SAY **
+SAY ** will be booting automated installer for {{ inventory_hostname }} in 10s ...
+SAY **
+
+LABEL {{ inventory_hostname }}
+ KERNEL /casper/vmlinuz
+ INITRD /casper/initrd
+ APPEND quiet nopersistent autoinstall ds=nocloud;s=/cdrom/autoinstall/{{ inventory_hostname }}/ {{ (install_cooked.kernel_cmdline | default([])) | join(' ') }}