Congrats for making the brilliant MX USB GRUB boot rescue menu, really a godsend for unbootable OSes.
I want to make a EFI and BIOS bootable multiboot USB with MX GRUB rescue menus, rEFInd, MX KDE , Linux mint Cinnamon, Linux Mint Mate, MX XFCE 32-bit, Peppermint OS, Windows installer, Android x86 (64 bit) , Ubuntu Mate and Rescatux. It's for my friend (a computer technician). We want people to try out and choose their fit before installation.
This is what I did :
1) Create a FAT32 partition named "ESP", a /boot folder in it and
Code: Select all
sudo grub-install --target=i386-pc --boot-directory=/media/andrew/ESP/boot /dev/sdb
3) Copy all folders from MX KDE ISO (not replacing existing files)
4) Copy rEFInd into /EFI folder (name it refindx64.efi)
5) Make an exFAT partition and extract Windows ISO there
6) Make an extended partition with logical partitions (ext2) for Android and other Linuxes.
7) Edit /boot/grub/grub.cfg to add entries for all these :
Code: Select all
#------------------------------------------------------------------
# file: /boot/grub/grub.cfg for the Live version of MX
#
# This file can get updated automatically on a LiveUSB via the save
# feature in the text menus. It is possible to break these updates
# by editing this file.
#------------------------------------------------------------------
set timeout=60
set gfxmode=1024x768
set gfxpayload="1440x960;1440x900;1368x912;1366x768;1280x800;1280x720;1280x1024;1200x800;1024x768;auto"
set default=1
set WindowsInstallUUID="<UUID>"
set MainUUID="<UUID>"
search --no-floppy --set=root --fs-uuid $MainUUID
# load defaults
#
if [ -s $prefix/config/defaults.cfg ]; then
source $prefix/config/defaults.cfg
fi
menuentry "Linux Mint Cinnamon - good for beginners - looks just like Windows" {
insmod ext2
search --no-floppy --set=root --fs-uuid <UUID>
configfile /boot/grub/grub.cfg
}
if [ "${grub_platform}" = "pc" ]; then
# For Legacy BIOS systems
menuentry "Windows installation (Legacy BIOS mode)" {
insmod exfat
insmod ntldr
search --no-floppy --set=root --fs-uuid $WindowsInstallUUID
ntldr /bootmgr
}
else
# For EFI systems
menuentry "Windows installation (EFI mode)" {
insmod exfat
insmod chain
search --no-floppy --set=root --fs-uuid $WindowsInstallUUID
chainloader /efi/boot/bootx64.efi
}
menuentry "rEFInd boot manager" {
search --no-floppy --set=root --fs-uuid $MainUUID
insmod chain
chainloader /EFI/BOOT/refindx64.efi
}
fi
menuentry "Android-x86 (64 bit version) - Disable secure boot" {
insmod ext2
search --no-floppy --set=root --fs-uuid <UUID>
configfile /boot/grub/grub.cfg
}
menuentry "Linux and Windows Rescue USB (Rescatux) - DANGEROUS - be careful" {
insmod ext2
search --no-floppy --set=root --fs-uuid <UUID>
configfile /boot/grub/grub.cfg
}
submenu "Other Linux distros >>>>>>>>>>>" {
menuentry "Linux Mint MATE (good for low-spec devices)" {
insmod ext2
search --no-floppy --set=root --fs-uuid <UUID>
configfile /boot/grub/grub.cfg
}
menuentry " MX-19.4 kde x64 (March 31, 2021) - 10 min easy install - No secure boot" {
search --no-floppy --set=root --fs-uuid $MainUUID
linux /antiX/vmlinuz quiet splasht nosplash
initrd /antiX/initrd.gz
}
menuentry "MX Linux XFCE 32 bit - 10 min easy install - No secure boot" {
insmod ext2
search --no-floppy --set=root --fs-uuid <UUID>
configfile /boot/grub/grub.cfg
}
menuentry "Peppermint GNU/Linux (good for very low-spec devices) - 64bit" {
insmod ext2
search --no-floppy --set=root --fs-uuid <UUID>
configfile /boot/grub/grub.cfg
}
menuentry "Ubuntu MATE" {
insmod ext2
search --no-floppy --set=root --fs-uuid <UUID>
configfile /boot/grub/grub.cfg
}
submenu ">>> Advanced Options for MX-19.4 kde x64 <<<" {
menuentry " MX-19.4 kde x64 Customize Boot (text menus)" {
search --no-floppy --set=root --fs-uuid $MainUUID
linux /antiX/vmlinuz quiet splasht nosplash menus
initrd /antiX/initrd.gz
}
menuentry " MX-19.4 kde x64 Failsafe" {
search --no-floppy --set=root --fs-uuid $MainUUID
linux /antiX/vmlinuz quiet splasht nosplash nomodeset failsafe
initrd /antiX/initrd.gz
}
menuentry " MX-19.4 kde x64 (1024x768)" {
search --no-floppy --set=root --fs-uuid $MainUUID
linux /antiX/vmlinuz quiet splasht nosplash
initrd /antiX/initrd.gz
}
menuentry " Power Off" --hotkey=P {
halt
}
menuentry " Reboot" --hotkey=R {
reboot
}
if [ -f /boot/grub/theme/help.txt ]; then
menuentry " Help" --hotkey=H {
cat /boot/grub/theme/help.txt
echo -n "Press <Enter> to continue "
read xxx_help
}
fi
}
}
# load boot menus
#
if [ -f $prefix/config/bootmenu.cfg ]; then
source $prefix/config/bootmenu.cfg
fi

But, the MX GRUB theme is not OK with chainloading Windows Installation media (distorted manufacturer logo in EFI systems).
So, I really need to use some other GRUB theme (something black and white, like LM's is preferred)
But, I don't know how to remove MX GRUB theme from my grub.cfg and /boot/grub/config/*.cfg without breaking anything and keeping MX boot rescue menus