public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH] 2024-02-01-grub-upgrades: add news item
@ 2024-01-28 16:25 Mike Gilbert
  2024-02-05 23:44 ` Sam James
  2024-02-06 11:44 ` [gentoo-dev] [PATCH] " Christian Bricart
  0 siblings, 2 replies; 6+ messages in thread
From: Mike Gilbert @ 2024-01-28 16:25 UTC (permalink / raw)
  To: gentoo-dev; +Cc: pr

Signed-off-by: Mike Gilbert <floppym@gentoo.org>
---
 .../2024-02-01-grub-upgrades.en.txt           | 40 +++++++++++++++++++
 1 file changed, 40 insertions(+)
 create mode 100644 2024-02-01-grub-upgrades/2024-02-01-grub-upgrades.en.txt

diff --git a/2024-02-01-grub-upgrades/2024-02-01-grub-upgrades.en.txt b/2024-02-01-grub-upgrades/2024-02-01-grub-upgrades.en.txt
new file mode 100644
index 0000000..f7aaa72
--- /dev/null
+++ b/2024-02-01-grub-upgrades/2024-02-01-grub-upgrades.en.txt
@@ -0,0 +1,40 @@
+Title: GRUB upgrades
+Author: Mike Gilbert <floppym@gentoo.org>
+Posted: 2024-02-01
+Revision: 1
+News-Item-Format: 2.0
+Display-If-Installed: sys-boot/grub
+
+When booting with GRUB, it is important that the core image and modules
+have matching versions. Usually, running grub-install is sufficient to
+ensure this.
+
+On the UEFI platform, grub-install allows the core image to be placed in
+two different locations:
+
+EFI/gentoo/grubx64.efi
+This is the location used by grub-install without options.
+
+EFI/BOOT/BOOTX64.EFI
+This is the location used by grub-install --removable.
+
+On upgrades, it is common for users to mismatch the grub-install options
+they used for the current and previous versions of grub. This will cause
+a stale core image to exist. For example:
+
+/boot/efi/EFI/BOOT/BOOTX64.EFI (grub 2.06 core image)
+/boot/efi/EFI/gentoo/grubx64.efi (grub 2.12 core image)
+/boot/grub/x86_64-pc/*.mod (grub 2.12 modules)
+
+Booting this system using BOOTX64.EFI image would likely fail due to a
+symbol mismatch between the core image and modules. [1]
+
+Re-runing grub-install both with and without the --removable option
+should ensure a working GRUB installation.
+
+However, this will clobber any BOOTX64.EFI image provded by other
+loaders. If dual-booting using another boot loader, users must take care
+not to replace BOOTX64.EFI if it is not provided by GRUB.
+
+References:
+[1] https://bugs.gentoo.org/920708
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] [PATCH] 2024-02-01-grub-upgrades: add news item
  2024-01-28 16:25 [gentoo-dev] [PATCH] 2024-02-01-grub-upgrades: add news item Mike Gilbert
@ 2024-02-05 23:44 ` Sam James
  2024-02-06  6:49   ` [gentoo-dev] Typo: " Nils Freydank
  2024-02-06 11:44 ` [gentoo-dev] [PATCH] " Christian Bricart
  1 sibling, 1 reply; 6+ messages in thread
From: Sam James @ 2024-02-05 23:44 UTC (permalink / raw)
  To: gentoo-dev; +Cc: pr


Mike Gilbert <floppym@gentoo.org> writes:

> Signed-off-by: Mike Gilbert <floppym@gentoo.org>
> ---
>  .../2024-02-01-grub-upgrades.en.txt           | 40 +++++++++++++++++++
>  1 file changed, 40 insertions(+)
>  create mode 100644 2024-02-01-grub-upgrades/2024-02-01-grub-upgrades.en.txt
>

LGTM.

> diff --git a/2024-02-01-grub-upgrades/2024-02-01-grub-upgrades.en.txt b/2024-02-01-grub-upgrades/2024-02-01-grub-upgrades.en.txt
> new file mode 100644
> index 0000000..f7aaa72
> --- /dev/null
> +++ b/2024-02-01-grub-upgrades/2024-02-01-grub-upgrades.en.txt
> @@ -0,0 +1,40 @@
> +Title: GRUB upgrades
> +Author: Mike Gilbert <floppym@gentoo.org>
> +Posted: 2024-02-01
> +Revision: 1
> +News-Item-Format: 2.0
> +Display-If-Installed: sys-boot/grub
> +
> +When booting with GRUB, it is important that the core image and modules
> +have matching versions. Usually, running grub-install is sufficient to
> +ensure this.
> +
> +On the UEFI platform, grub-install allows the core image to be placed in
> +two different locations:
> +
> +EFI/gentoo/grubx64.efi
> +This is the location used by grub-install without options.
> +
> +EFI/BOOT/BOOTX64.EFI
> +This is the location used by grub-install --removable.
> +
> +On upgrades, it is common for users to mismatch the grub-install options
> +they used for the current and previous versions of grub. This will cause
> +a stale core image to exist. For example:
> +
> +/boot/efi/EFI/BOOT/BOOTX64.EFI (grub 2.06 core image)
> +/boot/efi/EFI/gentoo/grubx64.efi (grub 2.12 core image)
> +/boot/grub/x86_64-pc/*.mod (grub 2.12 modules)
> +
> +Booting this system using BOOTX64.EFI image would likely fail due to a
> +symbol mismatch between the core image and modules. [1]
> +
> +Re-runing grub-install both with and without the --removable option
> +should ensure a working GRUB installation.
> +
> +However, this will clobber any BOOTX64.EFI image provded by other
> +loaders. If dual-booting using another boot loader, users must take care
> +not to replace BOOTX64.EFI if it is not provided by GRUB.
> +
> +References:
> +[1] https://bugs.gentoo.org/920708



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] Typo: 2024-02-01-grub-upgrades: add news item
  2024-02-05 23:44 ` Sam James
@ 2024-02-06  6:49   ` Nils Freydank
  0 siblings, 0 replies; 6+ messages in thread
From: Nils Freydank @ 2024-02-06  6:49 UTC (permalink / raw)
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 389 bytes --]

Am Montag, den 05.02.2024 um 23:44:10 Uhr +0000 schrieb Sam James <sam@gentoo.org>:
> [...]
> > +However, this will clobber any BOOTX64.EFI image provded by other
> > +loaders. If dual-booting using another boot loader, users must take care
> > +not to replace BOOTX64.EFI if it is not provided by GRUB.
Hi, I think you meant "provided" here (missing "i").

Looks lgtm otherwise.

> [...]

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 358 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] [PATCH] 2024-02-01-grub-upgrades: add news item
  2024-01-28 16:25 [gentoo-dev] [PATCH] 2024-02-01-grub-upgrades: add news item Mike Gilbert
  2024-02-05 23:44 ` Sam James
@ 2024-02-06 11:44 ` Christian Bricart
  2024-02-06 14:28   ` Gordon Pettey
  2024-02-06 19:27   ` Mike Gilbert
  1 sibling, 2 replies; 6+ messages in thread
From: Christian Bricart @ 2024-02-06 11:44 UTC (permalink / raw)
  To: gentoo-dev

Am 28.01.24 um 17:25 schrieb Mike Gilbert:
> […]
> +On upgrades, it is common for users to mismatch the grub-install options
> +they used for the current and previous versions of grub. This will cause
> +a stale core image to exist. For example:
> +
> +/boot/efi/EFI/BOOT/BOOTX64.EFI (grub 2.06 core image)
> +/boot/efi/EFI/gentoo/grubx64.efi (grub 2.12 core image)
> +/boot/grub/x86_64-pc/*.mod (grub 2.12 modules)

despite x64, the path is always /boot/grub/i386-pc/*.mod for 
GRUB_PLATFORMS=pc

Christian





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] [PATCH] 2024-02-01-grub-upgrades: add news item
  2024-02-06 11:44 ` [gentoo-dev] [PATCH] " Christian Bricart
@ 2024-02-06 14:28   ` Gordon Pettey
  2024-02-06 19:27   ` Mike Gilbert
  1 sibling, 0 replies; 6+ messages in thread
From: Gordon Pettey @ 2024-02-06 14:28 UTC (permalink / raw)
  To: gentoo-dev

On Tue, Feb 6, 2024 at 5:44 AM Christian Bricart <christian@bricart.de> wrote:
>
> Am 28.01.24 um 17:25 schrieb Mike Gilbert:
> > […]
> > +On upgrades, it is common for users to mismatch the grub-install options
> > +they used for the current and previous versions of grub. This will cause
> > +a stale core image to exist. For example:
> > +
> > +/boot/efi/EFI/BOOT/BOOTX64.EFI (grub 2.06 core image)
> > +/boot/efi/EFI/gentoo/grubx64.efi (grub 2.12 core image)
> > +/boot/grub/x86_64-pc/*.mod (grub 2.12 modules)
>
> despite x64, the path is always /boot/grub/i386-pc/*.mod for
> GRUB_PLATFORMS=pc
>
> Christian

Also odd to conflate -pc and -efi setups in the same news item. If you
installed to EFI, your modules are installed in
/boot/grub/x86_64-efi/. If you installed "pc", e.g. old BIOS boot, you
won't have those .efi files.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] [PATCH] 2024-02-01-grub-upgrades: add news item
  2024-02-06 11:44 ` [gentoo-dev] [PATCH] " Christian Bricart
  2024-02-06 14:28   ` Gordon Pettey
@ 2024-02-06 19:27   ` Mike Gilbert
  1 sibling, 0 replies; 6+ messages in thread
From: Mike Gilbert @ 2024-02-06 19:27 UTC (permalink / raw)
  To: gentoo-dev

On Tue, Feb 6, 2024 at 6:44 AM Christian Bricart <christian@bricart.de> wrote:
>
> Am 28.01.24 um 17:25 schrieb Mike Gilbert:
> > […]
> > +On upgrades, it is common for users to mismatch the grub-install options
> > +they used for the current and previous versions of grub. This will cause
> > +a stale core image to exist. For example:
> > +
> > +/boot/efi/EFI/BOOT/BOOTX64.EFI (grub 2.06 core image)
> > +/boot/efi/EFI/gentoo/grubx64.efi (grub 2.12 core image)
> > +/boot/grub/x86_64-pc/*.mod (grub 2.12 modules)
>
> despite x64, the path is always /boot/grub/i386-pc/*.mod for
> GRUB_PLATFORMS=pc

Fixed.

https://gitweb.gentoo.org/data/gentoo-news.git/commit/?id=e0e93c981baef4a697dac91e8a9efed0a4a204b5


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-02-06 19:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-28 16:25 [gentoo-dev] [PATCH] 2024-02-01-grub-upgrades: add news item Mike Gilbert
2024-02-05 23:44 ` Sam James
2024-02-06  6:49   ` [gentoo-dev] Typo: " Nils Freydank
2024-02-06 11:44 ` [gentoo-dev] [PATCH] " Christian Bricart
2024-02-06 14:28   ` Gordon Pettey
2024-02-06 19:27   ` Mike Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox