summaryrefslogtreecommitdiff
path: root/roles/installer/ubuntu/usb/templates
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-06-30 20:07:53 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-06-30 20:07:53 +0200
commitf8a7983a5fa4f6f1e583838ec0de82af08bbe340 (patch)
tree211c0e8f369b709546bf5013c5accb66059bfa9c /roles/installer/ubuntu/usb/templates
parentubuntu installer: add support for software raid (WIP) (diff)
fix some issues with ubuntu autoinstall and add preliminary ubuntu/usb installer role
Diffstat (limited to 'roles/installer/ubuntu/usb/templates')
-rw-r--r--roles/installer/ubuntu/usb/templates/grub.cfg.j218
-rw-r--r--roles/installer/ubuntu/usb/templates/isolinux.cfg.j215
2 files changed, 33 insertions, 0 deletions
diff --git a/roles/installer/ubuntu/usb/templates/grub.cfg.j2 b/roles/installer/ubuntu/usb/templates/grub.cfg.j2
new file mode 100644
index 00000000..6ba4e6be
--- /dev/null
+++ b/roles/installer/ubuntu/usb/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 autoinstall "ds=nocloud;s=/cdrom/autoinstall/" {{ (install_cooked.kernel_cmdline | default([])) | join(' ') }}
+ initrd /casper/initrd
+}
diff --git a/roles/installer/ubuntu/usb/templates/isolinux.cfg.j2 b/roles/installer/ubuntu/usb/templates/isolinux.cfg.j2
new file mode 100644
index 00000000..68269dfc
--- /dev/null
+++ b/roles/installer/ubuntu/usb/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 autoinstall ds=nocloud;s=/cdrom/autoinstall/ {{ (install_cooked.kernel_cmdline | default([])) | join(' ') }}