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

Is it possible to use image-bootstrap for EFI boot? #75

Open
TTimo opened this issue Feb 17, 2019 · 9 comments
Open

Is it possible to use image-bootstrap for EFI boot? #75

TTimo opened this issue Feb 17, 2019 · 9 comments

Comments

@TTimo
Copy link

TTimo commented Feb 17, 2019

Can image-bootstrap be used to create EFI bootable devices?

I found #42 which was resolved by falling back to installing non EFI grub. But the machine I'm working with only supports EFI booting.

I am trying this for Arch, working from https://wiki.archlinux.org/index.php/Installing_Arch_Linux_on_a_USB_key

@hartwork
Copy link
Owner

Hi!

For a quick approach using --bootloader (host-grub2-device|host-grub2-drive) you may be able to post-process the arguments passed to grub-install using a wrapper and putting that into $PATH (or extending $PATH). Would that work?

We could also discuss introduction of a new flag to make passing --target=i386-pc to grub-install conditional.

What do you think?

@TTimo
Copy link
Author

TTimo commented Feb 17, 2019

I did that initially (manually: chroot'ed into the image and calling grub-install from there with target=i386-pc). But this doesn't setup for EFI booting.

I think for EFI booting we would need the partitioning to create an EFI partition on the device? Is that sufficient? Are there other operations needed before a --target=x86_64-efi would work? (I suppose that's not a image-bootstrap specific question, although it would be great to see the script enhance it's support in that area)

@hartwork
Copy link
Owner

Good point about the partition. Should not be rocket science but take a moment or two. Is this for one-time personal use? What is your use case context?

@TTimo
Copy link
Author

TTimo commented Feb 18, 2019

This is one time for me. I think I can resize partitions from where I'm at atm and get an EFI grub installed by hand, but I figure it would be good for the script to better support EFI in general as it's the current evolution for booting.

@hartwork
Copy link
Owner

I agree. I tried to boot a recent Lenovo ThinkPad from USB the other and there was no way in without EFI on that USB stick.
I would need to check if QEMU can be used to test booting EFI and than the code would need to do more or less what https://github.com/aguslr/multibootusb/blob/master/makeUSB.sh does. I'm in with the direction but I have a few more pressing tasks before that.

@pranaypratyush
Copy link

Hi. Any progress on this?

@hartwork
Copy link
Owner

hartwork commented Dec 2, 2021

@pranaypratyush I have been able to get QEMU boot EFI and documented that process in the meantime but no progress in image-bootstrap and it's not a priority so far. What is your scenario with EFI?

@adrelanos
Copy link

grml-debootstrap learned --vmefi:

Compatible with both, legacy BIOS and EFI booting including Secure Boot compatibility.

@hartwork
Copy link
Owner

@adrelanos interesting, good to know 👍

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

No branches or pull requests

4 participants