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

Probleme mit Secure Boot und Shim

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
2 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

Probleme mit Secure Boot und Shim

  • Quote

Post by snova » Tue Mar 03, 2026 4:57 pm

ich würde gerne Shim nutzen um ein Dual-Boot mit Windows aufzubauen. Leider scheitere ich immer mal wieder daran, dass sich das System weigert meine Signaturen zu bestätigen

Code: Select all

# for i in $(ls -1 /boot/vmlinuz-* /boot/efi/EFI/gentoo/grubx64.efi); do echo -n "$i   "; sbverify --cert /etc/secureboot/mok.pem $i; done
/boot/efi/EFI/gentoo/grubx64.efi   Signature verification OK
/boot/vmlinuz-6.12.58-gentoo-x86_64   Signature verification OK
/boot/vmlinuz-6.12.58-gentoo-x86_64.old   Signature verification OK
/boot/vmlinuz-6.18.12-gentoo-x86_64   Signature verification OK
/boot/vmlinuz-6.18.12-gentoo-x86_64.old   Signature verification OK
#
# mokutil --import /etc/secureboot/mok.der
SKIP: /etc/secureboot/mok.der is already enrolled
#
# efibootmgr
BootCurrent: 0002
Timeout: 1 seconds
BootOrder: 0002,0001,0000
Boot0000* Windows Boot Manager	HD(1,GPT,c35ef255-fa54-4844-b14b-f261165a5b3f,0x800,0x32000)/\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI57494e4
44f5753000100000088000000780000004200430044004f0042004a00450043
0054003d007b00390064006500610038003600320063002d0035006300640064002d0034006500370030002d0061006300630031002d0066003300320062
00330034003400640034003700390035007d00000000000100000010000000040000007fff0400
Boot0001* gentoo	HD(1,GPT,c35ef255-fa54-4844-b14b-f261165a5b3f,0x800,0x32000)/\EFI\GENTOO\GRUBX64.EFI
Boot0002* shim	HD(1,GPT,c35ef255-fa54-4844-b14b-f261165a5b3f,0x800,0x32000)/\EFI\GENTOO\SHIMX64.EFI
#
Nach dem Booten erhalte ich ein blaues Fenster mit der Meldung "Verification failed: ...".
Was übersehe ich?

Fixed a long line which breaks the ui. -- Banana
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 Mar 03, 2026 5:52 pm

ok, ich glaub ich habs gefunden :roll:

Irgendwo hab ich gelesen, dass man

Code: Select all

cp -p /usr/lib/grub/grub-x86_64.efi.signed /boot/efi/EFI/grubx64.efi
und diesen grub anschließend signieren soll. Die führte dann immer zu einem Fehler, von daher ignorieren.

Der Richtige weg ist wohl

Code: Select all

# export GRUB_MODULES="all_video boot btrfs cat chain configfile echo efifwsetup efinet ext2 fat font gettext gfxmenu gfxterm gfxterm_background gzio halt help hfsplus iso9660 jpeg keystatus loadenv loopback linux ls lsefi lsefimmap lsefisystab lssal memdisk minicmd normal ntfs part_apple part_msdos part_gpt password_pbkdf2 png probe reboot regexp search search_fs_uuid search_fs_file search_label sleep smbios squash4 test true video xfs zfs zfscrypt zfsinfo"
# grub-install --target=x86_64-efi --efi-directory=/boot/efi --modules="${GRUB_MODULES}" --sbat /usr/share/grub/sbat.csv
Und danach den Grub signieren. Shim wir dabei jedoch gelöscht und man muss den neu installieren und den Key ausrollen. Aber dann bootet es sauber durch.
Leider hat man danach eine Konsole in einer sehr kleinen Auflösung. Aber damit kann man zur Not leben
Top
Post Reply
  • Print view

2 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