🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.gentoo.user
Article #249

Re: [gentoo-user] Re: Grub can't boot my second kernel

#249
From: Michael
Date: Mon, 30 Nov 2026 17:40
93 lines
7187 bytes
--nextParttRkTFaayTkiX0YlwRd-HCg
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="utf-8"; protected-headers="v1"
From: Michael <confabulate@kintzios.com>
To: gentoo-user@lists.gentoo.org
Reply-To: confabulate@kintzios.com
Subject: Re: [gentoo-user] Re: Grub can't boot my second kernel
Date: Mon, 30 Nov 2026 17:31:05 +0000
Message-ID: <VUTjTwO2T9mm9RRxipa0lw@kintzios.com>
In-Reply-To: <c30d5c97-da8f-425c-bd41-36e32ac06583@raxp.ru>
MIME-Version: 1.0

On Monday, 30 November 2026 16:51:50 Greenwich Mean Time Sergey Filatov 
wrote:
> My bet is that os-prober just finds the partition 4, looks what's
> inside of it in a /boot dir, sees the kernel and adds it to the list.
> But somehow thinks that you have a microcode (by the main system, as
> it is in your partition 2) and adds it to those entries.
> 
> Try to run the rescue system (in grub press E, remove the part with
> /boot/amd-uc.img inclusion and press ctrl+x). The system should boot.
> 
> Then try:
> 
> umount /boot
> ls -la /boot
> 
> If you'll see the kernel files and no amd-uc.img - that's probably
> what GRUB actually tries to load. The older kernel leftover without a
> microcode.
> 
> If that's the case, guess there are two ways to fix it:
> 
> 1. If you only have two systems - disable os-prober in
> /etc/default/grub and write /etc/grub.d/ script to generate the
> entries for the rescue system yourself. Just a simple script that
> creates the manual entry for a rescue kernel. Like this:
> https://wiki.gentoo.org/wiki/GRUB#Enabling_or_disabling_configuration_
> scripts
> 
> 2. Ditch the idea to have a single boot partition for two systems,
> update the kernel for the rescue system (or just copy it from the main
> system, assuming the configuration is the same), copy amd-uc.img to
> (partition4)/boot and call it a day. Might be safer actually, since
> you'll have a fully working system with working kernel, less chance
> to be broken by a faulty kernel update of the main system.

You should try what Sergey recommended above, to understand what 
partition your Rescue OS /efi (boot) mountpoint is really mounted on.

As far as I recall the UUID in grub's configuration is of the OS root 
fs.

The error you are getting is pointing to the temporary build-time fs of 
portage.  To state the obvious, this shouldn't be mentioned anywhere in 
grub's configuration path(s).

Assuming you have mounted the correct FAT32 partition as /efi while you 
are running your Rescue OS, or while you have chrooted into it, you can 
then re-emerge/update sys-boot/grub if you need to, reinstall grub, and 
update its configuration file:

grub-install --efi-directory=/efi

grub-mkconfig -o /efi/EFI/Gentoo/grub.cfg

PS. You can build the AMD microcode and any other firmware you need in 
the kernel itself, by specifying it in CONFIG_EXTRA_FIRMWARE="..."

--nextParttRkTFaayTkiX0YlwRd-HCg
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit

-----BEGIN PGP SIGNATURE-----

iQJPBAABCAA5FiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmsNstkbFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyAAoJELHqqvbClWcZNwYQALUkVRkZQi02/w70yjfD
q/oE0RZ9c2INlQhOLp4TR4fD0cySl/rSsASfy/4onGvtmL5/o/C0/I8OGdMm7XyF
QtnnMUf/F0InYUVp72xk2ULOY6pyuBrOQEnbBgOAzHfUHd557tC/cXS4b4aLe8iA
sI+Wh0TKha5XIrgdhYSk9h+hrC0G85w/L2sILuLW3xxRlB2ZTgTNN0wLX48Nm2de
nvgjoOX6Yd5PK4Amea6M0PoIZqERdyzTILRDeNjLV4AHjWi3AGcR971EGM+JtOS+
aAifMjykX9Yz5kOvK9qDUwPY6u4uuTUyd1BID0c7S9zjR2jqnZljxD/Sz7ed8yAK
ULd8Yn+REAFWEBe86/FL7lMZy4E6zbd3fek+i27rLJdkTqQOs2cibnrQZCJIWaEJ
yWNXwv62OGj4Vui17GNUpATdGPtqQvOorJSctq7/gnjMwXiWw8fvK+78tFDFKRF1
mDl9keB1LVxCp+9aNZkEfNE3ZfEevP0LpXJa+YqfWboJPZoywDdfEeZiP4m1+Q/u
rU71G+pddQTzxA822rDt2EB5fDBp7sLR2A0q0K73H+5NJzmnC1THLldPpJIZTfQK
3w8XQucEWhhXRQZhspaIXjUZ6CjCSR8fNeGv80I+cGb9eZt14hQlAoNhLenskx6F
CAONgDWmxEGsyxV+uPEveY9w
=V2fF
-----END PGP SIGNATURE-----

