Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 674476 - https://wiki.gentoo.org/wiki/GRUB2 incorrect information default target on amd64 (BIOS with GPT)
Summary: https://wiki.gentoo.org/wiki/GRUB2 incorrect information default target on am...
Status: RESOLVED INVALID
Alias: None
Product: Websites
Classification: Unclassified
Component: Wiki (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Wiki Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-04 07:23 UTC by ta2002
Modified: 2019-01-04 13:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ta2002 2019-01-04 07:23:30 UTC
https://wiki.gentoo.org/wiki/GRUB2

says (in the BIOS with GPT section):

"grub-install accepts a --target option to set the CPU architecture and system platform. If unspecified, grub-install will attempt to guess the proper values; on an amd64/x86 system it will use i386-pc by default."

That is most certainly NOT the case.

# grub-install /dev/sda                       
grub-install: error: /usr/lib/grub/x86_64-efi/modinfo.sh doesn't exist. Please specify --target or --directory.

# grub-install --target=i386-pc /dev/sda
Installing for i386-pc platform.
Installation finished. No error reported.

# emerge -pv grub

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-boot/grub-2.02-r1:2/2.02-r1::gentoo  USE="device-mapper nls sdl -debug -doc -efiemu -fonts -libzfs -mount -multislot -static (-test) -themes -truetype" GRUB_PLATFORMS="pc -coreboot -efi-32 -efi-64 -emu -ieee1275 -loongson -multiboot -qemu -qemu-mips -uboot -xen -xen-32" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB
Comment 1 Brian Evans (RETIRED) gentoo-dev 2019-01-04 13:32:10 UTC
This is a public wiki page. Anyone can register and edit it.

This is not a problem/bug for the wiki.

If you are are unsure of edits, those go in the Discussion tab of a particular page.