summaryrefslogtreecommitdiff
path: root/templates/syslinux/common
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2007-09-25 14:52:24 -0300
committerDaniel Baumann <daniel@debian.org>2011-03-09 18:22:27 +0100
commit748c19a321412358174b9e6d6126c97dd3bc984c (patch)
tree96d57f2123df86252fff7ee7a29204358e0393f9 /templates/syslinux/common
parent6944ddd54d716cb11fbd2f4a0710725895ee924f (diff)
downloadlive-build-748c19a321412358174b9e6d6126c97dd3bc984c.zip
live-build-748c19a321412358174b9e6d6126c97dd3bc984c.tar.gz
syslinux: split syslinux configuration in multiple files
Normal and menu templates share a lot of common stuff and then a splited syslinux.cfg is much better to handle that.
Diffstat (limited to 'templates/syslinux/common')
-rw-r--r--templates/syslinux/common/menu.cfg19
-rw-r--r--templates/syslinux/common/prompt.cfg15
-rw-r--r--templates/syslinux/common/syslinux.cfg36
3 files changed, 37 insertions, 33 deletions
diff --git a/templates/syslinux/common/menu.cfg b/templates/syslinux/common/menu.cfg
new file mode 100644
index 0000000..f84260c
--- /dev/null
+++ b/templates/syslinux/common/menu.cfg
@@ -0,0 +1,19 @@
+default live
+
+LINUX_LIVE
+
+LINUX_INSTALL
+
+MEMTEST
+
+#label floppy
+# localboot 0x00
+
+#label disk1
+# localboot 0x80
+
+#label disk2
+# localboot 0x81
+
+#label nextboot
+# localboot -1
diff --git a/templates/syslinux/common/prompt.cfg b/templates/syslinux/common/prompt.cfg
new file mode 100644
index 0000000..32dd85c
--- /dev/null
+++ b/templates/syslinux/common/prompt.cfg
@@ -0,0 +1,15 @@
+prompt 1
+display boot.txt
+timeout 0
+include menu.cfg
+
+f1 f1.txt
+f2 f2.txt
+f3 f3.txt
+f4 f4.txt
+f5 f5.txt
+f6 f6.txt
+f7 f7.txt
+f8 f8.txt
+f9 f9.txt
+f0 f10.txt
diff --git a/templates/syslinux/common/syslinux.cfg b/templates/syslinux/common/syslinux.cfg
index 526f1d4..b930e36 100644
--- a/templates/syslinux/common/syslinux.cfg
+++ b/templates/syslinux/common/syslinux.cfg
@@ -1,36 +1,6 @@
-
+include header.cfg
+include menu.cfg
+include footer.cfg
DISPLAY boot.txt
-F1 f1.txt
-F2 f2.txt
-F3 f3.txt
-F4 f4.txt
-F5 f5.txt
-F6 f6.txt
-F7 f7.txt
-F8 f8.txt
-F9 f9.txt
-F0 f10.txt
-
-DEFAULT live
-
-LINUX_LIVE
-
-LINUX_INSTALL
-
-MEMTEST
-
-#LABEL floppy
-# localboot 0x00
-
-#LABEL disk1
-# localboot 0x80
-
-#LABEL disk2
-# localboot 0x81
-
-#LABEL nextboot
-# localboot -1
-
PROMPT 1
-TIMEOUT LINUX_TIMEOUT