--nextParttRkTFaayTkiX0YlwRd-HCg--
Technical Details
Message-ID: <O5dw6-fa0H-5@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-ams.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
References: <O5dw6-fa0H-7@gated-at.bofh.it> <O4UjL-eZs1-5@gated-at.bofh.it> <O5bDX-f8Uh-3@gated-at.bofh.it> <O5cTn-f9AC-1@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-ams.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
From: Michael <confabulate@kintzios.com>
Newsgroups: linux.gentoo.user
Subject: Re: [gentoo-user] Re: Grub can't boot my second kernel
Date: Mon, 30 Nov 2026 18:40:02 +0100
Message-ID: <O5dw6-fa0H-5@gated-at.bofh.it>
References: <O5dw6-fa0H-7@gated-at.bofh.it> <O4UjL-eZs1-5@gated-at.bofh.it> <O5bDX-f8Uh-3@gated-at.bofh.it> <O5cTn-f9AC-1@gated-at.bofh.it>
X-Original-To: gentoo-user@lists.gentoo.org
X-Sender-ID: thundermail|x-authsender|confabulate@kintzios.com
X-Sender-ID: thundermail|x-authsender|confabulate@kintzios.com
X-Mc-Relay: Neutral
X-Mailchannels-Senderid: thundermail|x-authsender|confabulate@kintzios.com
X-Mailchannels-Auth-ID: thundermail
X-Ski-Shade: 1ea0cc4f6a654cd4_1796059879627_1109978172
X-Mc-Loop-Signature: 1796059879627:976986669
X-Mc-Ingress-Time: 1796059879625
Authentication-Results: cloud238.thundercloud.uk;
        spf=pass (sender IP is 217.169.3.230) smtp.mailfrom=confabulate@kintzios.com smtp.helo=rogueboard.localnet
Received-Spf: pass (cloud238.thundercloud.uk: connection is authenticated)
List-ID: Gentoo Linux mail <gentoo-user.gentoo.org>
Reply-To: gentoo-user@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="nextParttRkTFaayTkiX0YlwRd-HCg";
 micalg="pgp-sha256"; protocol="application/pgp-signature"
X-Ppp-Message-ID: 
 <179605987688.3926175.15351920941952818647@cloud238.thundercloud.uk>
X-Ppp-Vhost: kintzios.com
X-Rspamd-Queue-ID: 4jdWK126GvzGnsh
X-Rspamd-Server: mailclean11
X-Rspamd-Action: no action
X-Spamd-Result: default: False [-2.20 / 999.00];
	SIGNED_PGP(-2.00)[];
	ONCE_RECEIVED(0.20)[];
	MIME_GOOD(-0.20)[multipart/signed,text/plain];
	R_DKIM_ALIGNED(-0.10)[strict];
	MX_GOOD(-0.10)[mail.kintzios.com];
	DMARC_POLICY_ALLOW(0.00)[kintzios.com,none];
	REPLYTO_DOM_NEQ_TO_DOM(0.00)[];
	RCVD_TLS_ALL(0.00)[];
	UWH_IDENTITY(0.00)[1|d831424a6b28d3c8|t=65|r=0|m=postfix|n=16|h=pppm:1:14/1+pppv:1:15/0|f=nv];
	TO_MATCH_ENVRCPT_ALL(0.00)[];
	R_DKIM_ALLOW(0.00)[kintzios.com:s=default];
	DKIM_TRACE(0.00)[kintzios.com:+];
	ARC_NA(0.00)[];
	RCPT_COUNT_ONE(0.00)[1];
	FROM_HAS_DN(0.00)[];
	MISSING_XM_UA(0.00)[];
	RCVD_COUNT_ONE(0.00)[1];
	TO_DN_NONE(0.00)[];
	REPLYTO_ADDR_EQ_FROM(0.00)[];
	FROM_EQ_ENVFROM(0.00)[];
	MIME_TRACE(0.00)[0:+,1:+,2:~];
	PREVIOUSLY_DELIVERED(0.00)[gentoo-user@lists.gentoo.org];
	R_SPF_ALLOW(0.00)[+mx];
	MID_RHS_MATCH_FROM(0.00)[];
	ASN(0.00)[asn:34931, ipnet:149.255.60.0/22, country:GB];
	RCVD_VIA_SMTP_AUTH(0.00)[];
	HAS_REPLYTO(0.00)[confabulate@kintzios.com]
Approved: robomod@news.nic.it
Lines: 93
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Mon, 30 Nov 2026 17:31:05 +0000
X-Original-Message-ID: <VUTjTwO2T9mm9RRxipa0lw@kintzios.com>
X-Original-References: 
 <sxKSRGVcRVqAZ-LV-6oRuA@prh.myzen.co.uk>
 <KwfPI768QdynBwvZaRkzJQ@prh.myzen.co.uk>
 <c30d5c97-da8f-425c-bd41-36e32ac06583@raxp.ru>