From 9b2a50cceb9820dd838224cfdd8bdec29ae48263 Mon Sep 17 00:00:00 2001 From: Ulrich Dangel Date: Wed, 21 Dec 2011 03:41:48 +0100 Subject: [PATCH] Print a message before loading kernel or initrd in grub --- templates/boot/grub/%SHORT_NAME%_default.cfg | 2 ++ templates/boot/grub/%SHORT_NAME%_options.cfg | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/templates/boot/grub/%SHORT_NAME%_default.cfg b/templates/boot/grub/%SHORT_NAME%_default.cfg index 8d798f5..bcbd665 100644 --- a/templates/boot/grub/%SHORT_NAME%_default.cfg +++ b/templates/boot/grub/%SHORT_NAME%_default.cfg @@ -1,5 +1,7 @@ menuentry "%GRML_NAME% - release %VERSION% (default)" { set gfxpayload=keep + echo 'Loading kernel...' linux /boot/%SHORT_NAME%/vmlinuz apm=power-off boot=live bootid=%BOOTID% "${loopback}" "${kernelopts}" nomce + echo 'Loading initrd...' initrd /boot/%SHORT_NAME%/initrd.img } diff --git a/templates/boot/grub/%SHORT_NAME%_options.cfg b/templates/boot/grub/%SHORT_NAME%_options.cfg index db1d24f..5e95124 100644 --- a/templates/boot/grub/%SHORT_NAME%_options.cfg +++ b/templates/boot/grub/%SHORT_NAME%_options.cfg @@ -1,55 +1,73 @@ submenu "%GRML_NAME% - advanced options ->" --class=submenu { menuentry "%GRML_NAME% - enable persistent mode" { set gfxpayload=keep + echo 'Loading kernel...' linux /boot/%SHORT_NAME%/vmlinuz apm=power-off boot=live bootid=%BOOTID% nomce "${loopback}" "${kernelopts}" persistent=nofiles + echo 'Loading initrd...' initrd /boot/%SHORT_NAME%/initrd.img } menuentry "%GRML_NAME% - copy Grml to RAM" { set gfxpayload=keep + echo 'Loading kernel...' linux /boot/%SHORT_NAME%/vmlinuz apm=power-off boot=live bootid=%BOOTID% nomce "${loopback}" "${kernelopts}" toram=%GRML_NAME%.squashfs + echo 'Loading initrd...' initrd /boot/%SHORT_NAME%/initrd.img } menuentry "%GRML_NAME% - copy whole medium to RAM" { set gfxpayload=keep + echo 'Loading kernel...' linux /boot/%SHORT_NAME%/vmlinuz apm=power-off boot=live bootid=%BOOTID% nomce "${loopback}" "${kernelopts}" toram + echo 'Loading initrd...' initrd /boot/%SHORT_NAME%/initrd.img } menuentry "%GRML_NAME% - start X by default" { set gfxpayload=keep + echo 'Loading kernel...' linux /boot/%SHORT_NAME%/vmlinuz apm=power-off boot=live bootid=%BOOTID% nomce "${loopback}" "${kernelopts}" startx + echo 'Loading initrd...' initrd /boot/%SHORT_NAME%/initrd.img } menuentry "%GRML_NAME% - disable framebuffer" { set gfxpayload=text + echo 'Loading kernel...' linux /boot/%SHORT_NAME%/vmlinuz apm=power-off boot=live bootid=%BOOTID% nomce "${loopback}" "${kernelopts}" video=ofonly radeon.modeset=0 i915.modeset=0 nouveau.modeset=0 nomodeset + echo 'Loading initrd...' initrd /boot/%SHORT_NAME%/initrd.img } menuentry "%GRML_NAME% - disable Kernel Mode-Setting" { +echo 'Loading kernel...' set gfxpayload=keep + echo 'Loading initrd...' linux /boot/%SHORT_NAME%/vmlinuz 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.img } menuentry "%GRML_NAME% - forensic mode" { set gfxpayload=keep + echo 'Loading kernel...' linux /boot/%SHORT_NAME%/vmlinuz apm=power-off boot=live bootid=%BOOTID% nomce "${loopback}" "${kernelopts}" readonly nofstab noraid nodmraid nolvm noautoconfig noswap raid=noautodetect + echo 'Loading initrd...' initrd /boot/%SHORT_NAME%/initrd.img } menuentry "%GRML_NAME% - debug mode" { set gfxpayload=keep + echo 'Loading kernel...' linux /boot/%SHORT_NAME%/vmlinuz apm=power-off boot=live bootid=%BOOTID% nomce "${loopback}" "${kernelopts}" initcall verbose debug=vc + echo 'Loading initrd...' initrd /boot/%SHORT_NAME%/initrd.img } menuentry "%GRML_NAME% - serial mode" { set gfxpayload=text + echo 'Loading kernel...' linux /boot/%SHORT_NAME%/vmlinuz apm=power-off boot=live bootid=%BOOTID% nomce "${loopback}" "${kernelopts}" video=vesafb:off console=tty1 console=ttyS0,9600n8 + echo 'Loading initrd...' initrd /boot/%SHORT_NAME%/initrd.img } } -- 2.1.4