X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=templates%2Fboot%2Fgrub%2Fgrub.cfg;h=8099b8f1041126e0615d8a4640ba213eedc437e1;hp=fde7a3973abcac9b24fd49379fe67039fd7ef258;hb=51e56e2b17e9ad5233f2b9eab6313f1c476eb6f8;hpb=e8e351d4a28c0788518c94890b550d6c05062a4e diff --git a/templates/boot/grub/grub.cfg b/templates/boot/grub/grub.cfg index fde7a39..8099b8f 100644 --- a/templates/boot/grub/grub.cfg +++ b/templates/boot/grub/grub.cfg @@ -4,25 +4,29 @@ set timeout=20 if loadfont /boot/grub/ascii.pf2 ; then insmod png - set gfxmode=640x480 + set gfxmode=1920x1200,1920x1080,1600x900,1400x1050,1440x900,1024x768,auto insmod gfxterm insmod vbe terminal_output gfxterm fi if background_image /boot/grub/grml.png ; then - set color_normal=black/black + set color_normal=white/black set color_highlight=red/black - set menu_color_normal=black/black + set menu_color_normal=white/black set menu_color_highlight=black/yellow else set menu_color_normal=white/black set menu_color_highlight=black/yellow fi +if [ ${iso_path} ] ; then + set loopback="findiso=${iso_path}" +fi + menuentry "%GRML_NAME% - release %VERSION% (default)" { - set gfxpayload=1024x768 - linux /boot/%SHORT_NAME%/linux26 apm=power-off quiet boot=live bootid=%BOOTID% nomce + set gfxpayload=keep + linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% "${loopback}" "${kernelopts}" nomce initrd /boot/%SHORT_NAME%/initrd.gz } @@ -30,90 +34,109 @@ menuentry "Memory test (memtest86+)" { linux16 /boot/addons/memtest } -menuentry "GPXE - boot via network/PXE" { - linux16 /boot/addons/gpxe.lkrn +menuentry "iPXE - boot via network/PXE" { + linux16 /boot/addons/ipxe.lkrn } -menuentry "Grub - all in one image" { - linux /boot/addons/memdisk - initrd /boot/addons/allinone.img +menuentry "GRUB - all in one image" { + linux16 /boot/addons/memdisk + initrd16 /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 -} + linux16 /boot/addons/memdisk + initrd16 /boot/addons/balder10.imz +} + +if [ ${iso_path} ] ; then + # assume loopback.cfg boot + menuentry "MirOS bsd4grml (via loopback)" { + multiboot /boot/addons/bsd4grml/ldbsd.com + module /boot/addons/bsd4grml/bsd.rd bsd + module /boot/addons/bsd4grml/loopback.0 boot.cfg + module /boot/addons/bsd4grml/loopback.1 boot.1 + module /boot/addons/bsd4grml/loopback.2 boot.2 + module /boot/addons/bsd4grml/loopback.3 boot.3 + module /boot/addons/bsd4grml/loopback.4 boot.4 + module /boot/addons/bsd4grml/loopback.5 boot.5 + module /boot/addons/bsd4grml/loopback.6 boot.6 + } +else + # assume grub.cfg boot + 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 bsd.rd + module /boot/addons/bsd4grml/boot.1 boot.1 + module /boot/addons/bsd4grml/boot.2 boot.2 + module /boot/addons/bsd4grml/boot.3 boot.3 + module /boot/addons/bsd4grml/boot.4 boot.4 + module /boot/addons/bsd4grml/boot.5 boot.5 + module /boot/addons/bsd4grml/boot.6 boot.6 + module /boot/addons/bsd4grml/boot.cfg boot.cfg + module /boot/grub/core.img core.img + } +fi menuentry "Boot OS of first partition on first disk" { + set root=(hd0,1) chainloader +1 } menuentry "%GRML_NAME% - enable persistent mode" { - set gfxpayload=1024x768x16,1024x768 - linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce quiet persistent + set gfxpayload=keep + linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce "${loopback}" "${kernelopts}" persistent=nofiles initrd /boot/%SHORT_NAME%/initrd.gz } menuentry "%GRML_NAME% - copy Grml to RAM" { - set gfxpayload=1024x768 - linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce quiet toram=%GRML_NAME%.squashfs + set gfxpayload=keep + linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce "${loopback}" "${kernelopts}" toram=%GRML_NAME%.squashfs initrd /boot/%SHORT_NAME%/initrd.gz } menuentry "%GRML_NAME% - copy whole medium to RAM" { - set gfxpayload=1024x768 - linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce quiet toram + set gfxpayload=keep + linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce "${loopback}" "${kernelopts}" toram initrd /boot/%SHORT_NAME%/initrd.gz } menuentry "%GRML_NAME% - start X by default" { - set gfxpayload=1024x768 - linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce quiet startx=wm-ng + set gfxpayload=keep + linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce "${loopback}" "${kernelopts}" startx initrd /boot/%SHORT_NAME%/initrd.gz } menuentry "%GRML_NAME% - disable framebuffer" { - linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce quiet vga=normal video=ofonly + set gfxpayload=text + linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce "${loopback}" "${kernelopts}" video=ofonly radeon.modeset=0 i915.modeset=0 nouveau.modeset=0 nomodeset initrd /boot/%SHORT_NAME%/initrd.gz } -menuentry "%GRML_NAME% - forensic mode" { - set gfxpayload=1024x768 - linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce readonly quiet nofstab noraid nolvm noautoconfig noswap raid=noautodetect +menuentry "%GRML_NAME% - disable Kernel Mode-Setting" { + set gfxpayload=keep + linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce "${loopback}" "${kernelopts}" radeon.modeset=0 i915.modeset=0 nouveau.modeset=0 nomodeset initrd /boot/%SHORT_NAME%/initrd.gz } -menuentry "%GRML_NAME% - failsafe mode" { - linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% 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 +menuentry "%GRML_NAME% - forensic mode" { + set gfxpayload=keep + linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce "${loopback}" "${kernelopts}" readonly nofstab noraid nodmraid nolvm noautoconfig noswap raid=noautodetect initrd /boot/%SHORT_NAME%/initrd.gz } menuentry "%GRML_NAME% - debug mode" { - set gfxpayload=1024x768 - linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce initcall verbose debug=vc + set gfxpayload=keep + linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce "${loopback}" "${kernelopts}" initcall 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% nomce quiet vga=normal video=vesafb:off console=tty1 console=ttyS0,9600n8 + set gfxpayload=text + linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce "${loopback}" "${kernelopts}" video=vesafb:off console=tty1 console=ttyS0,9600n8 initrd /boot/%SHORT_NAME%/initrd.gz }