Summary: | sys-boot/grub-2.12-r1 sets the default target to x86_64-efi with GRUB_PLATFORMS="-* pc" | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Mike Gilbert <floppym> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | base-system, bkohler |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Agostino Sarubbo
2024-02-21 13:30:25 UTC
Doesn't it runtime detect what default target to use? So this is just a quirk in the --help output? (In reply to Ben Kohler from comment #1) > Doesn't it runtime detect what default target to use? So this is just a > quirk in the --help output? No, it is not just a --help error, by default it runs x86_64-efi and I got error (In reply to Agostino Sarubbo from comment #2) > No, it is not just a --help error, by default it runs x86_64-efi and I got > error Installing for x86_64-efi platform. grub-install: error: cannot find EFI directory. You're booted in EFI mode now though? And wanting it to default to pc/i386-pc? (In reply to Ben Kohler from comment #4) > You're booted in EFI mode now though? And wanting it to default to > pc/i386-pc? Yes I booted in EFI (bios supports both uefi and legacy) and I want to install i386-pc I thought that the default depend on GRUB_PLATFORMS instead of how it was booted. If that's not the case feel free to close. grub-install determines the default target/platform at runtime on x86(-64) systems. https://git.savannah.gnu.org/cgit/grub.git/tree/grub-core/osdep/linux/platform.c?h=grub-2.12#n136 Basically, if /sys/firmware/efi is mounted it uses EFI. Otherwise it uses PC. We set GRUB_PLATFORMS="efi-64 pc" in amd64 profiles to make this work either way by default. |