From 8f41dd37f2f1015883087ea055df8c5a573e226a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 3 Jan 2022 19:23:24 +0100 Subject: Rework syslinux. --- templates/syslinux.cfg.epp | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'templates') diff --git a/templates/syslinux.cfg.epp b/templates/syslinux.cfg.epp index 4386b74..0d0b946 100644 --- a/templates/syslinux.cfg.epp +++ b/templates/syslinux.cfg.epp @@ -1,6 +1,5 @@ <%- | String $default, - Hash $linux, - Hash $com32, + Hash $entries, | -%> # Config file for Syslinux - # /boot/syslinux/syslinux.cfg @@ -53,17 +52,9 @@ MENU COLOR tabmsg 31;40 #30ffffff #00000000 std #-* -<%- $linux.each |$name, $entry| { -%> +<%- $entries.each |$name, $entry| { -%> LABEL <%= $name %> - MENU LABEL <%= $entry['label'] %> - LINUX ../arch/vmlinuz-<%= $syslinux::kernel %> - APPEND <%= $entry['args'] %> - INITRD ../arch/<%= $entry['initrd'] %> + <%- $entry.each |$k, $v| { -%> + <%= $k %> <%= $v %> + <%- } -%> <%- } -%> - -<%- $com32.each |$name, $entry| { -%> -LABEL <%= $name %> - MENU LABEL <%= $entry['label'] %> - COM32 <%= $entry['com'] %>.c32 -<%- } -%> - -- cgit v1.2.3