Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grub UEFI support #268

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Grub UEFI support #268

wants to merge 6 commits into from

Conversation

naatje80
Copy link

@naatje80 naatje80 commented Oct 2, 2023

Dear @Tomas-M,

I've added initial support for booting trough UEFI. I first tried to implement it using syslinux/isolinux, however I could not get it working. Next to that, most Linux Live distros I've compared are using GRUB for UEFI boot part. I also read a comment on a forum that syslinux/isolinux never got UEFI boot support for optical storage/iso9660.

I used various sources to get a working grub configuration. However, I finally succeeded today. The current generated iso both works in hyper-v and libvirt/qemu. I'm still working on support for Ventoy (which is my favorite method to boot an iso from a USB stick). I also need to check if I'm able to add secure boot support later on. I also switched to xorriso to generate the iso, because it also seems to support more option for UEFI boot. (and on recent distros mkisofs is just a link to xorriso).

The scripts have been developed and tested with Debian 12 (Boorkworm). The default generated grub files should work, however when the LIVEKITNAME is update the tools/uefi_grub.update also needs to be executed first (like for the isolinux.bin).

@naatje80
Copy link
Author

naatje80 commented Oct 2, 2023

Ventoy support is now also included....

@naatje80 naatje80 changed the title Initial UEFI support Grub UEFI support Oct 9, 2023
@naatje80
Copy link
Author

naatje80 commented Oct 9, 2023

I've renamed the pull request to Grub UEFI support. I noticed there was indeed already UEFI support, however I could not get it working with either QEMU or Hyper-V nor Ventoy on actual servers. Therefore this proposal for UEFI support using GRUB, because all other live distro's 's seem to implement UEFI support using GRUB instead. Possibly because of better compatibility with most UEFI implementations. However, it is of course up to you if you like to switch or not.

@man-schu
Copy link

I just became aware of the ventoy-hook (explained here https://www.ventoy.net/en/compatible.html) when I was wondering how to make an iso file that I transfer easily for instance with Rufus to a USB stick Ventoy compatible. Great idea, naatje80. I hope it will be taken over. I the meantime I will use your fork rather than the main one.

@naatje80
Copy link
Author

@man-schu: Thank you for your message and link. I found the hook when I debugged the boot process. But this is indeed a useful link to better understand the get a better understanding of it. I still like to implement secure boot, but I did not have the time for it yet. I'm also still encountering boot issues on some older systems I need to support.

I also hope the fixes are implemented at one time. I don't have the intention to make it a permanent fork/alternative of the existing one.

@crim50n
Copy link
Contributor

crim50n commented Mar 17, 2024

I've renamed the pull request to Grub UEFI support. I noticed there was indeed already UEFI support, however I could not get it working with either QEMU or Hyper-V nor Ventoy on actual servers. Therefore this proposal for UEFI support using GRUB, because all other live distro's 's seem to implement UEFI support using GRUB instead. Possibly because of better compatibility with most UEFI implementations. However, it is of course up to you if you like to switch or not.

You should not need to modify the Slax code to support Ventoy. Firstly, Ventoy already supports Slax, and secondly, the support is provided on the Ventoy side, i.e. you need to modify Ventoy scripts, not Slax code. Tomas will never add your commits.

@crim50n
Copy link
Contributor

crim50n commented Mar 17, 2024

I still like to implement secure boot

All you need to do is install the Debian kernel, but then you will not have support for AUFS and NTFS3.

@blabno
Copy link

blabno commented Jun 17, 2024

@naatje80 how can I build slax from your branch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants