While bug #820036 (http://bugs.debian.org/820036) is not solved for Debian 9 there is no way to install debian from a debian-live medium to an UEFI system.
After reading Head_on_a_stick comment here (http://forums.debian.net/viewtopic.php? ... 80#p609579), I've explored the solution and added it in debroot tool (https://github.com/rbern/debroot/commit ... 51cd2053db).
This means that debroot, a tool that creates, builds and "upgrades/rebuilds" debian and ubuntu Live ISO files can now create a Debian 7/8/testing live ISO with UEFI support, which can be used to install the live system do disk (see below).
Now the whole process to have a live debian 7/8/testing iso customized and with UEFI support:
- * Grab the latest version of debroot and install (from https://github.com/rbern/debroot or https://sourceforge.net/projects/debroot/). There are prebuilt debian packages available at https://sourceforge.net/projects/debroot/:
* Download the desired official Debian Live iso from http://cdimage.debian.org/debian-cd/current-live/ or, for non-free versions, http://cdimage.debian.org/cdimage/unoff ... -firmware/;Code: Select all
sudo gdebi -o "APT::Install-Recommends=0" debroot_0.08_all.deb -nq
* start debroot:
Code: Select all
sudo debroot.pl
* Type in the "ROOTFS directory" the name of a new directory where the ISO chroot content will be extracted;
* Select the first tab "Unsquash ISO" and select the downloaded ISO;
* Press the button "Unsquash ISO" and wait;
Now we will update the apt repositories in the chroot and then rebuild the ISO with UEFI support. The "apt-get update" is needed so that apt can find the needed packages.
- * Click on the "sources.list/upgrade" tab and then click the button "Update". Done;
* If you want to add packages to the live ISO (customize) you can now click on the tab "Install" and add packagenames to install and then click the button "Install";
* If you need to execute any command to complete the customization in the chroot click the tab "Chroot" and then run a shell in the chroot;
* If you have installed or upgraded packages then you need to clear the downloaded packages from apt cache to make the live ISO a bit smaller. The commands to be executed in the shell to do this are:
* Now all is ready to rebuild the ISO. Click on the "Build" tab and then on the "Refresh options" button;Code: Select all
apt-get autoremove --purge apt-get clean exit
* To rebuild the debian Live ISO with UEFI support just click "Build ISO" without unchecking the UEFI checkbox and wait.
After the build was completed you can test if the Live ISO boots in UEFI mode in qemu/ovmf or in Virtualbox (with EFI boot).
For qemu/ovmf UEFI testing run:
Code: Select all
qemu-system-x86_64 -bios /usr/share/ovmf/OVMF.fd -cdrom XXXXX.iso -m 1024
Cheers!