summaryrefslogtreecommitdiffstats
path: root/roles/bootstrap/templates
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-04-23 00:43:45 +0200
committerAhmed Abdelhalim <[email protected]>2026-04-23 00:43:45 +0200
commit691d9a21678a44cb73dfcb295a50e17a013546d4 (patch)
treefbf35cae2220383c70840e91b08bd8e4b0924267 /roles/bootstrap/templates
parent30eb7447283d6f8a59f081a5b75a8ced3590b44e (diff)
Refactor bootstrap with mac support
Diffstat (limited to 'roles/bootstrap/templates')
-rw-r--r--roles/bootstrap/templates/refind.conf.j25
-rw-r--r--roles/bootstrap/templates/refind_arch.conf.j213
-rw-r--r--roles/bootstrap/templates/refind_linux.conf.j22
-rw-r--r--roles/bootstrap/templates/refind_ubuntu.conf.j213
4 files changed, 31 insertions, 2 deletions
diff --git a/roles/bootstrap/templates/refind.conf.j2 b/roles/bootstrap/templates/refind.conf.j2
index 995ae1e..3b15a3d 100644
--- a/roles/bootstrap/templates/refind.conf.j2
+++ b/roles/bootstrap/templates/refind.conf.j2
@@ -1,5 +1,10 @@
timeout 5
textonly true
+scan_all_linux_kernels false
+dont_scan_files vmlinuz,vmlinuz-linux,initrd.img,initramfs-linux.img
+hideui hints
{% if bootstrap_mac %}
spoof_osx_version 12.7
{% endif %}
+include ubuntu.conf
+include arch.conf
diff --git a/roles/bootstrap/templates/refind_arch.conf.j2 b/roles/bootstrap/templates/refind_arch.conf.j2
new file mode 100644
index 0000000..0551cb3
--- /dev/null
+++ b/roles/bootstrap/templates/refind_arch.conf.j2
@@ -0,0 +1,13 @@
+menuentry "Arch Linux" {
+ volume "boot"
+ loader \EFI\arch\vmlinuz-linux
+ initrd \EFI\arch\initramfs-linux.img
+ options "root=PARTLABEL={{ partition_root.name }} rw console=tty1{% if bootstrap_mac %} {{ bootstrap_mac_boot_args }}{% endif %}"
+}
+
+menuentry "Arch Linux (terminal)" {
+ volume "boot"
+ loader \EFI\arch\vmlinuz-linux
+ initrd \EFI\arch\initramfs-linux.img
+ options "root=PARTLABEL={{ partition_root.name }} rw console=tty1 systemd.unit=multi-user.target{% if bootstrap_mac %} {{ bootstrap_mac_boot_args }}{% endif %}"
+}
diff --git a/roles/bootstrap/templates/refind_linux.conf.j2 b/roles/bootstrap/templates/refind_linux.conf.j2
deleted file mode 100644
index 9b5868b..0000000
--- a/roles/bootstrap/templates/refind_linux.conf.j2
+++ /dev/null
@@ -1,2 +0,0 @@
-"{{ ansible_facts['distribution'] }}" "root=PARTLABEL={{ partition_root.name }} rw console=tty1{% if bootstrap_mac %} {{ bootstrap_mac_boot_args }}{% endif %}"
-"{{ ansible_facts['distribution'] }} (terminal)" "root=PARTLABEL={{ partition_root.name }} rw console=tty1 systemd.unit=multi-user.target{% if bootstrap_mac %} {{ bootstrap_mac_boot_args }}{% endif %}"
diff --git a/roles/bootstrap/templates/refind_ubuntu.conf.j2 b/roles/bootstrap/templates/refind_ubuntu.conf.j2
new file mode 100644
index 0000000..20d5586
--- /dev/null
+++ b/roles/bootstrap/templates/refind_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 %}"
+}