How can I Install splashimage at GRUB2? (SOLVED)

Started by gilpier, 2013/01/27, 01:04:30

Previous topic - Next topic

piper

The way I do it, without losing my customizations (my fonts/colors, choice of distro (what you want to call/name that distro, or .png/grub background wallpaper) when a new kernel is installed or doing a update-grub is thru /etc/grub.d/40_custom

I also disable os-prober unless I install a new distro, etc, very easy to re-enable it

My 40_custom looks like this, very simple and clean
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod reiserfs
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
 search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos3 --hint-efi=hd1,msdos3 --hint-baremetal=ahci1,msdos3 --hint='hd0,msdos3'  7f9f9567-7555-4a6e-a45b-f029b60b4cab
else
 search --no-floppy --fs-uuid --set=root 7f9f9567-7555-4a6e-a45b-f029b60b4cab
fi
insmod png
if background_image /usr/share/images/desktop-base/joy-grub.png; then
 set color_normal=magenta/black
 set color_highlight=green/black
else
 set menu_color_normal=magenta/black
 set menu_color_highlight=green/black
fi
### END /etc/grub.d/05_debian_theme ###
menuentry 'Windows 7' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
 search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2 --hint='hd0,msdos2'  82B4B4FAB4B4F1B1
else
 search --no-floppy --fs-uuid --set=root 82B4B4FAB4B4F1B1
fi
chainloader +1
}
menuentry "Aptosid-Live-i386" {
insmod iso9660
insmod part_msdos
insmod reiserfs
set root='hd1,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
 search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos5 --hint-efi=hd2,msdos5 --hint-baremetal=ahci2,msdos5 --hint='hd1,msdos5'  9a9cc1d1-6870-4002-ad0a-bebef0c2409d
else
 search --no-floppy --fs-uuid --set=root 9a9cc1d1-6870-4002-ad0a-bebef0c2409d
fi
loopback loop /siduction/aptosid-2012-01-thanatos-kde-full-i386-amd64-201212010120.iso
linux (loop)/boot/vmlinuz0.686 fromhd=UUID=9a9cc1d1-6870-4002-ad0a-bebef0c2409d fromiso=/siduction/aptosid-2012-01-thanatos-kde-full-i386-amd64-201212010120.iso boot=fll lang=en_US tz=America/New York quiet noeject toram
initrd (loop)/boot/initrd0.686
}
menuentry "Aptosid-Live-amd64" {
insmod iso9660
insmod part_msdos
insmod reiserfs
set root='hd1,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
 search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos5 --hint-efi=hd2,msdos5 --hint-baremetal=ahci2,msdos5 --hint='hd1,msdos5'  9a9cc1d1-6870-4002-ad0a-bebef0c2409d
else
 search --no-floppy --fs-uuid --set=root 9a9cc1d1-6870-4002-ad0a-bebef0c2409d
fi
loopback loop /siduction/aptosid-2012-01-thanatos-kde-full-i386-amd64-201212010120.iso
linux (loop)/boot/vmlinuz0.amd fromhd=UUID=9a9cc1d1-6870-4002-ad0a-bebef0c2409d fromiso=/siduction/aptosid-2012-01-thanatos-kde-full-i386-amd64-201212010120.iso boot=fll lang=en_US tz=America/New York quiet noeject toram
initrd (loop)/boot/initrd0.amd
}
menuentry "Siduction-Live-lxde" {
insmod iso9660
insmod part_msdos
insmod reiserfs
set root='hd1,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
 search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos5 --hint-efi=hd2,msdos5 --hint-baremetal=ahci2,msdos5 --hint='hd1,msdos5'  9a9cc1d1-6870-4002-ad0a-bebef0c2409d
else
 search --no-floppy --fs-uuid --set=root 9a9cc1d1-6870-4002-ad0a-bebef0c2409d
fi
loopback loop /siduction/siduction-12.2.0-ridersonthestorm-lxde-amd64-201212092122.iso
linux (loop)/boot/vmlinuz0.amd fromhd=UUID=9a9cc1d1-6870-4002-ad0a-bebef0c2409d fromiso=/siduction/siduction-12.2.0-ridersonthestorm-lxde-amd64-201212092122.iso boot=fll lang=en_US tz=America/New York quiet noeject toram
initrd (loop)/boot/initrd0.amd
}
menuentry "Siduction-Live-xfce" {
insmod iso9660
insmod part_msdos
insmod reiserfs
set root='hd1,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
 search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos5 --hint-efi=hd2,msdos5 --hint-baremetal=ahci2,msdos5 --hint='hd1,msdos5'  9a9cc1d1-6870-4002-ad0a-bebef0c2409d
else
 search --no-floppy --fs-uuid --set=root 9a9cc1d1-6870-4002-ad0a-bebef0c2409d
fi
loopback loop /siduction/siduction-12.2.0-ridersonthestorm-xfce-amd64-201212092126.iso
linux (loop)/boot/vmlinuz0.amd fromhd=UUID=9a9cc1d1-6870-4002-ad0a-bebef0c2409d fromiso=/siduction/siduction-12.2.0-ridersonthestorm-xfce-amd64-201212092126.iso boot=fll lang=en_US tz=America/New York quiet noeject toram
initrd (loop)/boot/initrd0.amd
}
menuentry "Siduction-Live-rqt" {
insmod iso9660
insmod part_msdos
insmod reiserfs
set root='hd1,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
 search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos5 --hint-efi=hd2,msdos5 --hint-baremetal=ahci2,msdos5 --hint='hd1,msdos5'  9a9cc1d1-6870-4002-ad0a-bebef0c2409d
else
 search --no-floppy --fs-uuid --set=root 9a9cc1d1-6870-4002-ad0a-bebef0c2409d
fi
loopback loop /siduction/siduction-12.2.0-ridersonthestorm-rqt-amd64-201212092240.iso
linux (loop)/boot/vmlinuz0.amd fromhd=UUID=9a9cc1d1-6870-4002-ad0a-bebef0c2409d fromiso=/siduction/siduction-12.2.0-ridersonthestorm-rqt-amd64-201212092240.iso boot=fll lang=en_US tz=America/New York quiet noeject toram
initrd (loop)/boot/initrd0.amd
}
menuentry "Siduction-Live-kde" {
insmod iso9660
insmod part_msdos
insmod reiserfs
set root='hd1,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
 search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos5 --hint-efi=hd2,msdos5 --hint-baremetal=ahci2,msdos5 --hint='hd1,msdos5'  9a9cc1d1-6870-4002-ad0a-bebef0c2409d
else
 search --no-floppy --fs-uuid --set=root 9a9cc1d1-6870-4002-ad0a-bebef0c2409d
fi
loopback loop /siduction/siduction-12.2.0-ridersonthestorm-kde-amd64-201302051431.iso
linux (loop)/boot/vmlinuz0.amd fromhd=UUID=9a9cc1d1-6870-4002-ad0a-bebef0c2409d fromiso=/siduction/siduction-12.2.0-ridersonthestorm-kde-amd64-201302051431.iso boot=fll lang=en_US tz=America/New York quiet noeject toram
initrd (loop)/boot/initrd0.amd
}


The "live" versions shown are all fromiso
I have a Lucky Rabbit:    "Svoot" ..... (It's Swedish)

I am MAGA