URL: <https://savannah.gnu.org/bugs/?68156>
Summary: grub-mkconfig creates entry pointing to wrong boot
partition
Group: GNU GRUB
Submitter: drjoms
Submitted: Tue 17 Mar 2026 02:29:07 AM UTC
Category: Configuration
Severity: Major
Priority: 5 - Normal
Item Group: Software Error
Status: None
Privacy: Public
Assigned to: None
Originator Name: dimko
Originator Email:
Open/Closed: Open
Discussion Lock: Unlocked
Release: 2.00
Release:
Reproducibility: Every Time
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Tue 17 Mar 2026 02:29:07 AM UTC By: Dmitri Seletski <drjoms>
running grub-mkconfig:
menuentry 'Gentoo GNU/Linux, with Linux 6.18.18-gentoo' --class gentoo --class
gnu-linux --class gnu --class os $menuentry_id_option
'gnulinux-6.18.18-gentoo-advanced-2eba0226-1d92-4c19-9f8b-2da12d29ea12' {
load_video
insmod gzio
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=root A2F4-DD3E
echo 'Loading Linux 6.18.18-gentoo ...'
linux /kernel-6.18.18-gentoo root=/dev/nvme1n1p2 ro
amd_pstate.shared_mem=1 amd_pstate=active iommu=1 amd_iommu=on iommu=calgary
splash amdgpu.freesync_video=1 amd_prefcore=enable preempt=full threadirqs
nohz_full=1-15 mglru=1
echo 'Loading initial ramdisk ...'
initrd /amd-uc.img
}
menuentry 'Gentoo GNU/Linux, with Linux 6.18.18-gentoo (recovery mode)'
--class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option
'gnulinux-6.18.18-gentoo-recovery-2eba0226-1d92-4c19-9f8b-2da12d29ea12' {
load_video
insmod gzio
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=root A2F4-DD3E
echo 'Loading Linux 6.18.18-gentoo ...'
linux /kernel-6.18.18-gentoo root=/dev/nvme1n1p2 ro single
echo 'Loading initial ramdisk ...'
initrd /amd-uc.img
}
Found linux image: /boot/kernel-6.18.2-gentoo
Found initrd image: /boot/amd-uc.img
menuentry 'Gentoo GNU/Linux, with Linux 6.18.2-gentoo' --class gentoo --class
gnu-linux --class gnu --class os $menuentry_id_option
'gnulinux-6.18.2-gentoo-advanced-2eba0226-1d92-4c19-9f8b-2da12d29ea12' {
load_video
insmod gzio
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=root A2F4-DD3E
echo 'Loading Linux 6.18.2-gentoo ...'
linux /kernel-6.18.2-gentoo root=/dev/nvme1n1p2 ro
amd_pstate.shared_mem=1 amd_pstate=active iommu=1 amd_iommu=on iommu=calgary
splash amdgpu.freesync_video=1 amd_prefcore=enable preempt=full threadirqs
nohz_full=1-15 mglru=1
echo 'Loading initial ramdisk ...'
initrd /amd-uc.img
}
if i output to grub.cfg - this makes system unbootable.
changing root=/dev/nvme1n1p2 to root=/dev/nvme1n1p1 - makes machine bootable
again
relevant lsblk
lsblk -o name,mountpoint,label,size,uuid
nvme1n1 232.9G
├─nvme1n1p1 /boot 1G A2F4-DD3E
└─nvme1n1p2 / 231.9G
2eba0226-1d92-4c19-9f8b-2da12d29ea12
FSTAB:
cat /etc/fstab |grep boot
#LABEL=boot /boot ext4 noauto,noatime,discard
1 2
UUID=A2F4-DD3E /boot vfat noatime,discard
0 1
[ebuild R ] sys-boot/grub-2.12-r12:2/2.12-r12::gentoo USE="branding
device-mapper fonts nls sdl themes truetype -doc -efiemu -libzfs -mount
-secureboot (-test) -verify-sig" GRUB_PLATFORMS="efi-64 pc -coreboot -efi-32
-emu -ieee1275 (-loongson) -multiboot -qemu (-qemu-mips) -uboot -xen -xen-32
-xen-pvh" 0 KiB
I have no idea where grub-mkconfig is taking "root" partition from.
Nor I have any idea how to correct it.(grub-mkconfig will overwrite corrected
grub.cfg)
Hence, bug report.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?68156>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
