ThinkPad P1 Gen 2 Grub.cfg

# Ubuntu 20.04

if loadfont /boot/grub/font.pf2 ; then
# set gfxmode=auto
# set gfxmode=800x600
set gfxmode=1280x1024
# set gfxmode=1366x768
insmod efi_gop
insmod efi_uga
insmod gfxterm
terminal_output gfxterm

# try to work around ISO loop boot problem
rmmod tpm

fi

set menu_color_normal=white/black
set menu_color_highlight=black/light-gray

set timeout=5
menuentry "Ubuntu 20.04" {
set gfxpayload=keep
linux /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed maybe-ubiquity quiet splash ---
initrd /casper/initrd
}
menuentry "Ubuntu (safe graphics)" {
set gfxpayload=keep
linux /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed maybe-ubiquity quiet splash nomodeset ---
initrd /casper/initrd
}
menuentry "OEM install (for manufacturers)" {
set gfxpayload=keep
linux /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed only-ubiquity quiet splash oem-config/enable=true ---
initrd /casper/initrd
}
grub_platform
if [ "$grub_platform" = "efi" ]; then
menuentry 'Boot from next volume' {
exit
}
menuentry 'UEFI Firmware Settings' {
fwsetup
}
fi

# My modifications below

# boot Ubuntu 20.04 with persistence

menuentry "Ubuntu 20.04 with persistence" {
set gfxpayload=keep
linux /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed maybe-ubiquity persistent persistent-path=/persistence/ubuntu-20.04 quiet splash ---
initrd /casper/initrd
}

# Boot Ubuntu 16.10 from ISO

menuentry "Ubuntu 16.10 64-bit Desktop ISO" {
set isofile="/bootable/iso/ubuntu-16.10-desktop-amd64.iso"
loopback loop $isofile
linux (loop)/casper/vmlinuz.efi boot=casper iso-scan/filename=$isofile noeject noprompt splash --
initrd (loop)/casper/initrd.lz
}

# Boot Ubuntu 16.10 from ISO With Persistence

menuentry "Ubuntu 16.10 64-bit Desktop ISO With Persistence" {
set isofile="/bootable/iso/ubuntu-16.10-desktop-amd64.iso"
loopback loop $isofile
linux (loop)/casper/vmlinuz.efi boot=casper iso-scan/filename=$isofile persistent persistent-path=/persistence/ubuntu-16.10 noeject noprompt splash --
initrd (loop)/casper/initrd.lz
}

# Boot Mint 19.1 from ISO

menuentry "Mint 19.1 64-bit Desktop ISO" {
set isofile="/bootable/iso/linuxmint-19.1-cinnamon-64bit.iso"
loopback loop $isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noeject noprompt splash --
initrd (loop)/casper/initrd.lz
}

# Boot Ubuntu 19.10 from ISO

menuentry "Ubuntu 19.10 64-bit Desktop ISO" {
set isofile="/bootable/iso/ubuntu-19.10-desktop-amd64.iso"
loopback loop $isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noeject noprompt splash --
initrd (loop)/casper/initrd
}

# Boot Ubuntu 20.10 from ISO

menuentry "Ubuntu 20.10 64-bit Desktop ISO" {
set isofile="/bootable/iso/ubuntu-20.10-desktop-amd64.iso"
loopback loop $isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noeject noprompt splash --
initrd (loop)/casper/initrd
}

# Boot Fedora Workstation 32 from ISO

menuentry "Fedora Workstation 32 from ISO" {
set isofile="/bootable/iso/Fedora-Workstation-Live-x86_64-32-1.6.iso"
loopback loop $isofile
linux (loop)/images/pxeboot/vmlinuz iso-scan/filename=$isofile root=live:CDLABEL=Fedora-WS-Live-32-1-6 rd.live.image quiet
initrd (loop)/images/pxeboot/initrd.img
}

# Boot Tails 4.12 from ISO

menuentry "Tails 4.12 64-bit Desktop ISO" {
set isofile="/bootable/iso/tails-amd64-4.12.iso"
loopback loop $isofile
set root=(loop)
linux (loop)/live/vmlinuz boot=live initrd=/live/initrd.img config findiso=$isofile nopersistence noprompt timezone=Etc/UTC block.events_dfl_poll_msecs=1000 splash noautologin module=Tails slab_nomerge slub_debug=FZP mce=0 vsyscall=none page_poison=1 init_on_free=1 mds=full,nosmt FSUUID=${rootuuid} quiet --
initrd (loop)/live/initrd.img
}

# Boot Pop! OS 20.04 from ISO

menuentry "Pop! OS 20.10 64-bit Desktop ISO" {
set gfxpayload=keep
set isofile="/bootable/iso/pop-os_20.10_amd64_intel_1.iso"
loopback loop $isofile
set root=(loop)
linux (loop)/casper_pop-os_20.10_amd64_intel_debug_7/vmlinuz.efi iso-scan/filename=$isofile boot=casper live-media-path=/casper_pop-os_20.10_amd64_intel__debug_7 hostname=pop-os username=pop-os noeject noprompt splash --
initrd (loop)/casper_pop-os_20.10_amd64_intel_debug_7/initrd.gz
}

menuentry "Acronis 2018 9207 ISO 64 Bit Mode UEFI (NOT SECURE BOOTABLE) and Legacy" {
set quiet=1
set gfxpayload=1024x768x32,1024x768
set mbrcrcs=on
set isofile="/bootable/iso/AcronisTrueImage2018_15470.iso"
search --set -f $isofile
loopback loop $isofile
# edit: lang=13 is asian # linux (loop,msdos1)/dat10.dat lang=13 quiet force_modules=usbhid
linux (loop,msdos1)/dat10.dat quiet force_modules=usbhid
initrd (loop,msdos1)/dat11.dat (loop,msdos1)/dat12.dat
boot
}

menuentry "Memtest 86+ V5.01 legacy boot" {
linux16 /bootable/images/memtest86+-5.01.bin
}

menuentry "Memtest 7.5 UEFI chainload" {
chainloader /bootable/memtest86v7.5/EFI/BOOT/BOOTX64.EFI
}

menuentry "EFI Shell UEFI chainload" {
chainloader /bootable/EFI_Shell/BootX64.efi
}

menuentry "EFI SHell NEW UEFI chainload" {
chainloader /bootable/EFI_Shell_New/BOOTX64.efi
}