Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Deutsches Forum (German)
  • Search

Grub bootet keinen neuen Kernel

Support-Forum
Diskussionen rund um Installation, Betrieb und Anpassungen von Gentoo und dessen Paketen sowie dabei auftretenden (technischen) Problemen.
Deutsches Portal: www.gentoo.de
Post Reply
  • Print view
Advanced search
10 posts • Page 1 of 1
Author
Message
snova
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 86
Joined: Sat Dec 08, 2012 6:37 pm
Location: Hannover / Germany

Grub bootet keinen neuen Kernel

  • Quote

Post by snova » Mon Dec 22, 2025 11:12 am

Hallo,
ich hab seit neustem ein Problem mit Grub. Zwar taucht der Kernel mit der Version 6.12.58 in der Grub-Konfiguration auf, jedoch ist beim Booten dieser Kernel nicht aufgelistet.
Seit dem letzten male habe ich Secure Boot mit Shim aktiviert, jedoch ist auch der aktuelle Kernel von mir signiert.

Anbei meine gekürzte Grub-conf erstellt mit "grub-mkconfig -o /boot/grub/grub.cfg"

Code: Select all

#
# 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 lvm
insmod ext2
set root='lvmid/BBDQgR-yebS-oLJ1-9tJE-mYgb-8Dss-hOWIb7/lfi7nq-STIh-PUOo-coG0-WLJh-oznd-p7NuAf'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='lvmid/BBDQgR-yebS-oLJ1-9tJE-mYgb-8Dss-hOWIb7/lfi7nq-STIh-PUOo-coG0-WLJh-oznd-p7NuAf'  8befa407-dbe7-45bb-83ca-33a0cede6d2d
else
  search --no-floppy --fs-uuid --set=root 8befa407-dbe7-45bb-83ca-33a0cede6d2d
