From 32975fbeb97d384400dad0d7ad7c00225756b1b7 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 25 Nov 2014 20:26:31 +0100 Subject: Pimp my boot menu --- data/ipxe-embed.template | 9 +++++ data/pxemenu.template | 92 +++++++++++++++++++++++++++++------------------- 2 files changed, 65 insertions(+), 36 deletions(-) create mode 100644 data/ipxe-embed.template (limited to 'data') diff --git a/data/ipxe-embed.template b/data/ipxe-embed.template new file mode 100644 index 0000000..e4cfb16 --- /dev/null +++ b/data/ipxe-embed.template @@ -0,0 +1,9 @@ +#!ipxe +set use-cached 1 +dhcp net0 +set net0.dhcp/next-server %ipaddress% +set net0.dhcp/filename ipxelinux.0 +set net0.dhcp/210:string v4/ +imgload pxelinux.0 +boot pxelinux.0 + diff --git a/data/pxemenu.template b/data/pxemenu.template index 11e3535..61ec1fa 100644 --- a/data/pxemenu.template +++ b/data/pxemenu.template @@ -2,6 +2,7 @@ DEFAULT vesamenu.c32 NOESCAPE 1 PROMPT 0 +MENU MASTER PASSWD %masterpassword% MENU BACKGROUND openslx.png MENU WIDTH 78 @@ -18,61 +19,80 @@ MENU HELPMSGENDROW -1 MENU HSHIFT 0 MENU VSHIFT 7 -menu color screen 37;40 #80ffffff #00000000 std -menu color border 37;40 #40000000 #ff8093a1 std -menu color title 1;37;40 #ffff8b00 #ff8093a1 std -menu color unsel 37;40 #fff0f0f0 #ff8093a1 std -menu color hotkey 1;37;40 #ffff8b00 #ff8093a1 std -menu color sel 7;37;40 #ff1c2a33 #667799bb all -menu color hotsel 1;7;37;40 #ffff8b00 #667799bb all -menu color disabled 1;37;40 #ffff8b00 #ff8093a1 std -menu color scrollbar 37;40 #40000000 #ee000000 std -menu color tabmsg 37;40 #ffff8b00 #ff8093a1 std -menu color cmdmark 1;37;40 #ffff8b00 #ff8093a1 std -menu color cmdline 37;40 #fff0f0f0 #ff8093a1 std -menu color pwdborder 37;40 #40000000 #ff8093a1 std -menu color pwdheader 37;40 #ffff8b00 #ff8093a1 std -menu color pwdentry 37;40 #ffff8b00 #ff8093a1 std -menu color timeout_msg 37;40 #fff0f0f0 #ff8093a1 std -menu color timeout 1;37;40 #ffff8b00 #ff8093a1 std +menu color screen 37;40 #80000000 #00000000 std +menu color border 37;40 #40000000 #ff757575 std +menu color title 1;37;40 #ffff8b00 #ff757575 std +menu color unsel 37;40 #ffffffff #ff757575 std +menu color hotkey 1;37;40 #ffff8b00 #ff757575 std +menu color disabled 1;37;40 #ffff8b00 #ff757575 std +menu color tabmsg 37;40 #ffff8b00 #ff757575 std +menu color cmdmark 1;37;40 #ffff8b00 #ff757575 std +menu color cmdline 37;40 #fff0f0f0 #ff757575 std +menu color pwdborder 37;40 #40000000 #ff757575 std +menu color pwdheader 37;40 #ffff8b00 #ff757575 std +menu color pwdentry 37;40 #ffff8b00 #ff757575 std +menu color timeout_msg 37;40 #fff0f0f0 #ff757575 std +menu color timeout 1;37;40 #ffff8b00 #ff757575 std +menu color sel 7;37;40 #ff000000 #ffcccccc all +menu color hotsel 1;7;37;40 #ffff8b00 #ffcccccc all +menu color scrollbar 37;40 #40000000 #ff000000 std menu color help 37;40 #ff1c2a33 #00000000 none MENU MSGCOLOR #ff1c2a33 #00000000 none +# !! The template is UTF-8, conversion to codepage 437 is done by the taskmanager !! TIMEOUT %timeout% TOTALTIMEOUT %totaltimeout% -MENU TITLE bwLehrpool BETA VERSION + +MENU TITLE bwLehrpool Bootmenü +MENU AUTOBOOT Automatischer Boot in # Sekunde{,n} +MENU PASSPROMPT Passwort benötigt + MENU CLEAR ONTIMEOUT %default% LABEL shutdown - MENU HIDE - KERNEL kernel-shutdown - APPEND initrd=initramfs-shutdown quiet + MENU HIDE + KERNEL kernel-shutdown + APPEND initrd=initramfs-shutdown quiet LABEL net - MENU LABEL ^bwLehrpool-Umgebung starten - KERNEL http://IPADDR/boot/default/kernel - INITRD http://IPADDR/boot/default/initramfs-stage31 - APPEND slxbase=boot/default vga=current quiet splash - IPAPPEND 3 - %default-net% + MENU LABEL ^bwLehrpool-Umgebung starten + TEXT HELP + Durch Drücken von ENTER wird die bwLehrpoolumgebung gestartet. + Sie bietet Zugriff auf die Virtuellen Labore. + ENDTEXT + KERNEL http://%ipaddress%/boot/default/kernel + INITRD http://%ipaddress%/boot/default/initramfs-stage31 + APPEND slxbase=boot/default vga=current quiet splash + IPAPPEND 3 + %default-net% LABEL hdd - MENU LABEL ^Lokales System starten - LOCALBOOT 0 - %default-hdd% + MENU LABEL ^Lokales System starten + TEXT HELP + Durch Drücken von ENTER wird das lokal auf diesem Computer + installierte Betriebssystem gestartet, sofern vorhanden. + ENDTEXT + LOCALBOOT 0 + %default-hdd% +%custom% + +MENU SEPARATOR LABEL openslx-debug - MENU LABEL ^bwLehrpool-Umgebung starten (nosplash, debug) - KERNEL http://IPADDR/boot/default/kernel - INITRD http://IPADDR/boot/default/initramfs-stage31 - APPEND slxbase=boot/default - IPAPPEND 3 + MENU LABEL bwLehrpool-Umgebung starten (nosplash, debug) + TEXT HELP + Startet die bwLehrpool-Umgebung ohne Bootlogo und mit + zusätzlichen Debug-Ausgaben für die Fehlersuche. + ENDTEXT + KERNEL http://%ipaddress%/boot/default/kernel + INITRD http://%ipaddress%/boot/default/initramfs-stage31 + APPEND slxbase=boot/default + IPAPPEND 3 -%custom% -- cgit v1.2.3-55-g7522