Each entry resists now in an own file for simplified handling of addons.
CMDLINE="$0 $@"
ISO_DATE="$(date +%Y-%m-%d)"
SOURCES_LIST_FILE='/etc/grml/fai/apt/sources.list'
+ADDONS_LIST_FILE='/boot/isolinux/addons_list.cfg'
# }}}
# usage information {{{
sed -i "s/%SQUASHFS_NAME%/$SQUASHFS_NAME/" "$BUILD_OUTPUT"/boot/isolinux/f4
sed -i "s/%SQUASHFS_NAME%/$SQUASHFS_NAME/" "$BUILD_OUTPUT"/boot/isolinux/f5
+ # generate addon list
+ rm "${BUILD_OUTPUT}/${ADDONS_LIST_FILE}"
+ for name in $(ls "${BUILD_OUTPUT}"/boot/isolinux/addon_*.cfg) ; do
+ include_name=$(basename "$name")
+ echo "include $include_name" >> "${BUILD_OUTPUT}/${ADDONS_LIST_FILE}"
+ done
+
if ! [ -r "${BUILD_OUTPUT}/boot/isolinux/${DISTRI_NAME}.cfg" ] || [ "$DISTRI_NAME" = "grml" ] ; then
log "including grmlmain.cfg in ${BUILD_OUTPUT}/boot/isolinux/distri.cfg"
echo "include grmlmain.cfg" > "${BUILD_OUTPUT}/boot/isolinux/distri.cfg"
--- /dev/null
+label grub2
+ menu label Run Bootloader Grub^2
+ kernel /boot/addons/bsd4grml/ldbsd.com
+ append echo Loading GRUB...`machine exec grub /boot/grub/core.img
+
+ text help
+ Start Bootloader Grub (version 2).
+ endtext
+
--- /dev/null
+label grub1
+ menu label Run Bootloader Grub-Legacy (version ^1)
+ kernel /boot/addons/bsd4grml/ldbsd.com
+ append echo Loading GRUB...`machine exec grub /boot/grub/%GRUB_LEGACY%
+
+ text help
+ Start Bootloader Grub (version 1).
+ endtext
+
--- /dev/null
+label allinone
+ menu label Run ^All-in-One-Image
+ kernel /boot/addons/memdisk
+ append initrd=/boot/addons/allinone.img
+
+ text help
+ Start All-in-One-Image, being a special
+ version of Grub with an easy to use
+ interface for booting from local disks,
+ booting via PXE (with gPXE support),...
+ endtext
+
--- /dev/null
+label gpxe
+ menu label Run GP^XE
+ kernel /boot/addons/gpxe.lkrn
+
+ text help
+ Start Etherboot/gPXE for booting via
+ network (PXE).
+ endtext
+
--- /dev/null
+label dos
+ menu label Run ^FreeDOS
+ kernel /boot/addons/memdisk
+ append initrd=/boot/addons/balder10.imz
+
+ text help
+ Boot FreeDOS.
+ endtext
+
--- /dev/null
+label bsd
+ menu label Run MirOS bsd^4grml
+ kernel /boot/addons/bsd4grml/ldbsd.com
+
+ text help
+ Boot a minimalistic BSD operating
+ system, known as MirOS bsd4grml.
+ endtext
+
--- /dev/null
+label memtest
+ menu label Run ^Memtest86+
+ kernel /boot/addons/memtest
+ append BOOT_IMAGE=memtest
+
+ text help
+ Start memory test using memtest86+.
+ endtext
+
--- /dev/null
+label hdt
+ menu label Run Hardware Detection ^Tool
+ kernel /boot/addons/hdt.c32
+ append pciids=/boot/addons/pci.ids
+
+ text help
+ Start a simple Hardware Detection
+ Tool.
+ endtext
menu exit
menu separator
-label grub2
- menu label Run Bootloader Grub^2
- kernel /boot/addons/bsd4grml/ldbsd.com
- append echo Loading GRUB...`machine exec grub /boot/grub/core.img
+include addons_list.cfg
- text help
- Start Bootloader Grub (version 2).
- endtext
-label grub1
- menu label Run Bootloader Grub-Legacy (version ^1)
- kernel /boot/addons/bsd4grml/ldbsd.com
- append echo Loading GRUB...`machine exec grub /boot/grub/%GRUB_LEGACY%
- text help
- Start Bootloader Grub (version 1).
- endtext
-label allinone
- menu label Run ^All-in-One-Image
- kernel /boot/addons/memdisk
- append initrd=/boot/addons/allinone.img
- text help
- Start All-in-One-Image, being a special
- version of Grub with an easy to use
- interface for booting from local disks,
- booting via PXE (with gPXE support),...
- endtext
-label gpxe
- menu label Run GP^XE
- kernel /boot/addons/gpxe.lkrn
- text help
- Start Etherboot/gPXE for booting via
- network (PXE).
- endtext
-
-label dos
- menu label Run ^FreeDOS
- kernel /boot/addons/memdisk
- append initrd=/boot/addons/balder10.imz
-
- text help
- Boot FreeDOS.
- endtext
-
-label bsd
- menu label Run MirOS bsd^4grml
- kernel /boot/addons/bsd4grml/ldbsd.com
-
- text help
- Boot a minimalistic BSD operating
- system, known as MirOS bsd4grml.
- endtext
-
-label memtest
- menu label Run ^Memtest86+
- kernel /boot/addons/memtest
- append BOOT_IMAGE=memtest
-
- text help
- Start memory test using memtest86+.
- endtext
-
-label hdt
- menu label Run Hardware Detection ^Tool
- kernel /boot/addons/hdt.c32
- append pciids=/boot/addons/pci.ids
-
- text help
- Start a simple Hardware Detection
- Tool.
- endtext
label exit
menu hide
--- /dev/null
+# will be generated by grml-live
################################################################################
# File Overview:
# - addons.cfg -> configuration file for /boot/addons/ (only used if NO_ADDONS not set)
+# - addons_list.cfg -> list of entries for addon menu
+# - addon_* -> definition for entries in the addon menu
# - boot-beep.msg -> bootsplash config for console version sending beep sound
# - boot.msg -> bootsplash config for console version (no graphical boot menu)
# - console.cfg -> console version configuration of isolinux (no graphical boot menu)