fi
    font="/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=1920x1080x32
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 785fe210-adfa-42c2-8106-d2e5ecde20bf
insmod gfxmenu
loadfont ($root)/grub/themes/starfield/dejavu_10.pf2
loadfont ($root)/grub/themes/starfield/dejavu_12.pf2
loadfont ($root)/grub/themes/starfield/dejavu_14.pf2
loadfont ($root)/grub/themes/starfield/dejavu_16.pf2
loadfont ($root)/grub/themes/starfield/dejavu_bold_14.pf2
insmod png
set theme=($root)/grub/themes/starfield/theme.txt
export theme
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
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_os-prober ###
menuentry 'Windows Boot Manager (on /dev/nvme1n1p1)' --class windows --class os $menuentry_id_option 'osprober-efi-1E27-2055' {
	insmod part_gpt
	insmod fat
	search --no-floppy --fs-uuid --set=root 1E27-2055
	chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
### END /etc/grub.d/05_os-prober ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-1685c10c-3a5d-4c6e-a4a9-b2317a2e3f2f' {
	load_video
	if [ "x$grub_platform" = xefi ]; then
		set gfxpayload=keep
	fi
	insmod gzio
	insmod part_gpt
	insmod ext2
	search --no-floppy --fs-uuid --set=root 785fe210-adfa-42c2-8106-d2e5ecde20bf
	echo	'Loading Linux 6.12.58-gentoo-x86_64 ...'
	linux	/vmlinuz-6.12.58-gentoo-x86_64 root=/dev/mapper/vg00-lvroot ro rootfstype=ext4 dolvm root=UUID=1685c10c-3a5d-4c6e-a4a9-b2317a2e3f2f 
	echo	'Loading initial ramdisk ...'
	initrd	/amd-uc.img /initramfs-6.12.58-gentoo-x86_64.img
}
submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-1685c10c-3a5d-4c6e-a4a9-b2317a2e3f2f' {
	menuentry 'Gentoo GNU/Linux, with Linux 6.12.58-gentoo-x86_64' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.12.58-gentoo-x86_64-advanced-1685c10c-3a5d-4c6e-a4a9-b2317a2e3f2f' {
		load_video
		if [ "x$grub_platform" = xefi ]; then
			set gfxpayload=keep
		fi
		insmod gzio
		insmod part_gpt
		insmod ext2
		search --no-floppy --fs-uuid --set=root 785fe210-adfa-42c2-8106-d2e5ecde20bf
		echo	'Loading Linux 6.12.58-gentoo-x86_64 ...'
		linux	/vmlinuz-6.12.58-gentoo-x86_64 root=/dev/mapper/vg00-lvroot ro rootfstype=ext4 dolvm root=UUID=1685c10c-3a5d-4c6e-a4a9-b2317a2e3f2f 
		echo	'Loading initial ramdisk ...'
		initrd	/amd-uc.img /initramfs-6.12.58-gentoo-x86_64.img
	}
	menuentry 'Gentoo GNU/Linux, with Linux 6.12.58-gentoo-x86_64 (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.12.58-gentoo-x86_64-recovery-1685c10c-3a5d-4c6e-a4a9-b2317a2e3f2f' {
		load_video
		if [ "x$grub_platform" = xefi ]; then
			set gfxpayload=keep
		fi
		insmod gzio
		insmod part_gpt
		insmod ext2
		search --no-floppy --fs-uuid --set=root 785fe210-adfa-42c2-8106-d2e5ecde20bf
		echo	'Loading Linux 6.12.58-gentoo-x86_64 ...'
		linux	/vmlinuz-6.12.58-gentoo-x86_64 root=/dev/mapper/vg00-lvroot ro single rootfstype=ext4 dolvm root=UUID=1685c10c-3a5d-4c6e-a4a9-b2317a2e3f2f
		echo	'Loading initial ramdisk ...'
		initrd	/amd-uc.img /initramfs-6.12.58-gentoo-x86_64.img
	}
	menuentry 'Gentoo GNU/Linux, with Linux 6.12.41-gentoo-x86_64' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.12.41-gentoo-x86_64-advanced-1685c10c-3a5d-4c6e-a4a9-b2317a2e3f2f' {
		load_video
		if [ "x$grub_platform" = xefi ]; then
			set gfxpayload=keep
		fi
		insmod gzio
		insmod part_gpt
		insmod ext2
		search --no-floppy --fs-uuid --set=root 785fe210-adfa-42c2-8106-d2e5ecde20bf
		echo	'Loading Linux 6.12.41-gentoo-x86_64 ...'
		linux	/vmlinuz-6.12.41-gentoo-x86_64 root=/dev/mapper/vg00-lvroot ro rootfstype=ext4 dolvm root=UUID=1685c10c-3a5d-4c6e-a4a9-b2317a2e3f2f 
		echo	'Loading initial ramdisk ...'
		initrd	/amd-uc.img /initramfs-6.12.41-gentoo-x86_64.img
	}
	menuentry 'Gentoo GNU/Linux, with Linux 6.12.41-gentoo-x86_64 (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.12.41-gentoo-x86_64-recovery-1685c10c-3a5d-4c6e-a4a9-b2317a2e3f2f' {
		load_video
		if [ "x$grub_platform" = xefi ]; then
			set gfxpayload=keep
		fi
		insmod gzio
		insmod part_gpt
		insmod ext2
		search --no-floppy --fs-uuid --set=root 785fe210-adfa-42c2-8106-d2e5ecde20bf
		echo	'Loading Linux 6.12.41-gentoo-x86_64 ...'
		linux	/vmlinuz-6.12.41-gentoo-x86_64 root=/dev/mapper/vg00-lvroot ro single rootfstype=ext4 dolvm root=UUID=1685c10c-3a5d-4c6e-a4a9-b2317a2e3f2f
		echo	'Loading initial ramdisk ...'
		initrd	/amd-uc.img /initramfs-6.12.41-gentoo-x86_64.img
	}
	menuentry 'Gentoo GNU/Linux, with Linux 6.12.31-gentoo-x86_64' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.12.31-gentoo-x86_64-advanced-1685c10c-3a5d-4c6e-a4a9-b2317a2e3f2f' {
		load_video
		if [ "x$grub_platform" = xefi ]; then
			set gfxpayload=keep
		fi
		insmod gzio
		insmod part_gpt
		insmod ext2
		search --no-floppy --fs-uuid --set=root 785fe210-adfa-42c2-8106-d2e5ecde20bf
		echo	'Loading Linux 6.12.31-gentoo-x86_64 ...'
		linux	/vmlinuz-6.12.31-gentoo-x86_64 root=/dev/mapper/vg00-lvroot ro rootfstype=ext4 dolvm root=UUID=1685c10c-3a5d-4c6e-a4a9-b2317a2e3f2f 
		echo	'Loading initial ramdisk ...'
		initrd	/amd-uc.img /initramfs-6.12.31-gentoo-x86_64.img
	}
	menuentry 'Gentoo GNU/Linux, with Linux 6.12.31-gentoo-x86_64 (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.12.31-gentoo-x86_64-recovery-1685c10c-3a5d-4c6e-a4a9-b2317a2e3f2f' {
		load_video
		if [ "x$grub_platform" = xefi ]; then
			set gfxpayload=keep
		fi
		insmod gzio
		insmod part_gpt
		insmod ext2
		search --no-floppy --fs-uuid --set=root 785fe210-adfa-42c2-8106-d2e5ecde20bf
		echo	'Loading Linux 6.12.31-gentoo-x86_64 ...'
		linux	/vmlinuz-6.12.31-gentoo-x86_64 root=/dev/mapper/vg00-lvroot ro single rootfstype=ext4 dolvm root=UUID=1685c10c-3a5d-4c6e-a4a9-b2317a2e3f2f
		echo	'Loading initial ramdisk ...'
		initrd	/amd-uc.img /initramfs-6.12.31-gentoo-x86_64.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 ###

### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/39_memtest86+ ###

### END /etc/grub.d/39_memtest86+ ###

### BEGIN /etc/grub.d/39_zzfwsetup ###
### END /etc/grub.d/39_zzfwsetup ###

### BEGIN /etc/grub.d/40_custom ###
### 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 ###

### BEGIN /etc/grub.d/50_custom_iso ###

### END /etc/grub.d/50_custom_iso ###

### BEGIN /etc/grub.d/51_custom_efi-shell ###
### END /etc/grub.d/51_custom_efi-shell ###
Jemand ne Idee, was mich hier ärgern will?
Top
Max Steel
Advocate
Advocate
User avatar
Posts: 2324
Joined: Mon Feb 12, 2007 6:35 pm
Location: My own world! I and Gentoo!

  • Quote

Post by Max Steel » Mon Dec 22, 2025 12:09 pm

War deine /boot Partition gemountet als du die grub-config neu generiert hast?

(Ich würde ja sagen dass update-grub furchtbare Configs erstellt... aber ich mag es nunmal simpel und leicht verständlich/einfach)
mfg
Steel
___________________

Heim-PC: AMD Ryzen 9 5950X, 64GB RAM, RX 9070 XT
Laptop: AMD Ryzen 5 7640U, 32GB RAM, Radeon onCPU Graphics
Arbeit-PC: AMD Ryzen 3 Pro 7335U, 16GB RAM, AMD Radeon Graphics (leider WSL2)
Top
snova
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 86
Joined: Sat Dec 08, 2012 6:37 pm
Location: Hannover / Germany

  • Quote

Post by snova » Mon Dec 22, 2025 12:24 pm

Aber natürlich. Sonst würde ja die 6.12.58 Kernel-Einträge doch nicht in grub.cfg auftauchen ;)
Top
Christian99
Veteran
Veteran
Posts: 1769
Joined: Thu May 28, 2009 5:20 pm

  • Quote

