View previous topic :: View next topic |
Author |
Message |
kgdrenefort Guru
Joined: 19 Sep 2023 Posts: 312 Location: Somewhere in the 77
|
Posted: Wed Mar 13, 2024 2:55 pm Post subject: [SOLVED] GRUB don't pick up last kernel by default |
|
|
Hi,
I spotted a problem on my computer: Even if the command:
Code: | eselect kernel list |
shows me I'm running 6.6.16, that was a fat lie. Inspecting showed me that in fact I am running 6.6.13 kernel, and so my nvidia-drivers wasn't properly working and got no 3D acceleration. Confirmed while checking the default grub line at boot, it use 6.6.13. Going manually on the 6.6.16 entry solve my problems, acceleration is here.
But each time I try to update it, GRUB configuration, I get this output showing the displayed order in GRUB menu entry for kernel:
Code: | root@Mephistopheles ~ # LANG=C grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.6.13-gentoo-dist
Found initrd image: /boot/initramfs-6.6.13-gentoo-dist.img
Found linux image: /boot/vmlinuz-6.1.69-gentoo-dist
Found initrd image: /boot/initramfs-6.1.69-gentoo-dist.img
Found linux image: /boot/vmlinuz-6.1.67-gentoo-dist
Found initrd image: /boot/initramfs-6.1.67-gentoo-dist.img
Found linux image: /boot/vmlinuz-6.1.66-gentoo-dist
Found initrd image: /boot/initramfs-6.1.66-gentoo-dist.img
Found linux image: /boot/vmlinuz-6.1.60-gentoo-dist
Found initrd image: /boot/initramfs-6.1.60-gentoo-dist.img
Found linux image: /boot/vmlinuz-6.1.60-gentoo-dist.old
Found initrd image: /boot/initramfs-6.1.60-gentoo-dist.img.old
Found linux image: /boot/vmlinuz-6.1.57-gentoo-dist
Found initrd image: /boot/initramfs-6.1.57-gentoo-dist.img
Found linux image: /boot/vmlinuz-6.1.55-gentoo-dist
Found initrd image: /boot/initramfs-6.1.55-gentoo-dist.img
Found linux image: /boot/kernel-6.6.16-gentoo-dist
Found initrd image: /boot/initramfs-6.6.16-gentoo-dist.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows Boot Manager on /dev/sdb2@/EFI/Microsoft/Boot/bootmgfw.efi
Found Debian GNU/Linux 12 (bookworm) on /dev/sdb8
Adding boot menu entry for UEFI Firmware Settings ...
done |
As you can see… There is this 6.6.16 at the end, and 6.6.13 at beginning.
Lazy me wants to remove older kernel, that's it. But I guess it would start again and I would not want to manually had to remove old kernel to uncorrectly fix that issue. GRUB has to sort the kernel itself, but do revert the order, somehow. I can't figure out why.
I was hoping rebuilding kernel modules, re-install GRUB and update it's configuration would be enough. I had today the same problem on my fiancée's computer, and that was fixed by this method. But not for me. Fat luck.
Below relevant ouptut, I hope:
Code: | root@Mephistopheles ~ # cat /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod xfs
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
else
search --no-floppy --fs-uuid --set=root b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=1920x1080
load_video
insmod gfxterm
fi
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=30
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=30
fi
play 60 800 1
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-b0b86c04-6f4b-4f7e-ac46-8f8065177fe5' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod xfs
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
else
search --no-floppy --fs-uuid --set=root b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
fi
echo 'Loading Linux 6.6.13-gentoo-dist ...'
linux /boot/vmlinuz-6.6.13-gentoo-dist root=UUID=b0b86c04-6f4b-4f7e-ac46-8f8065177fe5 ro
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-6.6.13-gentoo-dist.img
}
submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-b0b86c04-6f4b-4f7e-ac46-8f8065177fe5' {
menuentry 'Gentoo GNU/Linux, with Linux 6.6.13-gentoo-dist' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.13-gentoo-dist-advanced-b0b86c04-6f4b-4f7e-ac46-8f8065177fe5' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod xfs
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
else
search --no-floppy --fs-uuid --set=root b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
fi
echo 'Loading Linux 6.6.13-gentoo-dist ...'
linux /boot/vmlinuz-6.6.13-gentoo-dist root=UUID=b0b86c04-6f4b-4f7e-ac46-8f8065177fe5 ro
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-6.6.13-gentoo-dist.img
}
menuentry 'Gentoo GNU/Linux, with Linux 6.6.13-gentoo-dist (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.13-gentoo-dist-recovery-b0b86c04-6f4b-4f7e-ac46-8f8065177fe5' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod xfs
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
else
search --no-floppy --fs-uuid --set=root b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
fi
echo 'Loading Linux 6.6.13-gentoo-dist ...'
linux /boot/vmlinuz-6.6.13-gentoo-dist root=UUID=b0b86c04-6f4b-4f7e-ac46-8f8065177fe5 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-6.6.13-gentoo-dist.img
}
menuentry 'Gentoo GNU/Linux, with Linux 6.1.69-gentoo-dist' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.69-gentoo-dist-advanced-b0b86c04-6f4b-4f7e-ac46-8f8065177fe5' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod xfs
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
else
search --no-floppy --fs-uuid --set=root b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
fi
echo 'Loading Linux 6.1.69-gentoo-dist ...'
linux /boot/vmlinuz-6.1.69-gentoo-dist root=UUID=b0b86c04-6f4b-4f7e-ac46-8f8065177fe5 ro
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-6.1.69-gentoo-dist.img
}
menuentry 'Gentoo GNU/Linux, with Linux 6.1.69-gentoo-dist (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.69-gentoo-dist-recovery-b0b86c04-6f4b-4f7e-ac46-8f8065177fe5' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod xfs
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
else
search --no-floppy --fs-uuid --set=root b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
fi
echo 'Loading Linux 6.1.69-gentoo-dist ...'
linux /boot/vmlinuz-6.1.69-gentoo-dist root=UUID=b0b86c04-6f4b-4f7e-ac46-8f8065177fe5 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-6.1.69-gentoo-dist.img
}
menuentry 'Gentoo GNU/Linux, with Linux 6.1.67-gentoo-dist' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.67-gentoo-dist-advanced-b0b86c04-6f4b-4f7e-ac46-8f8065177fe5' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod xfs
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
else
search --no-floppy --fs-uuid --set=root b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
fi
echo 'Loading Linux 6.1.67-gentoo-dist ...'
linux /boot/vmlinuz-6.1.67-gentoo-dist root=UUID=b0b86c04-6f4b-4f7e-ac46-8f8065177fe5 ro
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-6.1.67-gentoo-dist.img
}
menuentry 'Gentoo GNU/Linux, with Linux 6.1.67-gentoo-dist (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.67-gentoo-dist-recovery-b0b86c04-6f4b-4f7e-ac46-8f8065177fe5' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod xfs
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
else
search --no-floppy --fs-uuid --set=root b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
fi
echo 'Loading Linux 6.1.67-gentoo-dist ...'
linux /boot/vmlinuz-6.1.67-gentoo-dist root=UUID=b0b86c04-6f4b-4f7e-ac46-8f8065177fe5 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-6.1.67-gentoo-dist.img
}
menuentry 'Gentoo GNU/Linux, with Linux 6.1.66-gentoo-dist' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.66-gentoo-dist-advanced-b0b86c04-6f4b-4f7e-ac46-8f8065177fe5' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod xfs
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
else
search --no-floppy --fs-uuid --set=root b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
fi
echo 'Loading Linux 6.1.66-gentoo-dist ...'
linux /boot/vmlinuz-6.1.66-gentoo-dist root=UUID=b0b86c04-6f4b-4f7e-ac46-8f8065177fe5 ro
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-6.1.66-gentoo-dist.img
}
menuentry 'Gentoo GNU/Linux, with Linux 6.1.66-gentoo-dist (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.66-gentoo-dist-recovery-b0b86c04-6f4b-4f7e-ac46-8f8065177fe5' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod xfs
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
else
search --no-floppy --fs-uuid --set=root b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
fi
echo 'Loading Linux 6.1.66-gentoo-dist ...'
linux /boot/vmlinuz-6.1.66-gentoo-dist root=UUID=b0b86c04-6f4b-4f7e-ac46-8f8065177fe5 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-6.1.66-gentoo-dist.img
}
menuentry 'Gentoo GNU/Linux, with Linux 6.1.60-gentoo-dist' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.60-gentoo-dist-advanced-b0b86c04-6f4b-4f7e-ac46-8f8065177fe5' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod xfs
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
else
search --no-floppy --fs-uuid --set=root b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
fi
echo 'Loading Linux 6.1.60-gentoo-dist ...'
linux /boot/vmlinuz-6.1.60-gentoo-dist root=UUID=b0b86c04-6f4b-4f7e-ac46-8f8065177fe5 ro
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-6.1.60-gentoo-dist.img
}
menuentry 'Gentoo GNU/Linux, with Linux 6.1.60-gentoo-dist (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.60-gentoo-dist-recovery-b0b86c04-6f4b-4f7e-ac46-8f8065177fe5' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod xfs
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
else
search --no-floppy --fs-uuid --set=root b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
fi
echo 'Loading Linux 6.1.60-gentoo-dist ...'
linux /boot/vmlinuz-6.1.60-gentoo-dist root=UUID=b0b86c04-6f4b-4f7e-ac46-8f8065177fe5 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-6.1.60-gentoo-dist.img
}
menuentry 'Gentoo GNU/Linux, with Linux 6.1.60-gentoo-dist.old' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.60-gentoo-dist.old-advanced-b0b86c04-6f4b-4f7e-ac46-8f8065177fe5' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod xfs
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
else
search --no-floppy --fs-uuid --set=root b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
fi
echo 'Loading Linux 6.1.60-gentoo-dist.old ...'
linux /boot/vmlinuz-6.1.60-gentoo-dist.old root=UUID=b0b86c04-6f4b-4f7e-ac46-8f8065177fe5 ro
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-6.1.60-gentoo-dist.img.old
}
menuentry 'Gentoo GNU/Linux, with Linux 6.1.60-gentoo-dist.old (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.60-gentoo-dist.old-recovery-b0b86c04-6f4b-4f7e-ac46-8f8065177fe5' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod xfs
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
else
search --no-floppy --fs-uuid --set=root b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
fi
echo 'Loading Linux 6.1.60-gentoo-dist.old ...'
linux /boot/vmlinuz-6.1.60-gentoo-dist.old root=UUID=b0b86c04-6f4b-4f7e-ac46-8f8065177fe5 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-6.1.60-gentoo-dist.img.old
}
menuentry 'Gentoo GNU/Linux, with Linux 6.1.57-gentoo-dist' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.57-gentoo-dist-advanced-b0b86c04-6f4b-4f7e-ac46-8f8065177fe5' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod xfs
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
else
search --no-floppy --fs-uuid --set=root b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
fi
echo 'Loading Linux 6.1.57-gentoo-dist ...'
linux /boot/vmlinuz-6.1.57-gentoo-dist root=UUID=b0b86c04-6f4b-4f7e-ac46-8f8065177fe5 ro
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-6.1.57-gentoo-dist.img
}
menuentry 'Gentoo GNU/Linux, with Linux 6.1.57-gentoo-dist (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.57-gentoo-dist-recovery-b0b86c04-6f4b-4f7e-ac46-8f8065177fe5' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod xfs
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
else
search --no-floppy --fs-uuid --set=root b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
fi
echo 'Loading Linux 6.1.57-gentoo-dist ...'
linux /boot/vmlinuz-6.1.57-gentoo-dist root=UUID=b0b86c04-6f4b-4f7e-ac46-8f8065177fe5 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-6.1.57-gentoo-dist.img
}
menuentry 'Gentoo GNU/Linux, with Linux 6.1.55-gentoo-dist' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.55-gentoo-dist-advanced-b0b86c04-6f4b-4f7e-ac46-8f8065177fe5' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod xfs
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
else
search --no-floppy --fs-uuid --set=root b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
fi
echo 'Loading Linux 6.1.55-gentoo-dist ...'
linux /boot/vmlinuz-6.1.55-gentoo-dist root=UUID=b0b86c04-6f4b-4f7e-ac46-8f8065177fe5 ro
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-6.1.55-gentoo-dist.img
}
menuentry 'Gentoo GNU/Linux, with Linux 6.1.55-gentoo-dist (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.55-gentoo-dist-recovery-b0b86c04-6f4b-4f7e-ac46-8f8065177fe5' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod xfs
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
else
search --no-floppy --fs-uuid --set=root b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
fi
echo 'Loading Linux 6.1.55-gentoo-dist ...'
linux /boot/vmlinuz-6.1.55-gentoo-dist root=UUID=b0b86c04-6f4b-4f7e-ac46-8f8065177fe5 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-6.1.55-gentoo-dist.img
}
menuentry 'Gentoo GNU/Linux, with Linux 6.6.16-gentoo-dist' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.16-gentoo-dist-advanced-b0b86c04-6f4b-4f7e-ac46-8f8065177fe5' {
load_video
insmod gzio
insmod part_gpt
insmod xfs
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
else
search --no-floppy --fs-uuid --set=root b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
fi
echo 'Loading Linux 6.6.16-gentoo-dist ...'
linux /boot/kernel-6.6.16-gentoo-dist root=UUID=b0b86c04-6f4b-4f7e-ac46-8f8065177fe5 ro
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-6.6.16-gentoo-dist.img
}
menuentry 'Gentoo GNU/Linux, with Linux 6.6.16-gentoo-dist (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.16-gentoo-dist-recovery-b0b86c04-6f4b-4f7e-ac46-8f8065177fe5' {
load_video
insmod gzio
insmod part_gpt
insmod xfs
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
else
search --no-floppy --fs-uuid --set=root b0b86c04-6f4b-4f7e-ac46-8f8065177fe5
fi
echo 'Loading Linux 6.6.16-gentoo-dist ...'
linux /boot/kernel-6.6.16-gentoo-dist root=UUID=b0b86c04-6f4b-4f7e-ac46-8f8065177fe5 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-6.6.16-gentoo-dist.img
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/25_bli ###
if [ "$grub_platform" = "efi" ]; then
insmod bli
fi
### END /etc/grub.d/25_bli ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/sdb2)' --class windows --class os $menuentry_id_option 'osprober-efi-569B-9899' {
insmod part_gpt
insmod fat
set root='hd1,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2 569B-9899
else
search --no-floppy --fs-uuid --set=root 569B-9899
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
menuentry 'Debian GNU/Linux 12 (bookworm) (on /dev/sdb8)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-0c3d2680-2c69-42aa-874a-8c1ba2416b44' {
insmod part_gpt
insmod ext2
set root='hd1,gpt11'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt11 --hint-efi=hd1,gpt11 --hint-baremetal=ahci1,gpt11 30d970a9-3a7b-448d-922b-4ed2ddfec145
else
search --no-floppy --fs-uuid --set=root 30d970a9-3a7b-448d-922b-4ed2ddfec145
fi
linux /vmlinuz-6.1.0-13-amd64 root=UUID=0c3d2680-2c69-42aa-874a-8c1ba2416b44 ro quiet
initrd /initrd.img-6.1.0-13-amd64
}
submenu 'Advanced options for Debian GNU/Linux 12 (bookworm) (on /dev/sdb8)' $menuentry_id_option 'osprober-gnulinux-advanced-0c3d2680-2c69-42aa-874a-8c1ba2416b44' {
menuentry 'Debian GNU/Linux (on /dev/sdb8)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-6.1.0-13-amd64--0c3d2680-2c69-42aa-874a-8c1ba2416b44' {
insmod part_gpt
insmod ext2
set root='hd1,gpt11'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt11 --hint-efi=hd1,gpt11 --hint-baremetal=ahci1,gpt11 30d970a9-3a7b-448d-922b-4ed2ddfec145
else
search --no-floppy --fs-uuid --set=root 30d970a9-3a7b-448d-922b-4ed2ddfec145
fi
linux /vmlinuz-6.1.0-13-amd64 root=UUID=0c3d2680-2c69-42aa-874a-8c1ba2416b44 ro quiet
initrd /initrd.img-6.1.0-13-amd64
}
menuentry 'Debian GNU/Linux, with Linux 6.1.0-13-amd64 (on /dev/sdb8)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-6.1.0-13-amd64--0c3d2680-2c69-42aa-874a-8c1ba2416b44' {
insmod part_gpt
insmod ext2
set root='hd1,gpt11'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt11 --hint-efi=hd1,gpt11 --hint-baremetal=ahci1,gpt11 30d970a9-3a7b-448d-922b-4ed2ddfec145
else
search --no-floppy --fs-uuid --set=root 30d970a9-3a7b-448d-922b-4ed2ddfec145
fi
linux /vmlinuz-6.1.0-13-amd64 root=UUID=0c3d2680-2c69-42aa-874a-8c1ba2416b44 ro quiet
initrd /initrd.img-6.1.0-13-amd64
}
menuentry 'Debian GNU/Linux, with Linux 6.1.0-13-amd64 (recovery mode) (on /dev/sdb8)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-6.1.0-13-amd64-root=UUID=0c3d2680-2c69-42aa-874a-8c1ba2416b44 ro single-0c3d2680-2c69-42aa-874a-8c1ba2416b44' {
insmod part_gpt
insmod ext2
set root='hd1,gpt11'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt11 --hint-efi=hd1,gpt11 --hint-baremetal=ahci1,gpt11 30d970a9-3a7b-448d-922b-4ed2ddfec145
else
search --no-floppy --fs-uuid --set=root 30d970a9-3a7b-448d-922b-4ed2ddfec145
fi
linux /vmlinuz-6.1.0-13-amd64 root=UUID=0c3d2680-2c69-42aa-874a-8c1ba2416b44 ro single
initrd /initrd.img-6.1.0-13-amd64
}
menuentry 'Debian GNU/Linux, with Linux 6.1.0-12-amd64 (on /dev/sdb8)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-6.1.0-12-amd64--0c3d2680-2c69-42aa-874a-8c1ba2416b44' {
insmod part_gpt
insmod ext2
set root='hd1,gpt11'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt11 --hint-efi=hd1,gpt11 --hint-baremetal=ahci1,gpt11 30d970a9-3a7b-448d-922b-4ed2ddfec145
else
search --no-floppy --fs-uuid --set=root 30d970a9-3a7b-448d-922b-4ed2ddfec145
fi
linux /vmlinuz-6.1.0-12-amd64 root=UUID=0c3d2680-2c69-42aa-874a-8c1ba2416b44 ro quiet
initrd /initrd.img-6.1.0-12-amd64
}
menuentry 'Debian GNU/Linux, with Linux 6.1.0-12-amd64 (recovery mode) (on /dev/sdb8)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-6.1.0-12-amd64-root=UUID=0c3d2680-2c69-42aa-874a-8c1ba2416b44 ro single-0c3d2680-2c69-42aa-874a-8c1ba2416b44' {
insmod part_gpt
insmod ext2
set root='hd1,gpt11'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt11 --hint-efi=hd1,gpt11 --hint-baremetal=ahci1,gpt11 30d970a9-3a7b-448d-922b-4ed2ddfec145
else
search --no-floppy --fs-uuid --set=root 30d970a9-3a7b-448d-922b-4ed2ddfec145
fi
linux /vmlinuz-6.1.0-12-amd64 root=UUID=0c3d2680-2c69-42aa-874a-8c1ba2416b44 ro single
initrd /initrd.img-6.1.0-12-amd64
}
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
if [ "$grub_platform" = "efi" ]; then
fwsetup --is-supported
if [ "$?" = 0 ]; then
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
fi
fi
### END /etc/grub.d/30_uefi-firmware ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ### |
Code: | root@Mephistopheles ~ # cat /etc/default/grub
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
#
# To populate all changes in this file you need to regenerate your
# grub configuration file afterwards:
# 'grub-mkconfig -o /boot/grub/grub.cfg'
#
# See the grub info page for documentation on possible variables and
# their associated values.
GRUB_DISTRIBUTOR="Gentoo"
# Default menu entry
#GRUB_DEFAULT=0
# Boot the default entry this many seconds after the menu is displayed
GRUB_TIMEOUT=30
#GRUB_TIMEOUT_STYLE=menu
# Append parameters to the linux kernel command line
#GRUB_CMDLINE_LINUX=""
#
# Examples:
#
# Boot with network interface renaming disabled
# GRUB_CMDLINE_LINUX="net.ifnames=0"
#
# Boot with systemd instead of sysvinit (openrc)
# GRUB_CMDLINE_LINUX="init=/usr/lib/systemd/systemd"
# Append parameters to the linux kernel command line for non-recovery entries
#GRUB_CMDLINE_LINUX_DEFAULT=""
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal.
# Note that you can use only modes which your graphic card supports via VBE.
# You can see them in real GRUB with the command `vbeinfo'.
GRUB_GFXMODE=1920x1080
# Set to 'text' to force the Linux kernel to boot in normal text
# mode, 'keep' to preserve the graphics mode set using
# 'GRUB_GFXMODE', 'WIDTHxHEIGHT'['xDEPTH'] to set a particular
# graphics mode, or a sequence of these separated by commas or
# semicolons to try several modes in sequence.
#GRUB_GFXPAYLOAD_LINUX=
# Path to theme spec txt file.
# The starfield is by default provided with use truetype.
# NOTE: when enabling custom theme, ensure you have required font/etc.
#GRUB_THEME="/boot/grub/themes/starfield/theme.txt"
#GRUB_THEME="/boot/grub/themes/fallout-grub-theme-master/theme.txt"
# Background image used on graphical terminal.
# Can be in various bitmap formats.
#GRUB_BACKGROUND="/boot/grub/mybackground.png"
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to kernel
#GRUB_DISABLE_LINUX_UUID=true
# Comment if you don't want GRUB to pass "root=PARTUUID=xxx" parameter to kernel
GRUB_DISABLE_LINUX_PARTUUID=false
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY=true
# Uncomment to disable generation of the submenu and put all choices on
# the top-level menu.
# Besides the visual affect of no sub menu, this makes navigation of the
# menu easier for a user who can't see the screen.
#GRUB_DISABLE_SUBMENU=y
GRUB_DISABLE_OS_PROBER=false
# Uncomment to play a tone when the main menu is displayed.
# This is useful, for example, to allow users who can't see the screen
# to know when they can make a choice on the menu.
GRUB_INIT_TUNE="60 800 1" |
Code: | root@Mephistopheles ~ # uname -a
Linux Mephistopheles 6.6.16-gentoo-dist #1 SMP PREEMPT_DYNAMIC Sat Feb 24 23:55:16 CET 2024 x86_64 AMD Ryzen 5 2600 Six-Core Processor AuthenticAMD GNU/Linux |
Code: | root@Mephistopheles ~ # eselect kernel list
Available kernel symlink targets:
[1] linux-6.6.16-gentoo-dist * |
Code: | root@Mephistopheles ~ # lsmod | grep nvidia
nvidia_uvm 2478080 0
nvidia_drm 77824 12
nvidia_modeset 1507328 30 nvidia_drm
nvidia 62029824 1623 nvidia_uvm,nvidia_modeset
video 69632 1 nvidia_modeset |
Code: | root@Mephistopheles ~ # emerge --search x11-drivers/nvidia-drivers
[ Results for search key : x11-drivers/nvidia-drivers ]
Searching...
* x11-drivers/nvidia-drivers
Latest version available: 535.161.07
Latest version installed: 535.161.07
Size of files: 347 372 KiB
Homepage: https://www.nvidia.com/download/index.aspx
Description: NVIDIA Accelerated Graphics Driver
License: NVIDIA-r2 Apache-2.0 BSD BSD-2 GPL-2 MIT ZLIB curl openssl
[ Applications found : 1 ] |
Code: | root@Mephistopheles ~ # dmesg | grep nvidia
[ 5.260243] nvidia: loading out-of-tree module taints kernel.
[ 5.260589] nvidia: module license 'NVIDIA' taints kernel.
[ 5.261236] nvidia: module license taints kernel.
[ 5.815433] nvidia-nvlink: Nvlink Core is being initialized, major device number 237
[ 5.817316] nvidia 0000:09:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=io+mem
[ 5.884814] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 535.161.07 Sat Feb 17 23:07:24 UTC 2024
[ 5.889049] [drm] [nvidia-drm] [GPU ID 0x00000900] Loading driver
[ 7.187234] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:09:00.0 on minor 0
[ 12.167480] nvidia_uvm: module uses symbols nvUvmInterfaceDisableAccessCntr from proprietary module nvidia, inheriting taint.
[ 12.204607] nvidia-uvm: Loaded the UVM driver, major device number 235. |
Code: | root@Mephistopheles ~ # cat /etc/portage/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="-march=native -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
MAKEOPTS="-j6"
USE="-gtk -gtk+ -gtk-doc -gnome -gnome-keyring -wifi -webengine a52 aac aalib accessibility acl acpi alsa alsa-lib appindicator audiofile bash-completion bluetooth branding bzip2 cdda cddb cdinstall cdr cgi clamav colord crypt css cups curl cxx dist-kernel dbus dedicated djvu dri dvd dvdr encode exif fastcgi fbcon ffmpeg filecaps flag ftp gif gimp git gstreamer gui gzip handbook hddtemp icu imagemagick imap ipv6 jack javascript joystick jpeg jpeg2k kde lame libcaca libnotify libwww lm-sensors lzma lz4 lzo mad magic man matroska mng mp3 mp4 mpeg mplayer mtp mysql ncurses networkmanager nvenc ogg openal opengl oss pdf plasma png policykit posix pulseaudio python qt5 qt6 raw rdp readline sasl scanner session smp sound spell ssl sqlite svg symlink systemd szip telemetry tiff tk truetype udev udisks uefi unicode upower usb v4l vaapi vcd vdpau -verify-sig vim-syntax vhosts vnc vorbis vulkan wayland webkit webp x264 xattr xml xscreensaver zip grub"
#USE="-gtk -gtk+ -gtk-doc -gnome -gnome-keyring -wifi"
ACCEPT_LICENSE="-* @FREE @BINARY-REDISTRIBUTABLE"
VIDEO_CARDS="nvidia"
# NOTE: This stage was built with the bindist Use flag enabled
# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C.utf8
L10N="fr-FR"
GRUB_PLATFORMS="efi-64" |
Code: | root@Mephistopheles ~ # cat /etc/portage/package.use/00use
media-video/ffmpeg extra -sdl
net-misc/networkmanager -wext
media-video/pipewire extra -ffmpeg
# required by app-accessibility/brltty-6.5-r2::gentoo
# required by app-accessibility/orca-44.1::gentoo[braille,python_single_target_python3_11]
# required by kde-plasma/plasma-meta-5.27.8::gentoo[accessibility]
# required by plasma-meta (argument)
>=dev-libs/libpcre2-10.42-r1 pcre32
# required by www-client/firefox-115.3.1::gentoo[system-libvpx]
# required by firefox (argument)
>=media-libs/libvpx-1.13.1 postproc
# Optimisation personnelle firefox
www-client/firefox -screencast
>=net-libs/nodejs-20.6.1 inspector
media-video/obs-studio lua nvenc pulseaudio speex v4l
# required by dev-libs/libayatana-appindicator-0.5.92::gentoo
# required by net-im/discord-0.0.30::gentoo[appindicator]
# required by net-im/discord (argument)
>=dev-libs/libdbusmenu-16.04.0-r2 gtk3
# required by kde-misc/kweather-23.04.3::gentoo
# required by kde-apps/kdeutils-meta-23.04.3::gentoo
# required by kde-apps/kdeutils-meta (argument)
>=dev-qt/qtpositioning-5.15.10:5 geoclue
# required by kde-apps/kamoso-23.04.3::gentoo
# required by kde-apps/kdemultimedia-meta-23.04.3::gentoo[gstreamer]
# required by kde-apps/kdemultimedia-meta (argument)
>=media-plugins/gst-plugins-meta-1.20.6 theora
# required by media-plugins/gst-plugins-meta-1.20.6::gentoo
# required by kde-apps/kamoso-23.04.3::gentoo
# required by kde-apps/kdemultimedia-meta-23.04.3::gentoo[gstreamer]
# required by kde-apps/kdemultimedia-meta (argument)
>=media-libs/gst-plugins-base-1.20.6 theora
# required by kde-apps/kdenlive-23.04.3::gentoo
# required by kde-apps/kdemultimedia-meta-23.04.3::gentoo
# required by kde-apps/kdemultimedia-meta (argument)
>=media-video/ffmpeg-6.0-r6 libass sdl
# required by www-client/falkon-23.04.3::gentoo[python_single_target_python3_11,python]
# required by kde-apps/kdecore-meta-23.04.3::gentoo[webengine]
# required by kde-apps/kdecore-meta (argument)
>=dev-python/pyside2-5.15.10-r2 webengine
# required by kde-apps/kdenlive-23.04.3::gentoo
# required by kde-apps/kdemultimedia-meta-23.04.3::gentoo
# required by kde-apps/kdemultimedia-meta (argument)
# =media-video/ffmpeg-4.4.4-r3 sdl libass
media-plugins/gst-plugins-meta theora
# required by games-engines/openmw-0.48.0::gentoo
# required by games-engines/openmw (argument)
>=sci-physics/bullet-3.21 double-precision
dev-lang/php gd
dev-db/mysql pdo mysqli
games-strategy/freeciv qt5 -qt6
# required by games-strategy/wesnoth-1.16.10::gentoo
# required by games-strategy/wesnoth (argument)
>=dev-libs/boost-1.82.0-r1 context
# required by games-strategy/dunelegacy-0.96.4::gentoo
# required by games-strategy/dunelegacy (argument)
>=media-libs/sdl2-mixer-2.6.2-r1 midi timidity
# move games-action/minetest games-engines/minetest
games-engines/minetest server
media-libs/opencolorio -opengl
# kdesu not working: https://forums.gentoo.org/viewtopic-t-1102076-start-0.html
kde-plasma/kde-cli-tools -kdesu*
# https://forums.gentoo.org/viewtopic-t-1167711-highlight-.html
media-video/vlc -vaapi
x11-drivers/nvidia-drivers tool |
Hoping it helps you helping me :).
Regards,
GASPARD DE RENEFORT Kévin _________________ Traduction wiki, pour praticiper.
Custom logos/biz card/website.
Last edited by kgdrenefort on Wed Mar 13, 2024 7:21 pm; edited 2 times in total |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5036 Location: Bavaria
|
Posted: Wed Mar 13, 2024 3:11 pm Post subject: |
|
|
kgdrenefort,
a "eselect kernel set X" does only one thing: It changes the softlink /usr/src/linux ... nothing else ... no installation ... nothing
So a "eselect kernel list" shows you the same as a "ls -l /usr/src/linux" ... It doesnt show you which kernel(s) is/are INSIDE your /boot and which of them WAS really booted.
There exists a automatation in Gentoo to change this softlink when emerging a new Kernel: the Use-flag "symlink"
The other question why grub-mkconfig doesnt sort the kernels correct I cannot answer and I almost suspect that it is a bug of grub-mkconfig. _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2366
|
Posted: Wed Mar 13, 2024 3:22 pm Post subject: Re: GRUB don't pick up last kernel by default |
|
|
kgdrenefort wrote: | Hi,
I spotted a problem on my computer: Even if the command:
Code: | eselect kernel list |
shows me I'm running 6.6.16 |
Eselect kernel list does not show you what you're running but what /usr/src/linux points to. By convention, kernel sources are found there but that does not have any binding effect whatsoever on what actual kernel you're running.
kgdrenefort wrote: | Inspecting showed me that in fact I am running 6.6.13 kernel, and so my nvidia-drivers wasn't properly working and got no 3D acceleration. Confirmed while checking the default grub line at boot, it use 6.6.13. Going manually on the 6.6.16 entry solve my problems, acceleration is here. |
That's because at the time of emerging nvidia-drivers, /usr/src/linux already pointed at 6.6.16 and the modules were built against it.
kgdrenefort wrote: | But each time I try to update it, GRUB configuration, I get this output showing the displayed order in GRUB menu entry for kernel:
Code: | root@Mephistopheles ~ # LANG=C grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.6.13-gentoo-dist
Found initrd image: /boot/initramfs-6.6.13-gentoo-dist.img
Found linux image: /boot/vmlinuz-6.1.69-gentoo-dist
Found initrd image: /boot/initramfs-6.1.69-gentoo-dist.img
Found linux image: /boot/vmlinuz-6.1.67-gentoo-dist
Found initrd image: /boot/initramfs-6.1.67-gentoo-dist.img
Found linux image: /boot/vmlinuz-6.1.66-gentoo-dist
Found initrd image: /boot/initramfs-6.1.66-gentoo-dist.img
Found linux image: /boot/vmlinuz-6.1.60-gentoo-dist
Found initrd image: /boot/initramfs-6.1.60-gentoo-dist.img
Found linux image: /boot/vmlinuz-6.1.60-gentoo-dist.old
Found initrd image: /boot/initramfs-6.1.60-gentoo-dist.img.old
Found linux image: /boot/vmlinuz-6.1.57-gentoo-dist
Found initrd image: /boot/initramfs-6.1.57-gentoo-dist.img
Found linux image: /boot/vmlinuz-6.1.55-gentoo-dist
Found initrd image: /boot/initramfs-6.1.55-gentoo-dist.img
Found linux image: /boot/kernel-6.6.16-gentoo-dist
Found initrd image: /boot/initramfs-6.6.16-gentoo-dist.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows Boot Manager on /dev/sdb2@/EFI/Microsoft/Boot/bootmgfw.efi
Found Debian GNU/Linux 12 (bookworm) on /dev/sdb8
Adding boot menu entry for UEFI Firmware Settings ...
done |
|
You use code tags here, not quote.
kgdrenefort wrote: | As you can see… There is this 6.6.16 at the end, and 6.6.13 at beginning.
Lazy me wants to remove older kernel, that's it. But I guess it would start again and I would not want to manually had to remove old kernel to incorrectly fix that issue. |
That's not incorrect at all. Once you remove an old kernel you re-run grub-mkconfig. This is the way to clean old kernels.
kgdrenefort wrote: | GRUB has to sort the kernel itself, but do revert the order, somehow. I can't figure out why. |
Me neither. Maybe you need to look it up in the documentstion.
kgdrenefort wrote: | I was hoping rebuilding kernel modules, re-install GRUB and update it's configuration would be enough. I had today the same problem on my fiancée's computer, and that was fixed by this method. But not for me. Fat luck.
Below relevant ouptut, I hope:
Code: | root@Mephistopheles ~ # cat /boot/grub/grub.cfg
|
|
That's not the relevant code. This file is auto-generated by grug-mkconfig according to the kernels found in /boot and the configuration in /etc/default/grub.
kgdrenefort wrote: | Code: | root@Mephistopheles ~ # cat /etc/default/grub
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
#
# To populate all changes in this file you need to regenerate your
# grub configuration file afterwards:
# 'grub-mkconfig -o /boot/grub/grub.cfg'
#
# See the grub info page for documentation on possible variables and
# their associated values.
GRUB_DISTRIBUTOR="Gentoo"
# Default menu entry
#GRUB_DEFAULT=0
# Boot the default entry this many seconds after the menu is displayed
GRUB_TIMEOUT=30
#GRUB_TIMEOUT_STYLE=menu
# Append parameters to the linux kernel command line
#GRUB_CMDLINE_LINUX=""
#
# Examples:
#
# Boot with network interface renaming disabled
# GRUB_CMDLINE_LINUX="net.ifnames=0"
#
# Boot with systemd instead of sysvinit (openrc)
# GRUB_CMDLINE_LINUX="init=/usr/lib/systemd/systemd"
# Append parameters to the linux kernel command line for non-recovery entries
#GRUB_CMDLINE_LINUX_DEFAULT=""
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal.
# Note that you can use only modes which your graphic card supports via VBE.
# You can see them in real GRUB with the command `vbeinfo'.
GRUB_GFXMODE=1920x1080
# Set to 'text' to force the Linux kernel to boot in normal text
# mode, 'keep' to preserve the graphics mode set using
# 'GRUB_GFXMODE', 'WIDTHxHEIGHT'['xDEPTH'] to set a particular
# graphics mode, or a sequence of these separated by commas or
# semicolons to try several modes in sequence.
#GRUB_GFXPAYLOAD_LINUX=
# Path to theme spec txt file.
# The starfield is by default provided with use truetype.
# NOTE: when enabling custom theme, ensure you have required font/etc.
#GRUB_THEME="/boot/grub/themes/starfield/theme.txt"
#GRUB_THEME="/boot/grub/themes/fallout-grub-theme-master/theme.txt"
# Background image used on graphical terminal.
# Can be in various bitmap formats.
#GRUB_BACKGROUND="/boot/grub/mybackground.png"
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to kernel
#GRUB_DISABLE_LINUX_UUID=true
# Comment if you don't want GRUB to pass "root=PARTUUID=xxx" parameter to kernel
GRUB_DISABLE_LINUX_PARTUUID=false
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY=true
# Uncomment to disable generation of the submenu and put all choices on
# the top-level menu.
# Besides the visual affect of no sub menu, this makes navigation of the
# menu easier for a user who can't see the screen.
#GRUB_DISABLE_SUBMENU=y
GRUB_DISABLE_OS_PROBER=false
# Uncomment to play a tone when the main menu is displayed.
# This is useful, for example, to allow users who can't see the screen
# to know when they can make a choice on the menu.
GRUB_INIT_TUNE="60 800 1" |
|
However I don't see anything that looks related here. BTW use code tags whenever you're not quoting someone's post but code, file or terminal commands and output.
kgdrenefort wrote: | Code: | root@Mephistopheles ~ # uname -a
Linux Mephistopheles 6.6.16-gentoo-dist #1 SMP PREEMPT_DYNAMIC Sat Feb 24 23:55:16 CET 2024 x86_64 AMD Ryzen 5 2600 Six-Core Processor AuthenticAMD GNU/Linux |
Code: | root@Mephistopheles ~ # eselect kernel list
Available kernel symlink targets:
[1] linux-6.6.16-gentoo-dist * |
Code: | root@Mephistopheles ~ # lsmod | grep nvidia
nvidia_uvm 2478080 0
nvidia_drm 77824 12
nvidia_modeset 1507328 30 nvidia_drm
nvidia 62029824 1623 nvidia_uvm,nvidia_modeset
video 69632 1 nvidia_modeset |
Code: | root@Mephistopheles ~ # emerge --search x11-drivers/nvidia-drivers
[ Results for search key : x11-drivers/nvidia-drivers ]
Searching...
* x11-drivers/nvidia-drivers
Latest version available: 535.161.07
Latest version installed: 535.161.07
Size of files: 347 372 KiB
Homepage: https://www.nvidia.com/download/index.aspx
Description: NVIDIA Accelerated Graphics Driver
License: NVIDIA-r2 Apache-2.0 BSD BSD-2 GPL-2 MIT ZLIB curl openssl
[ Applications found : 1 ] |
Code: | root@Mephistopheles ~ # dmesg | grep nvidia
[ 5.260243] nvidia: loading out-of-tree module taints kernel.
[ 5.260589] nvidia: module license 'NVIDIA' taints kernel.
[ 5.261236] nvidia: module license taints kernel.
[ 5.815433] nvidia-nvlink: Nvlink Core is being initialized, major device number 237
[ 5.817316] nvidia 0000:09:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=io+mem
[ 5.884814] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 535.161.07 Sat Feb 17 23:07:24 UTC 2024
[ 5.889049] [drm] [nvidia-drm] [GPU ID 0x00000900] Loading driver
[ 7.187234] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:09:00.0 on minor 0
[ 12.167480] nvidia_uvm: module uses symbols nvUvmInterfaceDisableAccessCntr from proprietary module nvidia, inheriting taint.
[ 12.204607] nvidia-uvm: Loaded the UVM driver, major device number 235. |
|
As I already mentioned above, what /usr/src/linux points to determine which kernel will nvidia drivers (and all out of kernel drivers) will build against. When you install a new kernel, you must explicitly build the drivers against it. If you don't want to change /usr/src/linux (either through eselect kernel or manually), you can put KERNEL_DIR variable on the command line to direct portage which kernel it should build the package against.
kgdrenefort wrote: | Code: | root@Mephistopheles ~ # cat /etc/portage/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="-march=native -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
MAKEOPTS="-j6"
USE="-gtk -gtk+ -gtk-doc -gnome -gnome-keyring -wifi -webengine a52 aac aalib accessibility acl acpi alsa alsa-lib appindicator audiofile bash-completion bluetooth branding bzip2 cdda cddb cdinstall cdr cgi clamav colord crypt css cups curl cxx dist-kernel dbus dedicated djvu dri dvd dvdr encode exif fastcgi fbcon ffmpeg filecaps flag ftp gif gimp git gstreamer gui gzip handbook hddtemp icu imagemagick imap ipv6 jack javascript joystick jpeg jpeg2k kde lame libcaca libnotify libwww lm-sensors lzma lz4 lzo mad magic man matroska mng mp3 mp4 mpeg mplayer mtp mysql ncurses networkmanager nvenc ogg openal opengl oss pdf plasma png policykit posix pulseaudio python qt5 qt6 raw rdp readline sasl scanner session smp sound spell ssl sqlite svg symlink systemd szip telemetry tiff tk truetype udev udisks uefi unicode upower usb v4l vaapi vcd vdpau -verify-sig vim-syntax vhosts vnc vorbis vulkan wayland webkit webp x264 xattr xml xscreensaver zip grub"
#USE="-gtk -gtk+ -gtk-doc -gnome -gnome-keyring -wifi"
ACCEPT_LICENSE="-* @FREE @BINARY-REDISTRIBUTABLE"
VIDEO_CARDS="nvidia"
# NOTE: This stage was built with the bindist Use flag enabled
# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C.utf8
L10N="fr-FR"
GRUB_PLATFORMS="efi-64" |
Code: | root@Mephistopheles ~ # cat /etc/portage/package.use/00use
media-video/ffmpeg extra -sdl
net-misc/networkmanager -wext
media-video/pipewire extra -ffmpeg
# required by app-accessibility/brltty-6.5-r2::gentoo
# required by app-accessibility/orca-44.1::gentoo[braille,python_single_target_python3_11]
# required by kde-plasma/plasma-meta-5.27.8::gentoo[accessibility]
# required by plasma-meta (argument)
>=dev-libs/libpcre2-10.42-r1 pcre32
# required by www-client/firefox-115.3.1::gentoo[system-libvpx]
# required by firefox (argument)
>=media-libs/libvpx-1.13.1 postproc
# Optimisation personnelle firefox
www-client/firefox -screencast
>=net-libs/nodejs-20.6.1 inspector
media-video/obs-studio lua nvenc pulseaudio speex v4l
# required by dev-libs/libayatana-appindicator-0.5.92::gentoo
# required by net-im/discord-0.0.30::gentoo[appindicator]
# required by net-im/discord (argument)
>=dev-libs/libdbusmenu-16.04.0-r2 gtk3
# required by kde-misc/kweather-23.04.3::gentoo
# required by kde-apps/kdeutils-meta-23.04.3::gentoo
# required by kde-apps/kdeutils-meta (argument)
>=dev-qt/qtpositioning-5.15.10:5 geoclue
# required by kde-apps/kamoso-23.04.3::gentoo
# required by kde-apps/kdemultimedia-meta-23.04.3::gentoo[gstreamer]
# required by kde-apps/kdemultimedia-meta (argument)
>=media-plugins/gst-plugins-meta-1.20.6 theora
# required by media-plugins/gst-plugins-meta-1.20.6::gentoo
# required by kde-apps/kamoso-23.04.3::gentoo
# required by kde-apps/kdemultimedia-meta-23.04.3::gentoo[gstreamer]
# required by kde-apps/kdemultimedia-meta (argument)
>=media-libs/gst-plugins-base-1.20.6 theora
# required by kde-apps/kdenlive-23.04.3::gentoo
# required by kde-apps/kdemultimedia-meta-23.04.3::gentoo
# required by kde-apps/kdemultimedia-meta (argument)
>=media-video/ffmpeg-6.0-r6 libass sdl
# required by www-client/falkon-23.04.3::gentoo[python_single_target_python3_11,python]
# required by kde-apps/kdecore-meta-23.04.3::gentoo[webengine]
# required by kde-apps/kdecore-meta (argument)
>=dev-python/pyside2-5.15.10-r2 webengine
# required by kde-apps/kdenlive-23.04.3::gentoo
# required by kde-apps/kdemultimedia-meta-23.04.3::gentoo
# required by kde-apps/kdemultimedia-meta (argument)
# =media-video/ffmpeg-4.4.4-r3 sdl libass
media-plugins/gst-plugins-meta theora
# required by games-engines/openmw-0.48.0::gentoo
# required by games-engines/openmw (argument)
>=sci-physics/bullet-3.21 double-precision
dev-lang/php gd
dev-db/mysql pdo mysqli
games-strategy/freeciv qt5 -qt6
# required by games-strategy/wesnoth-1.16.10::gentoo
# required by games-strategy/wesnoth (argument)
>=dev-libs/boost-1.82.0-r1 context
# required by games-strategy/dunelegacy-0.96.4::gentoo
# required by games-strategy/dunelegacy (argument)
>=media-libs/sdl2-mixer-2.6.2-r1 midi timidity
# move games-action/minetest games-engines/minetest
games-engines/minetest server
media-libs/opencolorio -opengl
# kdesu not working: https://forums.gentoo.org/viewtopic-t-1102076-start-0.html
kde-plasma/kde-cli-tools -kdesu*
# https://forums.gentoo.org/viewtopic-t-1167711-highlight-.html
media-video/vlc -vaapi
x11-drivers/nvidia-drivers tool |
Hoping it helps you helping me :).
Regards,
GASPARD DE RENEFORT Kévin |
This doesn't look relevant, but I'll take another look after I submit this and look at the better formatting after replacing all your quote with code tags, as it got too much information to handle at once and I might edit this replay later.
EDIT: nope, I didn't se anything relevant.
EDIT2: maybe compare /etc/default/grub to your fiance computer's one.
In the mean time, how do you elevate to root prior to running grub-mkconfig?
Best Regards,
Georgi |
|
Back to top |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3830
|
Posted: Wed Mar 13, 2024 3:47 pm Post subject: |
|
|
In order to point portage to booted kernel here is: Code: | amd64 ~ # cat /etc/local.d/02-portage-current-kernel.start
#!/bin/bash
/usr/local/sbin/portage-current-kernel
amd64 ~ # cat /usr/local/sbin/portage-current-kernel
#!/bin/bash
unamer=$(uname -r)
if [[ 0 -eq $(kernel-config show| grep -c $unamer) ]];then
echo -e " \033[1;32m*\033[0m attempting to resync portage's kernel symlink..."
kernel-config set linux-$unamer
if [[ 0 -eq $(kernel-config show| grep -c $unamer) ]];then
echo -e " \033[1;31m*\033[0m portage kernel symlink resync failed!"
else
echo -e " \033[1;32m*\033[0m done"
fi
fi
| EDIT: This is far from perfect, but the general idea is there.
Thks 4 ur attention, interest & support. _________________ USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Last edited by CaptainBlood on Wed Mar 13, 2024 4:49 pm; edited 3 times in total |
|
Back to top |
|
|
kgdrenefort Guru
Joined: 19 Sep 2023 Posts: 312 Location: Somewhere in the 77
|
|
Back to top |
|
|
kgdrenefort Guru
Joined: 19 Sep 2023 Posts: 312 Location: Somewhere in the 77
|
Posted: Wed Mar 13, 2024 4:10 pm Post subject: |
|
|
First things first, thanks for answer.
Then, about what does eselect, you are confirming my suspicion about a link of some sort that is not really in live, as showed by uname. Maybe I'm saying it bad, but anyway, eselect does necessary shows the kernel in use, that's what matters. While uname does.
Lastly, about quote/code, will edit my first post, sorry about that.
Was sure there was some useless stuff inside, just wanted to avoid wasting time to you by asking stuff I could paste already, sorry.
pietinger wrote: |
(…)
There exists a automatation in Gentoo to change this softlink when emerging a new Kernel: the Use-flag "symlink"
|
Will keep a look at it, thanks.
pietinger wrote: | The other question why grub-mkconfig doesnt sort the kernels correct I cannot answer and I almost suspect that it is a bug of grub-mkconfig. |
Well, will try to find out what's this weird behavior then.
logrusx wrote: | In the mean time, how do you elevate to root prior to running grub-mkconfig? |
As usual:
logrusx wrote: | That's not incorrect at all. Once you remove an old kernel you re-run grub-mkconfig. This is the way to clean old kernels. |
Doesn't meant to say it'll not work, but the system is supposed to set as default the new kernel. Until I found out how to fix this inverted order from GRUB (from older to newer instead of newer to older), I'll boot manually on the last kernel and don't clean anything: That'll be quicker to see if it works, instead of waiting for a new kernel to be compiled, wait & see is a waste of time in this case IMHO. I hope you see my point.
logrusx wrote: | That's not the relevant code. This file is auto-generated by grug-mkconfig according to the kernels found in /boot and the configuration in /etc/default/grub. |
I am aware of that fact, but I decided to set it anyway because if I didn't see something relevant inside, maybe you'll do, and since grub-mkconfig generate a file from this one, it seemed relevant to me to paste it aswell, just in case I would miss something.
logrusx wrote: | However I don't see anything that looks related here. |
(about uname -a, dmesg, lsmod…)
That could be relevant, maybe not here, but my goal was to show the output of these command once it's working on a 6.6.16 kernel.
logrusx wrote: | EDIT2: maybe compare /etc/default/grub to your fiance computer's one. |
Well, beside we get different resolution for our screen… They have same values.
PS: Not trying to really justify myself for my mistakes, but wanted to point why I did that, will try to be more relevant in the future, but that is not always easy :). But since I prefer to be pointed at my mistakes that being ignorant, so thanks.
Regards,
GASPARD DE RENEFORT Kévin _________________ Traduction wiki, pour praticiper.
Custom logos/biz card/website. |
|
Back to top |
|
|
Linubie Guru
Joined: 11 Jun 2004 Posts: 381
|
Posted: Wed Mar 13, 2024 4:37 pm Post subject: |
|
|
When compiling latest stable kernel and running grub-mkconfig -o /boot/grub/grub.cfg I ran into the same issue.
It have edited grub.conf to have 6.6.21 as default. _________________ Mircosoft software is like having sex with a stranger, you always have to be careful not to get infected with something... |
|
Back to top |
|
|
kgdrenefort Guru
Joined: 19 Sep 2023 Posts: 312 Location: Somewhere in the 77
|
Posted: Wed Mar 13, 2024 4:38 pm Post subject: |
|
|
Linubie wrote: | When compiling latest stable kernel and running grub-mkconfig -o /boot/grub/grub.cfg I ran into the same issue.
It have edited grub.conf to have 6.6.21 as default. |
And… you managed to fix it ?
Regards,
GASPARD DE RENEFORT _________________ Traduction wiki, pour praticiper.
Custom logos/biz card/website. |
|
Back to top |
|
|
nicop Tux's lil' helper
Joined: 10 Apr 2014 Posts: 81
|
Posted: Wed Mar 13, 2024 4:43 pm Post subject: |
|
|
!= prefix :
vmlinuz-6.6.13-gentoo-dist
kernel-6.6.16-gentoo-dist
So you have two lists, each sorted by version. |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5036 Location: Bavaria
|
Posted: Wed Mar 13, 2024 4:45 pm Post subject: |
|
|
nicop wrote: | So you have two lists, each sorted by version. |
Good catch ! In my blindness I overlooked that ... so, it is not a bug _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
Linubie Guru
Joined: 11 Jun 2004 Posts: 381
|
Posted: Wed Mar 13, 2024 4:45 pm Post subject: |
|
|
kgdrenefort wrote: | Linubie wrote: | When compiling latest stable kernel and running grub-mkconfig -o /boot/grub/grub.cfg I ran into the same issue.
It have edited grub.conf to have 6.6.21 as default. |
And… you managed to fix it ?
Regards,
GASPARD DE RENEFORT |
...yes....
6.6.21-gentoo is now default in grub menu .... _________________ Mircosoft software is like having sex with a stranger, you always have to be careful not to get infected with something... |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2366
|
Posted: Wed Mar 13, 2024 5:17 pm Post subject: |
|
|
kgdrenefort wrote: |
logrusx wrote: | In the mean time, how do you elevate to root prior to running grub-mkconfig? |
As usual:
|
I asked because I was guessing there could have been something in your environment brought from your regular user, but you're doing it correctly and there's nothing more to search in your users environment.
kgdrenefort wrote: |
logrusx wrote: | However I don't see anything that looks related here. |
(about uname -a, dmesg, lsmod…) |
That was about the file above - /etc/default/grub
kgdrenefort wrote: |
PS: Not trying to really justify myself for my mistakes, but wanted to point why I did that, will try to be more relevant in the future, but that is not always easy :). But since I prefer to be pointed at my mistakes that being ignorant, so thanks. |
Well I'm not trying to blame you either, sorry if it came that way, I was trying to be thorough. Otherwise I wouldn't put that much time in it :)
This is not my mother tongue either, nor text communication is one of my superpowers, so I apologize once again.
Honestly, I'm out of ideas. I just updated mu kernel to 6.6.21 and didn't hit such an issue. I see you don't have ACCEPT_KEYWORDS defined in make.conf, which means you're running stable and we both should be using the same grub version. Is that right?
Is there anyone who can think of something else influencing grub?
p.s. can we see what's in your /boot?
EDIT: ah, I now see what the issue was. Well I had that too back when the change regarding installkernel happened but had forgotten about it. If you cleaned it up, systemd would install it with that name, yes. And just today depclean cleaned it and I read the news item and realized I now have to manually select or emerge installkernel.
Best Regards,
Georgi |
|
Back to top |
|
|
kgdrenefort Guru
Joined: 19 Sep 2023 Posts: 312 Location: Somewhere in the 77
|
Posted: Wed Mar 13, 2024 6:15 pm Post subject: |
|
|
Linubie wrote: | kgdrenefort wrote: | Linubie wrote: | When compiling latest stable kernel and running grub-mkconfig -o /boot/grub/grub.cfg I ran into the same issue.
It have edited grub.conf to have 6.6.21 as default. |
And… you managed to fix it ?
Regards,
GASPARD DE RENEFORT |
...yes....
6.6.21-gentoo is now default in grub menu .... |
How is that helping this subject to be solved ?
EDIT: Ok, I misread you and was thinking you were actually making fun of me or trolling, but you just modified your GRUB to manually point the proper kernel by default. Right ?
Sorry !
nicop wrote: | != prefix :
vmlinuz-6.6.13-gentoo-dist
kernel-6.6.16-gentoo-dist
So you have two lists, each sorted by version. |
I have to say I do not understand without more context, that's on me I guess (english skill). But I guess you are speaking of:
Code: | -rw-r--r-- 1 root root 15657984 22 janv. 12:37 vmlinuz-6.6.13-gentoo-dist |
This file, and as well :
Code: | -rw-r--r-- 1 root root 15669312 13 mars 18:57 kernel-6.6.16-gentoo-dist |
Saying I have two list, sorted by version… Two lists from ? I don't get it, sorry.
logrusx wrote: | Well I'm not trying to blame you either, sorry if it came that way, I was trying to be thorough. Otherwise I wouldn't put that much time in it :)
This is not my mother tongue either, nor text communication is one of my superpowers, so I apologize once again. |
Don't worry, that might be either my english skill or my mood today (find it out an hour ago :oops:), and I wasn't blaming you either :wink:. Or didn't wanted to looks like either. So, sorry ? Let's move out or tomorrow we will still apologize.
logrusx wrote: | I see you don't have ACCEPT_KEYWORDS defined in make.conf, which means you're running stable and we both should be using the same grub version. Is that right? |
Yes I'm running stable, GRUB version is 2.12-r2.
logrusx wrote: | p.s. can we see what's in your /boot? |
Funny, that would be relevant… :lol:
Code: | root@Mephistopheles ~ # ls -la /boot/
total 463972
drwxr-xr-x 3 root root 4096 25 févr. 00:02 .
drwxr-xr-x 18 root root 281 28 févr. 13:00 ..
-rw-r--r-- 1 root root 249424 5 oct. 10:48 config-6.1.55-gentoo-dist
-rw-r--r-- 1 root root 249424 14 oct. 00:29 config-6.1.57-gentoo-dist
-rw-r--r-- 1 root root 249424 13 nov. 12:35 config-6.1.60-gentoo-dist
-rw-r--r-- 1 root root 249424 11 nov. 09:19 config-6.1.60-gentoo-dist.old
-rw-r--r-- 1 root root 249521 10 déc. 12:12 config-6.1.66-gentoo-dist
-rw-r--r-- 1 root root 249521 14 déc. 13:55 config-6.1.67-gentoo-dist
-rw-r--r-- 1 root root 249486 4 janv. 11:03 config-6.1.69-gentoo-dist
-rw-r--r-- 1 root root 265534 22 janv. 12:37 config-6.6.13-gentoo-dist
drwxr-xr-x 6 root root 113 13 mars 18:57 grub
-rw-r--r-- 1 root root 34039956 5 oct. 10:48 initramfs-6.1.55-gentoo-dist.img
-rw-r--r-- 1 root root 14608296 14 oct. 00:29 initramfs-6.1.57-gentoo-dist.img
-rw-r--r-- 1 root root 35287574 13 nov. 12:35 initramfs-6.1.60-gentoo-dist.img
-rw-r--r-- 1 root root 35293354 11 nov. 09:19 initramfs-6.1.60-gentoo-dist.img.old
-rw-r--r-- 1 root root 35290929 10 déc. 12:12 initramfs-6.1.66-gentoo-dist.img
-rw-r--r-- 1 root root 35292608 14 déc. 13:55 initramfs-6.1.67-gentoo-dist.img
-rw-r--r-- 1 root root 35311711 4 janv. 11:03 initramfs-6.1.69-gentoo-dist.img
-rw-r--r-- 1 root root 36774323 22 janv. 12:37 initramfs-6.6.13-gentoo-dist.img
-rw------- 1 root root 37171489 13 mars 18:57 initramfs-6.6.16-gentoo-dist.img
-rw-r--r-- 1 root root 15669312 13 mars 18:57 kernel-6.6.16-gentoo-dist
-rw-r--r-- 1 root root 5843094 5 oct. 10:48 System.map-6.1.55-gentoo-dist
-rw-r--r-- 1 root root 5844485 14 oct. 00:29 System.map-6.1.57-gentoo-dist
-rw-r--r-- 1 root root 6289838 13 nov. 12:35 System.map-6.1.60-gentoo-dist
-rw-r--r-- 1 root root 6289838 11 nov. 09:19 System.map-6.1.60-gentoo-dist.old
-rw-r--r-- 1 root root 6294360 10 déc. 12:12 System.map-6.1.66-gentoo-dist
-rw-r--r-- 1 root root 6294360 14 déc. 13:55 System.map-6.1.67-gentoo-dist
-rw-r--r-- 1 root root 6294590 4 janv. 11:03 System.map-6.1.69-gentoo-dist
-rw-r--r-- 1 root root 9451928 22 janv. 12:37 System.map-6.6.13-gentoo-dist
-rw-r--r-- 1 root root 12402048 5 oct. 10:48 vmlinuz-6.1.55-gentoo-dist
-rw-r--r-- 1 root root 12401504 14 oct. 00:29 vmlinuz-6.1.57-gentoo-dist
-rw-r--r-- 1 root root 13041312 13 nov. 12:35 vmlinuz-6.1.60-gentoo-dist
-rw-r--r-- 1 root root 13041312 11 nov. 09:19 vmlinuz-6.1.60-gentoo-dist.old
-rw-r--r-- 1 root root 13050400 10 déc. 12:12 vmlinuz-6.1.66-gentoo-dist
-rw-r--r-- 1 root root 13050432 14 déc. 13:55 vmlinuz-6.1.67-gentoo-dist
-rw-r--r-- 1 root root 13053792 4 janv. 11:03 vmlinuz-6.1.69-gentoo-dist
-rw-r--r-- 1 root root 15657984 22 janv. 12:37 vmlinuz-6.6.13-gentoo-dist |
logrusx wrote: | EDIT: ah, I now see what the issue was. Well I had that too back when the change regarding installkernel happened but had forgotten about it. If you cleaned it up, systemd would install it with that name, yes. And just today depclean cleaned it and I read the news item and realized I now have to manually select or emerge installkernel. |
Well, I guess that is my mistake to still after six months forget to read news, then make a topic and wasting time to other, so me.
I tried to understand the news, but I'm not quite sure of everything:
eselect news read 25 wrote: | 2024-03-12-debianutils-installkernel
Title installkernel is no longer implicitly installed
Author Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Posted 2024-02-26
Revision 1
/sbin/installkernel is a script called by the kernel's "make install"
as well as by the distribution kernel's post-install phase. If you are
reading this then chances are you use and rely on installkernel[1] and
what follows is essential for you.
Previously sys-kernel/installkernel was implicitly installed on many
systems via a dependency in sys-apps/debianutils. This dependency was
toggled by the "installkernel" USE flag, and enabled by default.
Until recently, sys-apps/debianutils was in turn pulled in by
app-misc/ca-certificates, an essential package installed on many
systems. However, this dependency of app-misc/ca-certificates on
sys-apps/debianutils was removed[2]. As a result many users may find
that sys-apps/debianutils and therefore sys-kernel/installkernel are no
longer part of the dependency graph and will therefore be cleaned up by
"emerge --depclean".
Removing sys-kernel/installkernel from your system WILL change the way
kernels are installed by "make install"! Instead of the versioned
/boot/vmlinuz-x.y.z that you are used to, "make install" will simply
copy bzImage (or equivalent for your arch) into /boot. This image may
not be picked up by your bootloader or its configuration tools.
To avoid surprises from such implicit dependencies from happening again
in the future, the dependency on sys-kernel/installkernel in
sys-apps/debianutils is removed. And as such, sys-kernel/installkernel
is only installed on the system if it is either explicitly selected or
pulled in via the distribution kernels (e.g. gentoo-kernel(-bin)).
User Action Required (all users)
====================
Users who currently have sys-kernel/installkernel installed, must
ensure that it is explicitly selected by emerging it:
emerge --noreplace sys-kernel/installkernel
Users who find that sys-kernel/installkernel has already been cleaned
from their systems and are therefore affected by the change in kernel
installation described above should re-install sys-kernel/installkernel
and then re-install their kernel.
emerge sys-kernel/installkernel
cd /usr/src/linux # (or other location of the kernel sources)
make install
Note that this re-installation is not required for users of the
distribution kernels (e.g. gentoo-kernel(-bin)).
[1] https://wiki.gentoo.org/wiki/Installkernel
[2] https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e6ccafd58bc7401fa371d2f255d72ddae0131e6 |
Funny thing while writing that… My terminal emulator was small and only readed from «To avoid surprises from such implicit dependencies from (…)» so I'm again a donkey and run commands without having full context. Since the problem is still here I'll take time to try to understand it and apply proper edition to my system, will come soon with news about it.
Thanks for all reply.
Regards,
GASPARD DE RENEFORT _________________ Traduction wiki, pour praticiper.
Custom logos/biz card/website. |
|
Back to top |
|
|
kgdrenefort Guru
Joined: 19 Sep 2023 Posts: 312 Location: Somewhere in the 77
|
Posted: Wed Mar 13, 2024 6:37 pm Post subject: |
|
|
I'm back and it's still not working.
So, I readed the message and found out a very interesting part:
«Removing sys-kernel/installkernel from your system WILL change the way
kernels are installed by "make install"! Instead of the versioned
/boot/vmlinuz-x.y.z that you are used to, "make install" will simply
copy bzImage (or equivalent for your arch) into /boot. This image may
not be picked up by your bootloader or its configuration tools.»
I'm using sys-kernel/gentoo-kernel aside sys-kernel/installkernel from beginning.
But actually, seems to be taken anyway by updating GRUB, don't know what I should expect.
Then, I tried to redo the following:
Code: | emerge --noreplace sys-kernel/installkernel |
Code: | emerge sys-kernel/installkernel |
I did not spotted any errors. Kernel 6.6.16 seems to be installed.
After, I decided to clean a little my kernel list, using:
Whick kept these kernels:
Code: | root@Mephistopheles ~ # ls -la /boot
total 165936
drwxr-xr-x 3 root root 4096 13 mars 19:22 .
drwxr-xr-x 18 root root 281 28 févr. 13:00 ..
-rw-r--r-- 1 root root 249486 4 janv. 11:03 config-6.1.69-gentoo-dist
-rw-r--r-- 1 root root 265534 22 janv. 12:37 config-6.6.13-gentoo-dist
drwxr-xr-x 6 root root 113 13 mars 19:24 grub
-rw-r--r-- 1 root root 35311711 4 janv. 11:03 initramfs-6.1.69-gentoo-dist.img
-rw-r--r-- 1 root root 36774323 22 janv. 12:37 initramfs-6.6.13-gentoo-dist.img
-rw------- 1 root root 37170524 13 mars 19:24 initramfs-6.6.16-gentoo-dist.img
-rw-r--r-- 1 root root 15669312 13 mars 19:24 kernel-6.6.16-gentoo-dist
-rw-r--r-- 1 root root 6294590 4 janv. 11:03 System.map-6.1.69-gentoo-dist
-rw-r--r-- 1 root root 9451928 22 janv. 12:37 System.map-6.6.13-gentoo-dist
-rw-r--r-- 1 root root 13053792 4 janv. 11:03 vmlinuz-6.1.69-gentoo-dist
-rw-r--r-- 1 root root 15657984 22 janv. 12:37 vmlinuz-6.6.13-gentoo-dist |
Then, I rebooted right after remaking the grub.cfg configuration using grub-mkconfig as usual, just to be sure since eclean-kernel seems to do that anyway.
And I'm back to the original point, but with less kernels…
Maybe I start to mix things up, that's very me too, and I guess I'll stop to play around with my system and try to find the way to fix that or if you have a suggestion, I'm open.
I'll back up my system too…
Regards,
GASPARD DE RENEFORT Kévin _________________ Traduction wiki, pour praticiper.
Custom logos/biz card/website. |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2366
|
Posted: Wed Mar 13, 2024 6:53 pm Post subject: |
|
|
What is the output of emerge -pv installkernel?
Also would you share the output of make install?
Best Regards,
Georgi |
|
Back to top |
|
|
kgdrenefort Guru
Joined: 19 Sep 2023 Posts: 312 Location: Somewhere in the 77
|
Posted: Wed Mar 13, 2024 7:01 pm Post subject: |
|
|
logrusx wrote: | What is the output of emerge -pv installkernel?
Also would you share the output of make install?
Best Regards,
Georgi |
Gladly:
Code: | root@Mephistopheles ~ # emerge -pv installkernel
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 3.61 s (backtrack: 0/20).
[ebuild R ] sys-kernel/installkernel-25::gentoo USE="dracut grub systemd -refind -systemd-boot -uki -ukify" 0 KiB
Total: 1 package (1 reinstall), Size of downloads: 0 KiB
* IMPORTANT: 22 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items. |
Regarding this is a long output, I used a paste site, here the link: https://pastebin.com/PUjxi9h2
Regards,
GASPARD DE RENEFORT _________________ Traduction wiki, pour praticiper.
Custom logos/biz card/website. |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2366
|
Posted: Wed Mar 13, 2024 7:14 pm Post subject: |
|
|
Code: | Image Linux trouvée : /boot/vmlinuz-6.6.13-gentoo-dist
Image mémoire initiale trouvée : /boot/initramfs-6.6.13-gentoo-dist.img
Image Linux trouvée : /boot/vmlinuz-6.1.69-gentoo-dist
Image mémoire initiale trouvée : /boot/initramfs-6.1.69-gentoo-dist.img
Image Linux trouvée : /boot/kernel-6.6.16-gentoo-dist
Image mémoire initiale trouvée : /boot/initramfs-6.6.16-gentoo-dist.img |
Reemerge installkerenel with -systemd or delete all the other kernels staring with vmlinux names and reinstall them with the kernel- naming scheme if you need to keep them.
Installkernel provides different scripts for the hooks in the make scripts in the kernel sources depending on the use flags. If you don't have installkernel installed, make install will do nothing and the kernel will be located at ./arch/x86_64/boot/vmlinuz or maybe it was bzImage, I don't remember anymore. Then you would have to move it manually to /boot and rename it if you use a naming scheme. That's what we used to do back in the days of 2.x kernels, when I got into Linux.
Best Regards,
Georgi |
|
Back to top |
|
|
kgdrenefort Guru
Joined: 19 Sep 2023 Posts: 312 Location: Somewhere in the 77
|
Posted: Wed Mar 13, 2024 7:20 pm Post subject: |
|
|
As we saw together on #gentoo@libera.chat, I recompiled installkernel without systemd:
Code: | USE="-systemd" emerge sys-kernel/installkernel |
And re-runned grub-mkconfig.
It works ! Thanks again.
In the same time, I still do not get it, what happened and why should I compile installkernel without systemd to get the old naming scheme and thus, get back the proper kernel at top of the list.
I also guess I'll have to edit my /etc/portage/package.use/00use to add:
Code: | sys-kernel/installkernel -systemd |
To keep this automatic. Right ?
Regards,
GASPARD DE RENEFORT Kévin _________________ Traduction wiki, pour praticiper.
Custom logos/biz card/website. |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2366
|
Posted: Wed Mar 13, 2024 7:22 pm Post subject: |
|
|
kgdrenefort wrote: |
I also guess I'll have to edit my /etc/portage/package.use/00use to add:
Code: | sys-kernel/installkernel -systemd |
To keep this automatic. Right ?
|
Yes.
Best Regards,
Georgi |
|
Back to top |
|
|
nicop Tux's lil' helper
Joined: 10 Apr 2014 Posts: 81
|
Posted: Wed Mar 13, 2024 7:37 pm Post subject: |
|
|
kgdrenefort wrote: | I have to say I do not understand without more context, that's on me I guess (english skill). |
Well, I suppose the French section is the best way . |
|
Back to top |
|
|
kgdrenefort Guru
Joined: 19 Sep 2023 Posts: 312 Location: Somewhere in the 77
|
Posted: Thu Mar 14, 2024 8:33 am Post subject: |
|
|
nicop wrote: | kgdrenefort wrote: | I have to say I do not understand without more context, that's on me I guess (english skill). |
Well, I suppose the French section is the best way :wink:. |
To not learn ? Yeah, it is 8).
That's how you skillup, plus there is always less activity and peoples in other language than english, so…
Will close this topic for good.
Thanks, everyone. _________________ Traduction wiki, pour praticiper.
Custom logos/biz card/website. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|