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

Use grub2 for BIOS boot support instead of syslinux #1226

Merged
merged 5 commits into from Jun 1, 2022

Conversation

bcl
Copy link
Contributor

@bcl bcl commented Apr 13, 2022

No description provided.

@coveralls
Copy link

coveralls commented Apr 13, 2022

Pull Request Test Coverage Report for Build 2423689840

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 44.538%

Totals Coverage Status
Change from base Build 2373177630: 0.0%
Covered Lines: 1376
Relevant Lines: 2920

💛 - Coveralls

%if domacboot:
${make_efiboot("images/macboot.img", imgtype="apple")}
%endif

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this being removed? Wouldn't this eliminate the fancy integration with Intel Mac EFI firmware?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is, without this, we don't get in the Mac EFI menu the fancy "Fedora" icon that makes it obvious what we are to the firmware when booting the stick. I would prefer we keep this.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 to @Conan-Kudo 's question here. It doesn't seem necessary to remove the integration with the intel mac efi firmware.

Copy link
Contributor Author

@bcl bcl Apr 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because, at least in my testing, it isn't needed. And I like things to be as simple as possible. It's not too hard to tell what it is when booting, even without the logo.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it work when the plist and logo files are installed in the regular ESP image?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea, but I would guess not. IIRC plist neeed to be 'blessed' in order for it to be loaded. There are so many variations to all these things that I'm not going to explore all of them just to get a logo on there.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, yeah, so grub2-macbless only works with HFS+ ESP, rather than FAT32 ESP.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not actually sure if removing this will break on my 2009 MacBook Pro (which I use as a Linux laptop), I will need to test this... Last I tried it only showed me stuff with the HFS+ ESP...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, confirmed, my 2009 MBP isn't super-happy with the FAT ESP...

@AdamWill
Copy link
Contributor

So just scanning this briefly - does this ultimately require us to boot via BIOS from a GPT-labelled disk? Because we did try doing that for Fedora installs for one release, and found enough systems that refused to do that that we reverted it.

That was some time ago, and of course a lot of systems were fine with it. So we might consider that a small enough problem to live with. Just wanted to flag it up.

@Conan-Kudo
Copy link
Contributor

It shouldn't require GPT on BIOS boot, but I am preparing a separate Change proposal for doing that.

@bcl
Copy link
Contributor Author

bcl commented May 13, 2022

So just scanning this briefly - does this ultimately require us to boot via BIOS from a GPT-labelled disk? Because we did try doing that for Fedora installs for one release, and found enough systems that refused to do that that we reverted it.

No, this only effects the boot.iso boot process.

bcl added 5 commits June 1, 2022 11:36
syslinux is unsupported and is going to be removed from Fedora. This
removes it and all of its configuration files from the templates.
This adds support for BIOS booting using grub2. The bios config file and
grub2 modules are under /boot/grub2/
Apple hardware doesn't need the macboot.img to boot, efiboot.img is not
needed in the filesystem so do not graft it into it.

Remove macboot.img and apple specific EFI support
Just add them to the xorrisofs command, the order of the arguments is
interleaved and trying to assemble it from variables just makes it more
confusing.
@bcl bcl force-pushed the master-replace-syslinux branch from 7cba475 to b0a5096 Compare June 1, 2022 18:41
@bcl bcl merged commit b0a5096 into weldr:master Jun 1, 2022
1 check passed
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.

None yet

6 participants