Post by Christian99 » Mon Dec 22, 2025 12:55 pm

wenn du jetzt in die neu generierte grub.cfg schaust, sind da die einträge drin. aber grub sieht vielleicht eine andere grub.cfg, weil er in einer partition schaut, die nicht gemountet war, als du mkconfig gemacht hast
Top
snova
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 86
Joined: Sat Dec 08, 2012 6:37 pm
Location: Hannover / Germany

  • Quote

Post by snova » Mon Dec 22, 2025 12:59 pm

interessante Theorie. Muss ich mal checken, kann mir das aber nicht vorstellen, da ich an der Partition nichts geändert habe.
Top
snova
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 86
Joined: Sat Dec 08, 2012 6:37 pm
Location: Hannover / Germany

  • Quote

Post by snova » Mon Dec 22, 2025 1:04 pm

Ich hab tatsächlich zwei grub.cfg gefunden...

Code: Select all

# ll /boot/efi/EFI/gentoo/grub.cfg /boot/grub/grub.cfg
-rwxr----- 1 root root 29127 Nov  7 22:26 /boot/efi/EFI/gentoo/grub.cfg*
-rw-r--r-- 1 root root 37375 Dec 22 11:25 /boot/grub/grub.cfg
#
Kann mir gar nicht erklären woher die unter EFI her kommt. In dieser taucht der neue Kernel auch nicht auf. Kann ich die löschen?
Last edited by snova on Tue Dec 23, 2025 7:50 pm, edited 2 times in total.
Top
Christian99
Veteran
Veteran
Posts: 1769
Joined: Thu May 28, 2009 5:20 pm

  • Quote

