I'm building a custom Debian using live-build, and after dd-ing the iso to the USB-stick it boots fine on BIOS-computers, however it does not seem to support UEFI, thus not booting on newer computers.

My goal is simple, to create a custom live-Debian which can boot on "any" computer.

Do you have any ideas of how to enable UEFI, or if there are other ways to build a custom Debian-live with better support?

  • Does your image have an ESP (EFI system partition) with a boot loader? If yes, then it should work, there's not much more to do to support UEFI. If not, then set up an ESP partition. – Marco Jul 15 '16 at 10:45
  • The image created by live-build does not have a ESP. I did try to add this manually but without success. I will look into this a bit more, any hints? – MartinSuecia Jul 15 '16 at 10:47
  • 1
    Here's a script I use to create bootable USB sticks with persistent storage. It's not pretty or resilient but gets the job done for me. If that works for you I can post it as an answer if it doens't maybe you can refine your question and add a bit more detail. – Marco Jul 15 '16 at 10:50
  • Thank you for your script Marco. It did work (after realizing I needed to provide an absolute path to the .iso) but for UEFI-computers only (like you say in the file). My goal is to create a stick that is bootable on UEFI and BIOS (i.e. "any" computer). – MartinSuecia Jul 15 '16 at 11:48
  • I should mention that I do have a working solution, by using an existing .iso (that I did not create) which contains an ESP as well as a persistance-partition. What I can do is to dd that iso to /dev/sdX and then replace the squashfs and kernel to use my debian instead. Yes it's ugly (right?), that's why I'm looking into other options. – MartinSuecia Jul 15 '16 at 11:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.