My HW: HP EliteBook 840 G5 with password protected Boot menu in BIOS (so I cannot turn off Secure Boot)
Steps:
1) I downloaded ubuntu-18.04.1-live-server-amd64.iso from ubuntu.
2) I installed ubuntu-18.04.1-live-server-amd64.iso on a USB stick using rufus (as recommended at ubuntu). Be aware that this wipes the USB stick.
3) I restarted the laptop and booted from USB stick. After pressing F9 for many many times and really long time, GRUB window showed up. I did not go farrer then this as GRUB window showing up indicates that any Secure Boot checks were passed.
4) I removed everything from the USB stick EXCEPT:
Code: Select all
\boot
\EFI
\isolinux
\ldlinux.sys
\syslinux.cfg
6) I extracted vmlinux and initrd.xz from Porteus-KDE-v4.0-x86_64.iso and renamed them to Porteus-KDE-v4.0-x86_64-vmlinuz and Porteus-KDE-v4.0-x86_64-initrd.xz
7) I created \porteus in the USB stick and copied Porteus-KDE-v4.0-x86_64-vmlinuz, Porteus-KDE-v4.0-x86_64-initrd.xz, and Porteus-KDE-v4.0-x86_64.iso into \porteus
8) I updated \boot\grub\grub.cfg on the USB stick to:
----------
Code: Select all
if loadfont /boot/grub/font.pf2 ; then
set gfxmode=auto
insmod efi_gop
insmod efi_uga
insmod gfxterm
terminal_output gfxterm
fi
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
set timeout=5
menuentry "Porteus-KDE-v4.0-x86_64" {
set gfxpayload=keep
linux /porteus/Porteus-KDE-v4.0-x86_64-vmlinuz copy2ram from=/porteus/Porteus-KDE-v4.0-x86_64.iso noauto nomount ---
initrd /porteus/Porteus-KDE-v4.0-x86_64-initrd.xz
}
9) I updated \syslinux.cfg on the USB stick to:
----------
Code: Select all
PROMPT 0
TIMEOUT 90
DEFAULT /isolinux/vesamenu.c32
LABEL Porteus-KDE-v4.0-x86_64-vmlinuz
MENU LABEL Porteus-KDE-v4.0-x86_64-vmlinuz
KERNEL /porteus/Porteus-KDE-v4.0-x86_64-vmlinuz
APPEND initrd=/porteus/Porteus-KDE-v4.0-x86_64-initrd.xz copy2ram from=/porteus/Porteus-KDE-v4.0-x86_64.iso noauto nomount
10) I restarted the laptop and booted from USB stick. After pressing F9 for many many times and really long time, GRUB window showed up showing "Porteus-KDE-v4.0-x86_64-vmlinuz" which boots correctly.
Note that I use completely clean Porteus 4.0 after each boot and no changes are saved. If you need something else, you need to update \syslinux.cfg and \boot\grub\grub.cfg on the USB stick accordingly.