summaryrefslogtreecommitdiffstats
path: root/roles/bootstrap/templates/ubuntu
diff options
context:
space:
mode:
Diffstat (limited to 'roles/bootstrap/templates/ubuntu')
-rw-r--r--roles/bootstrap/templates/ubuntu/refind-sync-kernel.j24
-rw-r--r--roles/bootstrap/templates/ubuntu/ubuntu.conf.j213
2 files changed, 17 insertions, 0 deletions
diff --git a/roles/bootstrap/templates/ubuntu/refind-sync-kernel.j2 b/roles/bootstrap/templates/ubuntu/refind-sync-kernel.j2
new file mode 100644
index 0000000..3b72d4e
--- /dev/null
+++ b/roles/bootstrap/templates/ubuntu/refind-sync-kernel.j2
@@ -0,0 +1,4 @@
+#!/bin/sh
+mkdir -p /boot/efi/EFI/ubuntu
+cp /boot/vmlinuz /boot/efi/EFI/ubuntu/
+cp /boot/initrd.img /boot/efi/EFI/ubuntu/
diff --git a/roles/bootstrap/templates/ubuntu/ubuntu.conf.j2 b/roles/bootstrap/templates/ubuntu/ubuntu.conf.j2
new file mode 100644
index 0000000..20d5586
--- /dev/null
+++ b/roles/bootstrap/templates/ubuntu/ubuntu.conf.j2
@@ -0,0 +1,13 @@
+menuentry "Ubuntu" {
+ volume "boot"
+ loader \EFI\ubuntu\vmlinuz
+ initrd \EFI\ubuntu\initrd.img
+ options "root=PARTLABEL={{ partition_root.name }} rw console=tty1{% if bootstrap_mac %} {{ bootstrap_mac_boot_args }}{% endif %}"
+}
+
+menuentry "Ubuntu (terminal)" {
+ volume "boot"
+ loader \EFI\ubuntu\vmlinuz
+ initrd \EFI\ubuntu\initrd.img
+ options "root=PARTLABEL={{ partition_root.name }} rw console=tty1 systemd.unit=multi-user.target{% if bootstrap_mac %} {{ bootstrap_mac_boot_args }}{% endif %}"
+}