Post by Christian99 » Mon Dec 22, 2025 3:07 pm

vermutlich ist das die, die dann grub tatsächlich nimmt. von daher wird dann grub gar nicht mehr gehen, wenn du die löschst.
Also es geht schon noch, aber du siehst halt kein menu mit auswahlmöglichkeiten, sondern müsstes alles per hand machen, was man in der regel nicht will...
Top
snova
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 86
Joined: Sat Dec 08, 2012 6:37 pm
Location: Hannover / Germany

  • Quote

Post by snova » Tue Dec 23, 2025 7:57 pm

Ich habe die "/boot/efi/EFI/gentoo/grub.cfg" gelöscht. Danach war keine Config mehr für grub beim Booten mehr zu finden.
Ein

Code: Select all

cp /boot/grub/grub.cfg  /boot/efi/EFI/gentoo/grub.cfg
brachte ein erfolgreiches Booten mit dem neuen Kernel.

Seit wann ist die Grub-Config den unter dem EFI-Partition abzulegen und nicht mehr im Boot-Verzeichnis?
Top
Banana
Administrator
Administrator
User avatar
Posts: 2400
Joined: Fri May 21, 2004 12:02 pm
Location: Germany
Contact:
Contact Banana
Website

  • Quote

Post by Banana » Tue Dec 23, 2025 9:08 pm

snova wrote:Seit wann ist die Grub-Config den unter dem EFI-Partition abzulegen und nicht mehr im Boot-Verzeichnis?
Ich vermute mal das hat mit UEFI zu tun. Schau mal hier: https://wiki.gentoo.org/wiki/Handbook:A ... ion_scheme
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Top
snova
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 86
Joined: Sat Dec 08, 2012 6:37 pm
Location: Hannover / Germany

  • Quote

Post by snova » Tue Dec 23, 2025 9:57 pm

Das scheint doch was mit Secure Boot zu tun zu haben: https://wiki.gentoo.org/wiki/Handbook:A ... ecure_Boot

Verrückt. Wäre ich nicht drauf gekommen. Danke für den Link
Top
Post Reply
  • Print view

10 posts • Page 1 of 1

Return to “Deutsches Forum (German)”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic