diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-11-05 16:25:36 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-01-03 18:55:01 +0100 |
commit | f3883f13d3df36389112f3f33d438f36a2c347e2 (patch) | |
tree | c2794a13a7009a354456b7e957deedb91ea76b98 /modules/syslinux/templates | |
parent | Manage global hiera. (diff) | |
download | webdav_server-f3883f13d3df36389112f3f33d438f36a2c347e2.tar.gz webdav_server-f3883f13d3df36389112f3f33d438f36a2c347e2.tar.xz |
Setup syslinux.
Diffstat (limited to 'modules/syslinux/templates')
-rw-r--r-- | modules/syslinux/templates/syslinux.cfg.epp | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/modules/syslinux/templates/syslinux.cfg.epp b/modules/syslinux/templates/syslinux.cfg.epp new file mode 100644 index 0000000..4386b74 --- /dev/null +++ b/modules/syslinux/templates/syslinux.cfg.epp @@ -0,0 +1,69 @@ +<%- | String $default, + Hash $linux, + Hash $com32, +| -%> +# Config file for Syslinux - +# /boot/syslinux/syslinux.cfg +# +# Comboot modules: +# * menu.c32 - provides a text menu +# * vesamenu.c32 - provides a graphical menu +# * chain.c32 - chainload MBRs, partition boot sectors, Windows bootloaders +# * hdt.c32 - hardware detection tool +# * reboot.c32 - reboots the system +# +# To Use: Copy the respective files from /usr/lib/syslinux to /boot/syslinux. +# If /usr and /boot are on the same file system, symlink the files instead +# of copying them. +# +# If you do not use a menu, a 'boot:' prompt will be shown and the system +# will boot automatically after 5 seconds. +# +# Please review the wiki: https://wiki.archlinux.org/index.php/Syslinux +# The wiki provides further configuration examples + +DEFAULT <%= $default %> +PROMPT 0 # Set to 1 if you always want to display the boot: prompt +TIMEOUT 50 +# You can create syslinux keymaps with the keytab-lilo tool +#KBDMAP de.ktl + +# Menu Configuration +# Either menu.c32 or vesamenu32.c32 must be copied to /boot/syslinux +UI menu.c32 +#UI vesamenu.c32 + +# Refer to http://syslinux.zytor.com/wiki/index.php/Doc/menu +MENU TITLE Arch Linux +#MENU BACKGROUND splash.png +MENU COLOR border 30;44 #40ffffff #a0000000 std +MENU COLOR title 1;36;44 #9033ccff #a0000000 std +MENU COLOR sel 7;37;40 #e0ffffff #20ffffff all +MENU COLOR unsel 37;44 #50ffffff #a0000000 std +MENU COLOR help 37;40 #c0ffffff #a0000000 std +MENU COLOR timeout_msg 37;40 #80ffffff #00000000 std +MENU COLOR timeout 1;37;40 #c0ffffff #00000000 std +MENU COLOR msg07 37;40 #90ffffff #a0000000 std +MENU COLOR tabmsg 31;40 #30ffffff #00000000 std + +# boot sections follow +# +# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line. +# +#-* + + +<%- $linux.each |$name, $entry| { -%> +LABEL <%= $name %> + MENU LABEL <%= $entry['label'] %> + LINUX ../arch/vmlinuz-<%= $syslinux::kernel %> + APPEND <%= $entry['args'] %> + INITRD ../arch/<%= $entry['initrd'] %> +<%- } -%> + +<%- $com32.each |$name, $entry| { -%> +LABEL <%= $name %> + MENU LABEL <%= $entry['label'] %> + COM32 <%= $entry['com'] %>.c32 +<%- } -%> + |