X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=templates%2Fboot%2Fgrub%2Fgrub.cfg;h=bdcea7ff7ebad1098064d5d9480fe009fec349f2;hp=01e970532eb8aa5fb7a3358127273acd7a1a3524;hb=df45a261edffbcd85df13dc6a7faf9fdfcad1a9f;hpb=ed3e22f8c13515a3e5890b1d034a897c96786ab3 diff --git a/templates/boot/grub/grub.cfg b/templates/boot/grub/grub.cfg index 01e9705..bdcea7f 100644 --- a/templates/boot/grub/grub.cfg +++ b/templates/boot/grub/grub.cfg @@ -1,111 +1,13 @@ ## grub2 configuration -set default=0 -set timeout=5 +source /boot/grub/header.cfg -if font (hd0,1)/boot/grub/ascii.pff ; then - insmod png - set gfxmode=640x480 - insmod gfxterm - insmod vbe - terminal gfxterm -fi +insmod regexp -if background_image (hd0,1)/boot/grub/grml.png ; then - set color_normal=black/black - set color_highlight=red/black -else - set menu_color_normal=white/black - set menu_color_highlight=black/yellow +for config in /boot/grub/*_default.cfg ; do source "$config" ; done +for config in /boot/grub/*_options.cfg ; do source "$config" ; done +if [ -f /boot/grub/addons.cfg ] ; then + source "/boot/grub/addons.cfg" fi -menuentry "%GRML_NAME% - release %VERSION% (default)" { - linux /boot/%SHORT_NAME%/linux26 apm=power-off vga=791 quiet boot=live bootid=%BOOTID% bootfrom=removable nomce - initrd /boot/%SHORT_NAME%/initrd.gz -} - -menuentry "Memory test (memtest86+)" { - linux16 /boot/addons/memtest -} - -menuentry "GPXE - boot via network/PXE" { - linux16 /boot/addons/gpxe.lkrn -} - -menuentry "Grub - all in one image" { - linux /boot/addons/memdisk - initrd /boot/addons/allinone.img -} - -menuentry "FreeDOS" { - linux /boot/addons/memdisk - initrd /boot/addons/balder10.imz -} - -menuentry "MirOS bsd4grml (regular method)" { - multiboot /boot/addons/bsd4grml/ldbsd.com -} - -menuentry "MirOS bsd4grml (fallback method)" { - multiboot /boot/addons/bsd4grml/ldbsd.com - module /boot/addons/bsd4grml/bsd.rd - module /boot/addons/bsd4grml/boot.1 - module /boot/addons/bsd4grml/boot.2 - module /boot/addons/bsd4grml/boot.3 - module /boot/addons/bsd4grml/boot.4 - module /boot/addons/bsd4grml/boot.5 - module /boot/addons/bsd4grml/boot.6 - module /boot/addons/bsd4grml/boot.cfg - module /boot/grub/%GRUB_LEGACY% - module /boot/grub/core.img -} - -menuentry "Boot OS of first partition on first disk" { - chainloader +1 -} - -menuentry "%GRML_NAME% - enable persistent mode" { - linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% bootfrom=removable nomce vga=791 quiet persistent - initrd /boot/%SHORT_NAME%/initrd.gz -} - -menuentry "%GRML_NAME% - copy grml to RAM" { - linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% bootfrom=removable nomce vga=791 quiet toram=%GRML_NAME%.squashfs - initrd /boot/%SHORT_NAME%/initrd.gz -} - -menuentry "%GRML_NAME% - copy whole medium to RAM" { - linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% bootfrom=removable nomce vga=791 quiet toram - initrd /boot/%SHORT_NAME%/initrd.gz -} - -menuentry "%GRML_NAME% - start X by default" { - linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% bootfrom=removable nomce vga=791 quiet startx=wm-ng - initrd /boot/%SHORT_NAME%/initrd.gz -} - -menuentry "%GRML_NAME% - disable framebuffer" { - linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% bootfrom=removable nomce quiet vga=normal video=ofonly - initrd /boot/%SHORT_NAME%/initrd.gz -} - -menuentry "%GRML_NAME% - forensic mode" { - linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% bootfrom=removable nomce vga=791 readonly quiet nofstab noraid nolvm noautoconfig noswap raid=noautodetect - initrd /boot/%SHORT_NAME%/initrd.gz -} - -menuentry "%GRML_NAME% - failsafe mode" { - linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% bootfrom=removable nomce quiet vga=normal 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 - initrd /boot/%SHORT_NAME%/initrd.gz -} - -menuentry "%GRML_NAME% - debug mode" { - linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% bootfrom=removable nomce vga=791 initcall_debug verbose debug=vc - initrd /boot/%SHORT_NAME%/initrd.gz -} - -menuentry "%GRML_NAME% - serial mode" { - linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% bootfrom=removable nomce quiet vga=normal video=vesafb:off noquick console=tty1 console=ttyS0,9600n8 - initrd /boot/%SHORT_NAME%/initrd.gz -} - +source /boot/grub/footer.cfg # EOF