Tomas-M / linux-live

Linux Live Kit
http://www.linux-live.org/
1.01k stars 253 forks source link

Linux-Live Secure Boot compatible #227

Closed Lepps01 closed 2 years ago

Lepps01 commented 2 years ago

Hi there,

Is there a way to make Linux Live compatible with secure boot?

Many thanks,

Lepps01 commented 2 years ago

Swapped out all the boot files from the EFI directory with boot files from an Ubuntu image. Files pictures in the attached. Changed grub.cfg to:

set timeout=30

loadfont unicode

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

menuentry "Run LinuxLive from RAM" { set gfxpayload=keep linux /linux/boot/vmlinuz toram --- initrd /linux/boot/initrfs.img } grub_platform if [ "$grub_platform" = "efi" ]; then menuentry 'Boot from next volume' { exit 1 }

fi

Had to make sure that the distro I was using had a signed vmlinuz kernel and all was good. Distro being used is based off Ubuntu 22.04.1 LTS.

Going forward I plan on changing the contents of the bootfiles directory and changing the build script accordingly.

boot