From: Michael Prokop Date: Sun, 16 Aug 2009 19:09:19 +0000 (+0200) Subject: New graphical boot menu; New configuration variable DISTRI_NAME; rework check for... X-Git-Tag: v0.9.21~21 X-Git-Url: https://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=e265e3093a98d723d40b36dde1aba26146aa301f New graphical boot menu; New configuration variable DISTRI_NAME; rework check for stage 'boot' --- diff --git a/debian/changelog b/debian/changelog index 1ee6697..7b76791 100644 --- a/debian/changelog +++ b/debian/changelog @@ -28,6 +28,11 @@ grml-live (0.9.21) UNRELEASED; urgency=low * Unify variable default checks, always assume sane defaults. * Always run $SUITE checks, so grml-live repository is used also if suite isn't manually specified. + * New graphical boot menu. Can be disabled via ISOLINUX_METHOD=console. + * New configuration variables DISTRI_NAME and DISTRI_INFO which should allow + easier rebranding of grml-live based distributions. + * Detect existence of stage 'boot' using boot/isolinux so grml-live + executed with options '-q -B' and empty boot/isolinux works as well. * Software related changes: - Add git-email to GRML_FULL (thanks to Joerg Woelke for mentioning). - Add aesfix, aeskeyfind, bios-memimage, chaosreader, ext3grep, fatback, @@ -44,7 +49,7 @@ grml-live (0.9.21) UNRELEASED; urgency=low isolinux.cfg, syslinux.cfg with each other; provide a fallback way to boot MirOS bsd4grml from both GRUB versions using modules - -- Michael Prokop Sun, 16 Aug 2009 14:49:10 +0200 + -- Michael Prokop Sun, 16 Aug 2009 21:24:53 +0200 grml-live (0.9.20) unstable; urgency=low diff --git a/etc/grml/grml-live.conf b/etc/grml/grml-live.conf index 20ccfee..c9ff7ad 100644 --- a/etc/grml/grml-live.conf +++ b/etc/grml/grml-live.conf @@ -110,11 +110,28 @@ GRML_FAI_CONFIG=/etc/grml/fai # It defaults to output of 'dpkg --print-architecture' # ARCH="i386" +# Name of distribution that should be build. By default +# it's "grml", if you want to adjust please make sure +# your distri name is just one single word so it +# works on the boot prompt. +# DISTRI_NAME="grml" + +# Short information about the distribution. Default: +# DISTRI_INFO="Grml - Live Linux for system administrators " + +# Bootsplash background image use in isolinux configuration +# Note: not relevant if using non-default ISOLINUX_METHOD="console". +# DISTRI_SPLASH='grml.png' + # Do you want to use your own templates? If so set the # template directory but please make sure it looks # likes the default directory [/usr/share/grml-live/templates] # TEMPLATE_DIRECTORY='/usr/share/grml-live/templates' +# Do you want to use console based isolinux boot splash +# instead of the default graphical menu? +# ISOLINUX_METHOD="console" + # Do you want to skip adding /boot/addons/ (from the template directory)? # NO_ADDONS='1' diff --git a/grml-live b/grml-live index cc4c8d8..ce61ca7 100755 --- a/grml-live +++ b/grml-live @@ -236,6 +236,9 @@ shift $(($OPTIND - 1)) # set ARGV to the first not parsed commandline parameter [ -n "$ARCH" ] || ARCH="$(dpkg --print-architecture)" [ -n "$BOOT_METHOD" ] || BOOT_METHOD='isolinux' [ -n "$CLASSES" ] || CLASSES='GRML,I386' +[ -n "$DISTRI_INFO" ] || DISTRI_INFO='Grml - Live Linux for system administrators ' +[ -n "$DISTRI_NAME" ] || DISTRI_NAME="grml" +[ -n "$DISTRI_SPLASH" ] || DISTRI_SPLASH='grml.png' [ -n "$GRML_FAI_CONFIG" ] || GRML_FAI_CONFIG='/etc/grml/fai' [ -n "$GRML_NAME" ] || GRML_NAME='grml' [ -n "$HOSTNAME" ] || HOSTNAME='grml' @@ -544,9 +547,9 @@ mkdir -p "$BUILD_OUTPUT" || bailout 6 "Problem with creating $BUILD_OUTPUT for s # i386: if [ "$ARCH" = i386 ] || [ "$ARCH" = amd64 ] ; then - if [ -d "$BUILD_OUTPUT"/boot -a -z "$UPDATE" -a -z "$BUILD_ONLY" ] ; then - log "$BUILD_OUTPUT/boot exists already, skipping stage 'boot'" - ewarn "$BUILD_OUTPUT/boot exists already, skipping stage 'boot'" ; eend 0 + if [ -d "$BUILD_OUTPUT"/boot/isolinux -a -z "$UPDATE" -a -z "$BUILD_ONLY" ] ; then + log "$BUILD_OUTPUT/boot/isolinux exists already, skipping stage 'boot'" + ewarn "$BUILD_OUTPUT/boot/isolinux exists already, skipping stage 'boot'" ; eend 0 else # booting stuff: [ -d "$BUILD_OUTPUT"/boot/isolinux ] || mkdir -p "$BUILD_OUTPUT"/boot/isolinux @@ -641,6 +644,13 @@ if [ "$ARCH" = i386 ] || [ "$ARCH" = amd64 ] ; then sed -i "s/%VERSION%/$VERSION/" "$BUILD_OUTPUT"/boot/grub/grub.cfg sed -i "s/%GRML_NAME%/$SHORT_GRML_NAME/" "$BUILD_OUTPUT"/boot/grub/grub.cfg + sed -i "s/%VERSION%/$VERSION/" "$BUILD_OUTPUT"/boot/isolinux/grml.cfg + sed -i "s/%GRML_NAME%/$GRML_NAME/" "$BUILD_OUTPUT"/boot/isolinux/grml.cfg + sed -i "s/%ARCH%/$ARCH/" "$BUILD_OUTPUT"/boot/isolinux/grml.cfg + + sed -i "s/%DISTRI_INFO%/$DISTRI_INFO/" "$BUILD_OUTPUT"/boot/isolinux/vesamenu.cfg + sed -i "s/%DISTRI_SPLASH%/$DISTRI_SPLASH/" "$BUILD_OUTPUT"/boot/isolinux/vesamenu.cfg + # make sure the squashfs filename is set accordingly: GRML_NAME_SQUASHFS="$GRML_NAME.squashfs" sed -i "s/%GRML_NAME_SQUASHFS%/$GRML_NAME_SQUASHFS/" "$BUILD_OUTPUT"/boot/isolinux/isolinux.cfg @@ -652,6 +662,47 @@ if [ "$ARCH" = i386 ] || [ "$ARCH" = amd64 ] ; then sed -i "s/%GRML_NAME_SQUASHFS%/$GRML_NAME_SQUASHFS/" "$BUILD_OUTPUT"/boot/isolinux/f4 sed -i "s/%GRML_NAME_SQUASHFS%/$GRML_NAME_SQUASHFS/" "$BUILD_OUTPUT"/boot/isolinux/f5 + if ! [ -r "${BUILD_OUTPUT}/boot/isolinux/${DISTRI_NAME}.cfg" ] ; then + log "including grml.cfg in ${BUILD_OUTPUT}/boot/isolinux/distri.cfg" + echo "include grml.cfg" > "${BUILD_OUTPUT}/boot/isolinux/distri.cfg" + [ -n "$NO_ADDONS" ] || echo "include addons.cfg" >> "${BUILD_OUTPUT}/boot/isolinux/distri.cfg" + else # assume we are building a custom distribution: + log "File ${BUILD_OUTPUT}/boot/isolinux/${DISTRI_NAME}.cfg found, using it." + einfo "File ${BUILD_OUTPUT}/boot/isolinux/${DISTRI_NAME}.cfg found, using it." + if grep -q "^include ${DISTRI_NAME}.cfg" "${BUILD_OUTPUT}/boot/isolinux/distri.cfg" ; then + log "include for ${DISTRI_NAME}.cfg already present, nothing to do." + einfo "include for ${DISTRI_NAME}.cfg already present, nothing to do." + eend $? + else + log "including ${DISTRI_NAME}.cfg in ${BUILD_OUTPUT}/boot/isolinux/distri.cfg" + echo "include ${DISTRI_NAME}.cfg" > "${BUILD_OUTPUT}/boot/isolinux/distri.cfg" + [ -n "$NO_ADDONS" ] || echo "include addons.cfg" >> "${BUILD_OUTPUT}/boot/isolinux/distri.cfg" + fi + fi + + # use old style console based isolinux method only if requested: + if [[ "${ISOLINUX_METHOD}" == "console" ]] ; then + log 'Using console based isolinux method as requested via $ISOLINUX_METHOD.' + einfo 'Using console based isolinux method as requested via $ISOLINUX_METHOD.' + if grep -q '^include console.cfg' "${BUILD_OUTPUT}/boot/isolinux/distri.cfg" ; then + einfo "include for console.cfg already foud, nothing to do." + eend 0 + else + log "including console.cfg in ${BUILD_OUTPUT}/boot/isolinux/isolinux.cfg" + einfo "including console.cfg in ${BUILD_OUTPUT}/boot/isolinux/isolinux.cfg" + echo "include console.cfg" >> "${BUILD_OUTPUT}/boot/isolinux/isolinux.cfg" + eend $? + fi + else + log 'Using graphical boot menu.' + if grep -q '^include vesamenu.cfg' "${BUILD_OUTPUT}/boot/isolinux/isolinux.cfg" ; then + log "include for vesamenu.cfg already foud, nothing to do." + else + log "including vesamenu.cfg in ${BUILD_OUTPUT}/boot/isolinux/isolinux.cfg" + echo "include vesamenu.cfg" >> "${BUILD_OUTPUT}/boot/isolinux/isolinux.cfg" + fi + fi + # jump back to grub from bsd4grml: if [ -e "$BUILD_OUTPUT"/boot/addons/bsd4grml/boot.6 ]; then if [ -e "$BUILD_OUTPUT"/boot/grub/core.img ]; then diff --git a/templates/boot/isolinux/addons.cfg b/templates/boot/isolinux/addons.cfg new file mode 100644 index 0000000..0adbe0f --- /dev/null +++ b/templates/boot/isolinux/addons.cfg @@ -0,0 +1,62 @@ +# addons: +menu separator + +label grub + menu label Run Bootloader ^Grub + kernel /boot/addons/memdisk + append initrd=/boot/addons/allinone.img + + text help + Start Bootloader Grub (allinone.img), + which supports booting from local disks, + booting via PXE,... + endtext + +label dos + menu label Run FreeDO^S + kernel /boot/addons/memdisk + append initrd=/boot/addons/balder10.imz + + text help + Boot FreeDOS. + endtext + +label bsd + menu label Run MirOS ^bsd4grml + kernel /boot/addons/memdisk + append initrd=/boot/addons/bsd4grml.iso + + 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 hd + menu label Boot from H^ard Disk + localboot 0x80 + + text help + Boot from first local hard disk - + if present and bootable. + endtext + +menu separator diff --git a/templates/boot/isolinux/console.cfg b/templates/boot/isolinux/console.cfg new file mode 100644 index 0000000..f2af0a1 --- /dev/null +++ b/templates/boot/isolinux/console.cfg @@ -0,0 +1,13 @@ +PROMPT 1 +DISPLAY boot.msg +F1 boot.msg +F2 f2 +F3 f3 +F4 f4 +F5 f5 +F6 f6 +F7 f7 +F8 f8 +F9 f9 +F10 f10 +include distri.cfg diff --git a/templates/boot/isolinux/distri.cfg b/templates/boot/isolinux/distri.cfg new file mode 100644 index 0000000..073f633 --- /dev/null +++ b/templates/boot/isolinux/distri.cfg @@ -0,0 +1 @@ +include grml.cfg diff --git a/templates/boot/isolinux/f1 b/templates/boot/isolinux/f1 new file mode 100644 index 0000000..5d45de7 --- /dev/null +++ b/templates/boot/isolinux/f1 @@ -0,0 +1,23 @@ + Grml - Linux for sysadmins and users of texttools 09F107 + + Further information regarding the Grml live system and available boot + options can be found on pages 2 to 10, reachable via keys F2 - F10. + + Note that the options on page 3 (F3) have to be used as *main* boot + options at the bootprompt as they are aliases for further options. + The options mentioned on pages 4-9 have to be used as options behind the + main boot option. If you don't need a special main option just use the + default one being 'grml' (which is used in several examples as well). + Example: + + grml vga=normal -> disables framebuffer in the default boot mode + forensic vga=normal -> disables framebuffer in the forensic boot mode + + Booting with just "vga=normal" won't work as well as "grml forensic" + won't do what you'd expect. + + Further information available via keys F1...F10. + + To return to the graphical boot menu just press ENTER. + +1f diff --git a/templates/boot/isolinux/f10 b/templates/boot/isolinux/f10 index 9adad4c..ec85979 100644 --- a/templates/boot/isolinux/f10 +++ b/templates/boot/isolinux/f10 @@ -1,8 +1,8 @@ - grml - Linux for sysadmins and users of texttools 09F1007 + Grml - Linux for sysadmins and users of texttools 09F1007 -70 Problems with grml? +70 Problems with Grml? - If you can't boot the grml system, don't despair! The grml team is ready + If you can't boot the Grml system, don't despair! The Grml team is ready to help you! We are especially interested in hearing about startup problems, because in general they don't happen to only one person. We've either already heard about your particular problem and can @@ -19,6 +19,6 @@ See the FAQ for more information: 0fhttp://grml.org/faq/70 - Thank you for helping us to improve grml! + Thank you for helping us to improve Grml! 1f diff --git a/templates/boot/isolinux/f2 b/templates/boot/isolinux/f2 index 9ab4ba5..8a9170e 100644 --- a/templates/boot/isolinux/f2 +++ b/templates/boot/isolinux/f2 @@ -1,17 +1,17 @@ - grml - Linux for sysadmins and users of texttools 09F207 + Grml - Linux for sysadmins and users of texttools 09F207 -09 Overview of bootsplashes on grml (F1-F10)07 +09 Overview of bootsplashes on Grml (F1-F10)07 - 09F107 main bootsplash with keyboard-image and bootprompt + 09F107 main bootsplash 09F207 this overview page - 09F307 main grml bootoptions - 09F407 main cheatcodes for grml [1/2] - 09F507 main cheatcodes for grml [2/2] - 09F607 troubleshooting on grml + 09F307 main Grml bootoptions + 09F407 main cheatcodes for Grml [1/2] + 09F507 main cheatcodes for Grml [2/2] + 09F607 troubleshooting on Grml 09F707 kernel cheatcodes - 09F807 grml configuration options - 09F907 grml2hd - automatic installation of grml - 09F1007 problems with grml? _ + 09F807 Grml configuration options + 09F907 grml2hd - automatic installation of Grml + 09F1007 problems with Grml? _ __ _ _ __ _ __ ___ | | ___ _ __ __ _ / _` | '__| '_ ` _ \| | / _ \| '__/ _` | | (_| | | | | | | | | || (_) | | | (_| | diff --git a/templates/boot/isolinux/f3 b/templates/boot/isolinux/f3 index 18a3b27..acff31a 100644 --- a/templates/boot/isolinux/f3 +++ b/templates/boot/isolinux/f3 @@ -1,8 +1,8 @@ - grml - Linux for sysadmins and users of texttools 09F307 + Grml - Linux for sysadmins and users of texttools 09F307 70 The following options can be used at the boot:-prompt: - grml [options, list via F4-F10] boot grml default + grml [options, list via F4-F10] boot Grml default memtest memtest86+ (memory test program) fb1280x1024, fb1024x768 or fb800x600 use framebuffer mode (e.g. notebooks) nofb disable framebuffer mode diff --git a/templates/boot/isolinux/f4 b/templates/boot/isolinux/f4 index 320d0e5..cdfb3fe 100644 --- a/templates/boot/isolinux/f4 +++ b/templates/boot/isolinux/f4 @@ -1,4 +1,4 @@ - grml - Linux for sysadmins and users of texttools 09F407 + Grml - Linux for sysadmins and users of texttools 09F407 70 The following options can be used at the boot:-prompt. [1/2] diff --git a/templates/boot/isolinux/f5 b/templates/boot/isolinux/f5 index f683520..580a79f 100644 --- a/templates/boot/isolinux/f5 +++ b/templates/boot/isolinux/f5 @@ -1,4 +1,4 @@ - grml - Linux for sysadmins and users of texttools 09F507 + Grml - Linux for sysadmins and users of texttools 09F507 70 The following options can be used at the boot:-prompt. [2/2] diff --git a/templates/boot/isolinux/f6 b/templates/boot/isolinux/f6 index a154ca5..2cc8fe8 100644 --- a/templates/boot/isolinux/f6 +++ b/templates/boot/isolinux/f6 @@ -1,6 +1,6 @@ - grml - Linux for sysadmins and users of texttools 09F607 + Grml - Linux for sysadmins and users of texttools 09F607 -70 Troubleshooting on grml (main page via key f1) +70 Troubleshooting on Grml (main page via key f1) If you experience lockups or other hardware failures, disable buggy APIC interrupt routing: diff --git a/templates/boot/isolinux/f7 b/templates/boot/isolinux/f7 index 529c99c..a1498b7 100644 --- a/templates/boot/isolinux/f7 +++ b/templates/boot/isolinux/f7 @@ -1,4 +1,4 @@ - grml - Linux for sysadmins and users of texttools 09F707 + Grml - Linux for sysadmins and users of texttools 09F707 70 Cheatcodes for kernel (main page via key f1) diff --git a/templates/boot/isolinux/f8 b/templates/boot/isolinux/f8 index 5bd9429..b4873a2 100644 --- a/templates/boot/isolinux/f8 +++ b/templates/boot/isolinux/f8 @@ -1,6 +1,6 @@ - grml - Linux for sysadmins and users of texttools 09F807 + Grml - Linux for sysadmins and users of texttools 09F807 -70 grml configuration options +70 Grml configuration options ========================== myconfig=/dev/ice -> search for config.tbz and grml.sh on specifed device @@ -9,8 +9,8 @@ extract it noautoconfig -> do not automount device labeled with GRMLCFG file=configname.tbz -> use specified filename as configuration archive - partconf=/dev/ice -> copy files specified in /etc/grml/partconf from - /dev/ice to the grml system + partconf=/dev/sdx# -> copy files specified in /etc/grml/partconf from + /dev/sdx# to the Grml system Usage examples: diff --git a/templates/boot/isolinux/f9 b/templates/boot/isolinux/f9 index 77944d9..ddc064a 100644 --- a/templates/boot/isolinux/f9 +++ b/templates/boot/isolinux/f9 @@ -1,6 +1,6 @@ - grml - Linux for sysadmins and users of texttools 09F907 + Grml - Linux for sysadmins and users of texttools 09F907 -70 grml2hd - automatic installation of grml +70 grml2hd - automatic installation of Grml ======================================== Using grml2hd as bootoption runs grml2hd in non-interactive mode. @@ -11,7 +11,7 @@ user= user name for user which should be used at hd-install filesystem={ext2|ext3|reiserfs|reiser4|jfs|xfs} filesystem to be used mbr=/dev/... partition where MBR should be installed (default:=partition) - partition=/dev/... partition where grml should be installed + partition=/dev/... partition where Grml should be installed Usage example for booting: grml2hd partition=/dev/hda4 mbr=/dev/hda filesystem=ext3 user=mika diff --git a/templates/boot/isolinux/grml.cfg b/templates/boot/isolinux/grml.cfg new file mode 100644 index 0000000..3bf086a --- /dev/null +++ b/templates/boot/isolinux/grml.cfg @@ -0,0 +1,187 @@ +## labels + +# generic ones +label grml + menu DEFAULT + menu label Grml ^Default Mode (%GRML_NAME% %VERSION%, %ARCH%) + kernel /boot/%GRML_NAME%/linux26 + append apm=power-off vga=791 quiet initrd=/boot/%GRML_NAME%/initrd.gz live-media-path=/live/grml/ boot=live nomce lang=de + + text help + Grml is a Debian based Linux live + system for system administrators + and users of text tools. + + http://grml.org/ + endtext + +label failsafe + menu label Grml ^Failsafe Mode + kernel /boot/%GRML_NAME%/linux26 + append initrd=/boot/%GRML_NAME%/initrd.gz vga=normal live-media-path=/live/grml/ boot=live noautoconfig atapicd noapic noacpi acpi=off nomodules nofirewire noudev nousb nohotplug noapm nopcmcia nosmp maxcpus=0 noscsi noagp nodma ide=nodma noswap nofstab nosound nogpm nosyslog nodhcp nocpu nodisc nomodem xmodule=vesa noraid nolvm noresume selinux=0 edd=off lang=de + + text help + Boot Grml in failsafe mode, which + disables any hardware recognition + that might prevent your system from + booting. If Grml does not boot in + default mode try using this option. + endtext + +label forensic + menu label Grml F^orensic Mode + kernel /boot/%GRML_NAME%/linux26 + append initrd=/boot/%GRML_NAME%/initrd.gz vga=791 forensic nofstab noraid nolvm noautoconfig noswap raid=noautodetect readonly quiet live-media-path=/live/grml/ boot=live lang=de + + text help + Boot Grml in forensic mode. This mode + prevents touching any harddisks during + hardware recognition and forces all + blockdevices to readonly mode. + endtext + +label grml2ram + menu label Grml to ^RAM + kernel /boot/%GRML_NAME%/linux26 + append apm=power-off vga=791 quiet initrd=/boot/%GRML_NAME%/initrd.gz live-media-path=/live/grml/ boot=live nomce toram=grml.squashfs + + text help + Load Grml into the memory (RAM). + This allows you to remove the Grml + media after Grml finished booting. + + Note: you should have enough RAM + (>= size of ISO * 1.2) to be able + to use this option. + endtext + +menu separator + +label help + menu label Furt^her boot options... + config /boot/isolinux/prompt.cfg + text help + Further information regarding + available boot options. + endtext + +# entries *without* a visible entry in the graphical bootsplash +label splash +menu hide +kernel /boot/%GRML_NAME%/linux26 +append apm=power-off vga=791 quiet initrd=/boot/%GRML_NAME%/initrd.gz boot=live splash nomce + +label grml2hd +menu hide +kernel /boot/%GRML_NAME%/linux26 +append apm=power-off quiet initrd=/boot/%GRML_NAME%/initrd.gz boot=live nomce + +label debian2hd +menu hide +kernel /boot/%GRML_NAME%/linux26 +append apm=power-off vga=791 initrd=/boot/%GRML_NAME%/initrd.gz boot=live BOOT_IMAGE=debian2hd nomce + +label debug +menu hide +kernel /boot/%GRML_NAME%/linux26 +append apm=power-off vga=791 verbose debug=vc debug initrd=/boot/%GRML_NAME%/initrd.gz boot=live initcall_debug nomce + +label bootchart +menu hide +kernel /boot/%GRML_NAME%/linux26 +append init=/sbin/bootchartd apm=power-off vga=791 quiet initrd=/boot/%GRML_NAME%/initrd.gz boot=live nomce + +label vmware +menu hide +kernel /boot/%GRML_NAME%/linux26 +append apm=power-off nousb nousb2 nofirewire vga=791 quiet initrd=/boot/%GRML_NAME%/initrd.gz boot=live nomce + +label qemu +menu hide +kernel /boot/%GRML_NAME%/linux26 +append apm=power-off nousb nousb2 nofirewire vga=791 quiet initrd=/boot/%GRML_NAME%/initrd.gz boot=live nomce qemu + +label grmlx +menu hide +kernel /boot/%GRML_NAME%/linux26 +append apm=power-off startx=wm-ng vga=791 quiet initrd=/boot/%GRML_NAME%/initrd.gz boot=live nomce + +label nofb +menu hide +kernel /boot/%GRML_NAME%/linux26 +append apm=power-off vga=normal video=ofonly quiet initrd=/boot/%GRML_NAME%/initrd.gz boot=live nomce + +label linux26 +menu hide +kernel /boot/%GRML_NAME%/linux26 +append apm=power-off vga=791 quiet initrd=/boot/%GRML_NAME%/initrd.gz boot=live nomce + +label memtest +menu hide +kernel /boot/addons/memtest +append BOOT_IMAGE=memtest + +label fb1280x1024 +menu hide +kernel /boot/%GRML_NAME%/linux26 +append apm=power-off vga=794 quiet initrd=/boot/%GRML_NAME%/initrd.gz boot=live nomce + +label fb1024x768 +menu hide +kernel /boot/%GRML_NAME%/linux26 +append apm=power-off vga=791 quiet initrd=/boot/%GRML_NAME%/initrd.gz boot=live nomce + +label fb800x600 +menu hide +kernel /boot/%GRML_NAME%/linux26 +append apm=power-off vga=788 quiet initrd=/boot/%GRML_NAME%/initrd.gz boot=live nomce + +label serial +menu hide +kernel /boot/%GRML_NAME%/linux26 +append apm=power-off vga=normal video=vesafb:off quiet initrd=/boot/%GRML_NAME%/initrd.gz boot=live nomce console=tty1 console=ttyS0,9600n8 + +label userdef +menu hide +menu hide +kernel /boot/%GRML_NAME%/linux26 +append ############################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################### + +label hda +menu hide +kernel /boot/addons/chain.c32 +append hd0 0 + +label fd0 +menu hide +kernel /boot/addons/chain.c32 +append fd0 + +label hd +menu hide +localboot 0x80 + +label hd1 +menu hide +localboot 0x81 + +label hd2 +menu hide +localboot 0x82 + +label hd3 +menu hide +localboot 0x83 + +label floppy +menu hide +localboot 0x0 + +label next +menu hide +localboot -1 + +label menu +menu hide +config /boot/isolinux/vesamenu.cfg + diff --git a/templates/boot/isolinux/grml.png b/templates/boot/isolinux/grml.png new file mode 100644 index 0000000..e5d7e6d Binary files /dev/null and b/templates/boot/isolinux/grml.png differ diff --git a/templates/boot/isolinux/isolinux.cfg b/templates/boot/isolinux/isolinux.cfg index 2c33d4d..2f044f3 100644 --- a/templates/boot/isolinux/isolinux.cfg +++ b/templates/boot/isolinux/isolinux.cfg @@ -1,179 +1,36 @@ -# use this to control the bootup via a serial port -# SERIAL 0 9600 -DEFAULT grml -# DEFAULT menu.c32 -TIMEOUT 300 -# ONTIMEOUT chain.32 hd0 0 -PROMPT 1 -DISPLAY boot.msg -F1 boot.msg -F2 f2 -F3 f3 -F4 f4 -F5 f5 -F6 f6 -F7 f7 -F8 f8 -F9 f9 -F10 f10 - -# LABEL menu -# MENU HIDE -# KERNEL menu.c32 - -MENU TITLE grml - Boot Menu - -# the default: -LABEL grml -MENU LABEL grml - Standard Bootup -MENU DEFAULT -KERNEL /boot/%GRML_NAME%/linux26 -APPEND apm=power-off vga=791 quiet initrd=/boot/%GRML_NAME%/initrd.gz boot=live nomce - -LABEL grml2ram -MENU LABEL grml2ram - Copy Squashfs file to RAM -KERNEL /boot/%GRML_NAME%/linux26 -APPEND apm=power-off toram=%GRML_NAME_SQUASHFS% vga=791 quiet initrd=/boot/%GRML_NAME%/initrd.gz boot=live nomce - -LABEL splash -MENU LABEL grml - Bootsplash -KERNEL /boot/%GRML_NAME%/linux26 -APPEND apm=power-off vga=791 quiet initrd=/boot/%GRML_NAME%/initrd.gz boot=live splash nomce - -LABEL grml2hd -MENU LABEL grml2hd -KERNEL /boot/%GRML_NAME%/linux26 -APPEND apm=power-off quiet initrd=/boot/%GRML_NAME%/initrd.gz boot=live nomce - -LABEL debian2hd -MENU LABEL debian2hd -KERNEL /boot/%GRML_NAME%/linux26 -APPEND apm=power-off vga=791 initrd=/boot/%GRML_NAME%/initrd.gz boot=live BOOT_IMAGE=debian2hd nomce - -LABEL debug -MENU LABEL debug -KERNEL /boot/%GRML_NAME%/linux26 -APPEND apm=power-off vga=791 verbose debug=vc debug initrd=/boot/%GRML_NAME%/initrd.gz boot=live initcall_debug nomce - -LABEL bootchart -MENU LABEL bootchart -KERNEL /boot/%GRML_NAME%/linux26 -APPEND init=/sbin/bootchartd apm=power-off vga=791 quiet initrd=/boot/%GRML_NAME%/initrd.gz boot=live nomce - -LABEL vmware -MENU LABEL vmware -KERNEL /boot/%GRML_NAME%/linux26 -APPEND apm=power-off nousb nousb2 nofirewire vga=791 quiet initrd=/boot/%GRML_NAME%/initrd.gz boot=live nomce - -LABEL qemu -MENU LABEL qemu -KERNEL /boot/%GRML_NAME%/linux26 -APPEND apm=power-off nousb nousb2 nofirewire vga=791 quiet initrd=/boot/%GRML_NAME%/initrd.gz boot=live nomce qemu - -LABEL grmlx -MENU LABEL grmlx -KERNEL /boot/%GRML_NAME%/linux26 -APPEND apm=power-off startx=wm-ng vga=791 quiet initrd=/boot/%GRML_NAME%/initrd.gz boot=live nomce - -LABEL nofb -MENU LABEL grml without framebuffer -KERNEL /boot/%GRML_NAME%/linux26 -APPEND apm=power-off vga=normal video=ofonly quiet initrd=/boot/%GRML_NAME%/initrd.gz boot=live nomce - -LABEL linux26 -MENU LABEL linux26 -KERNEL /boot/%GRML_NAME%/linux26 -APPEND apm=power-off vga=791 quiet initrd=/boot/%GRML_NAME%/initrd.gz boot=live nomce - -LABEL memtest -MENU LABEL memtest -KERNEL /boot/addons/memtest -APPEND BOOT_IMAGE=memtest - -LABEL fb1280x1024 -MENU LABEL fb1280x1024 -KERNEL /boot/%GRML_NAME%/linux26 -APPEND apm=power-off vga=794 quiet initrd=/boot/%GRML_NAME%/initrd.gz boot=live nomce - -LABEL fb1024x768 -MENU LABEL fb1024x768 -KERNEL /boot/%GRML_NAME%/linux26 -APPEND apm=power-off vga=791 quiet initrd=/boot/%GRML_NAME%/initrd.gz boot=live nomce - -LABEL fb800x600 -MENU LABEL fb800x600 -KERNEL /boot/%GRML_NAME%/linux26 -APPEND apm=power-off vga=788 quiet initrd=/boot/%GRML_NAME%/initrd.gz boot=live nomce - -LABEL failsafe -MENU LABEL failsafe -KERNEL /boot/%GRML_NAME%/linux26 -APPEND initrd=/boot/%GRML_NAME%/initrd.gz vga=normal boot=live noautoconfig atapicd noapic noacpi acpi=off nomodules nofirewire noudev nousb nohotplug noapm nopcmcia nosmp maxcpus=0 noscsi noagp nodma ide=nodma noswap nofstab nosound nogpm nosyslog nodhcp nocpu nodisc nomodem xmodule=vesa noraid nolvm noresume selinux=0 edd=off - -LABEL forensic -MENU LABEL forensic -KERNEL /boot/%GRML_NAME%/linux26 -APPEND vga=791 forensic nofstab noraid nolvm noautoconfig noswap raid=noautodetect quiet initrd=/boot/%GRML_NAME%/initrd.gz boot=live - -LABEL grub -MENU LABEL grub -KERNEL /boot/addons/memdisk -APPEND initrd=/boot/addons/allinone.img - -LABEL dos -MENU LABEL dos -KERNEL /boot/addons/memdisk -APPEND initrd=/boot/addons/balder10.imz - -LABEL bsd -MENU LABEL MirOS bsd4grml -KERNEL /boot/addons/bsd4grml/ldbsd.com - -LABEL hdt -MENU LABEL hdt -KERNEL /boot/addons/hdt.c32 -APPEND pciids=/boot/addons/pci.ids - -LABEL serial -MENU LABEL serial -KERNEL /boot/%GRML_NAME%/linux26 -APPEND apm=power-off vga=normal video=vesafb:off quiet initrd=/boot/%GRML_NAME%/initrd.gz boot=live nomce console=tty1 console=ttyS0,9600n8 - -LABEL userdef -MENU LABEL User defined -MENU HIDE -KERNEL /boot/%GRML_NAME%/linux26 -APPEND ############################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################### -LABEL hda -MENU LABEL Boot First Harddrive (via chain.c32) -KERNEL /boot/addons/chain.c32 -APPEND hd0 0 - -LABEL fd0 -MENU LABEL Boot First Floppy Drive (via chain.c32) -KERNEL /boot/addons/chain.c32 -APPEND fd0 - -LABEL hd -MENU LABEL Boot First Harddrive -LOCALBOOT 0x80 - -LABEL hd1 -MENU LABEL Boot Second Harddrive -LOCALBOOT 0x81 - -LABEL hd2 -MENU LABEL Boot Third Harddrive -LOCALBOOT 0x82 - -LABEL hd3 -MENU LABEL Boot Fourth Harddrive -LOCALBOOT 0x83 - -LABEL floppy -MENU LABEL Boot First Floppy Drive -LOCALBOOT 0x0 - -LABEL next -MENU LABEL Next device -LOCALBOOT -1 +# Filename: isolinux.cfg +# Purpose: main and central configuration file for isolinyx +# Authors: grml-team (grml.org), (c) Michael Prokop +# Bug-Reports: see http://grml.org/bugs/ +# License: This file is licensed under the GPL v2 or any later version. +################################################################################ +# File Overview: +# - addons.cfg -> configuration file for /boot/addons/ (only used if NO_ADDONS not set) +# - 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) +# - distri.cfg -> configuration file which specifies which file provides the labels +# - f1. ..f10 -> bootsplash screens when pressing f1...f10 in console version +# - grml.cfg -> definitions of labels for main bootoptions of the grml live system +# - grml.png -> background image of graphical bootsplash for grml +# - isolinux.bin -> isolinux binary +# - isolinux.cfg -> this file, includes the according files as requested +# - logo.16 -> logo visible in console version of bootsplash +# - prompt.cfg -> helper file to jump between graphical and console based version +# - syslinux.cfg -> syslinux specific configuration file +# - vesamenu.c32 -> vesamenu binary for graphical boot menu +# - vesamenu.cfg -> configuration of graphical boot splash/menu +################################################################################ + +# timeout settings: +timeout 300 + +# boot from hard disk instead by default: +# ontimeout chain.32 hd0 0 + +# use this to control the bootup via a serial port: +# serial 0 9600 + +# finally either include 'console.cfg' for console based bootsplash +# or 'vesamenu.cfg' for graphic menu version of bootsplash (adjusted +# automatically in build process via grml-live): diff --git a/templates/boot/isolinux/prompt.cfg b/templates/boot/isolinux/prompt.cfg new file mode 100644 index 0000000..e88ac40 --- /dev/null +++ b/templates/boot/isolinux/prompt.cfg @@ -0,0 +1,28 @@ +prompt 1 +display f1 +timeout 300 +include vesamenu.cfg + +F1 f1 +F2 f2 +F3 f3 +F4 f4 +F5 f5 +F6 f6 +F7 f7 +F8 f8 +F9 f9 +F10 f10 + +# back to main menu +label exit +menu exit +kernel isolinux.bin + +label back +menu back +kernel isolinux.bin + +label quit +menu quit +kernel isolinux.bin diff --git a/templates/boot/isolinux/vesamenu.c32 b/templates/boot/isolinux/vesamenu.c32 new file mode 100644 index 0000000..789f058 Binary files /dev/null and b/templates/boot/isolinux/vesamenu.c32 differ diff --git a/templates/boot/isolinux/vesamenu.cfg b/templates/boot/isolinux/vesamenu.cfg new file mode 100644 index 0000000..6ccd656 --- /dev/null +++ b/templates/boot/isolinux/vesamenu.cfg @@ -0,0 +1,39 @@ +## background image +menu background %DISTRI_SPLASH% + +## size +menu width 50 +menu margin 0 +menu rows 13 +menu tabmsgrow 18 +menu helpmsgrow 21 +menu cmdlinerow 22 +menu timeoutrow 26 +menu hshift 2 +menu vshift 1 + +## colors +# menu color element ansi foreground background shadow +menu color border 30;44 #00000000 #00000000 none +menu color cmdline 0 #ff000000 #00000000 none +menu color cmdmark 1;36;40 #ffff0000 #00000000 none +menu color help 0 #ff000000 #00000000 none +menu color hotkey 0 #ffffffff #00000000 +menu color hotsel 0 #ff000000 #ffffCA31 +menu color screen 37;40 #00000000 #00000000 none +menu color scrollbar 30;44 #00000000 #00000000 none +menu color sel 7 #ff000000 #ffffCA31 +menu color tabmsg 0 #ffffffff #00000000 none +menu color timeout 0 #ff000000 #00000000 +menu color timeout_msg 0 #ff808080 #00000000 +menu color title 0 #ffffffff #00000000 +menu color unsel 0 #ffffffff #00000000 + +## text +menu title %DISTRI_INFO% +menu tabmsg Press ENTER to boot or TAB to edit a menu entry +menu autoboot Automatic boot in # second{,s}... + +## source files +include distri.cfg +default vesamenu.c32