diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-01-03 19:23:24 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-01-03 19:31:24 +0100 |
commit | 8f41dd37f2f1015883087ea055df8c5a573e226a (patch) | |
tree | c31cbf814deb27645a31c347c4ccb6faddb816c6 /templates | |
parent | Setup syslinux. (diff) | |
download | syslinux-8f41dd37f2f1015883087ea055df8c5a573e226a.tar.gz syslinux-8f41dd37f2f1015883087ea055df8c5a573e226a.tar.xz |
Rework syslinux.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/syslinux.cfg.epp | 19 |
1 files changed, 5 insertions, 14 deletions
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 -<%- } -%> - |