mvallim / live-custom-ubuntu-from-scratch

(Yes, the project is still alive 😃) This procedure shows how to create a bootable and installable Ubuntu Live (along with the automatic hardware detection and configuration) from scratch.
https://mvallim.github.io/live-custom-ubuntu-from-scratch/
GNU General Public License v3.0
397 stars 186 forks source link

Failure to install on actual PC using EFI #30

Closed kgilmer closed 3 years ago

kgilmer commented 3 years ago

Describe the bug When installing ubuntu-from-scratch.iso into a virtualbox there is no problem, however when installing into a regular PC, at the end of the installation process I see a dialog with the error starting with "grub-efi-amd64-signed’ package failed to install..." and from this point the installation exits.

I have reproduced the problem on two computers, 1 laptop and 1 desktop PC. I have reproduced the problem with both "secure boot" enabled and disabled in the BIOS. (the problem does not occur in "legacy mode") I have reproduced the problem with the latest scripts and at commit cf054a6c9503a021c8ccb8eb0d8207265e564e3c (the last update before script refactoring)

To Reproduce Steps to reproduce the behavior: 1.Build ISO, write to USB w/ dd

  1. select Install Ubuntu from Scratch
  2. go through installation process

Expected behavior installation completes successfully

Additional context After the failure I checked in /var/log for details regarding the error but didn't find anything.

kgilmer commented 3 years ago

Possibly related: https://forums.linuxmint.com/viewtopic.php?t=316278

kgilmer commented 3 years ago

Related: https://wiki.ubuntu.com/UEFI/SecureBoot

kgilmer commented 3 years ago

This issue (error dialog during install time) is resolved by adding the package shim-signed + recommended dependencies.

kgilmer commented 3 years ago

Reopening for PR

sguazt commented 2 years ago

Hello,

Thank you for this wonderful project. I have troubles running the live image (from USB) on a system with Secure Boot enabled. The live system simply does not boot. My target Ubuntu version is impish and what I am trying to build is a custom Xubuntu image.

Any idea on how to solve this issue? Thanks.