mireiner
Hello,
in my grub.cfg in line "initrd" there's "/boot/intel-ucode.img" given twice like so:
initrd /boot/intel-ucode.img /boot/intel-ucode.img /boot/initramfs-linux.img
I'm not sure if that came after I installed "grub-silent" recently. Or if it was there before and I didn't recognize.
My system runs fine. But still I like to learn and ask: Is it correct to have "/boot/intel-ucode.img" twice in the initrd line? If not can it do any harm? Is it better to delete it manually?
Best regards,
mireiner
schard
Der Inhalt deiner /etc/default/grub wäre hier mal interessant.
Grundsätzlich ist es nicht sinnvoll, den Microcode zweimal zu laden. Die Frage, ob dies Probleme bereiten könnte, kann ich nur mit "vielleicht" beantworten.
Von einer manuellen Änderung der /boot/grub/grub.cfg solltest du absehen und stattdessen grub-mkconfig erneut ausführen.
frostschutz
Einmal reicht.
Bei dir werden die Microcode-Dateien zweimal ins Initramfs-tmpfs entpackt und die überschreiben sich dabei selbst (effektiv keine Änderung, daher harmlos).
Der Microcode sollte trotzdem nur einmal geladen werden (vgl. dmesg | head direkt nach booten, "microcode updated early" sollte nur einmal dastehen).
Zur Ursache habe ich leider keine Idee, meine grub.cfg ist Handarbeit...
mireiner
Hallo schard,
oh hier wird auch deutsch gesprochen, das ist ja schön :-)
Danke für die Antwort. Wenn ich grub-mkconfig nochmals ausführe, erhalte ich die gleiche grub.cfg mit den doppelten intel-ucode.img Einträgen.
/boot/grub/grub.cfg muss ich eh manuell editieren, weil in meinem Multi-Boot Setup die os-prober Menu Einträge unvollständig sind. Meines Wissens ein bekanntes os-prober Problem.
Das Multi-Boot System besteht aus:
Windows 10
Arch Linux mit KDE Plasma (managed des Bootloader)
Arch Linux mit Cinnamon
Ich benötige alle drei, weil ich an einem Programm schreibe, das unter Windows, KDE und GTK einwandfrei angezeigt werden soll.
So sieht meine /etc/default/grub Datei aus:
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true
GRUB_TIMEOUT=20
GRUB_RECORDFAIL_TIMEOUT=$GRUB_TIMEOUT
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash vt.global_cursor_default=0 loglevel=2 rd.systemd.show_status=false rd.udev.log-priority=3 sysrq_always_enabled=1"
GRUB_CMDLINE_LINUX="quiet"
# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=true
# Uncomment to enable Hidden Menu, and optionally hide the timeout count
#GRUB_HIDDEN_TIMEOUT=0
#GRUB_HIDDEN_TIMEOUT_QUIET=true
# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console
# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=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=auto
# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep
# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true
# Uncomment and set to the desired menu colors. Used by normal and wallpaper
# modes only. Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"
GRUB_THEME="/boot/grub/themes/Vimix-Black/theme.txt"
# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"
# Uncomment to make GRUB remember the last selection. This requires to
# set 'GRUB_DEFAULT=saved' above.
#GRUB_SAVEDEFAULT="true"
mireiner
Hallo frostschutz,
danke auch Dir für die Antwort. Du hast recht, der Intel Microcode wird beim Start nur einmal geladen. Na dann lösche ich den zweiten Eintrag einfach per Hand. Muss grub.cfg sowieso manuell warten :-)
Werde dann mal grub-silent wieder gegen das normale grub austauschen. Vermutlich ist grub-silent die Ursache für den doppelten Microcode Eintrag, weil mir das vorher nicht aufgefallen war.
mireiner
Kurze Rückmeldung: Wie vermutet war grub-silent die Ursache für die doppelten Microcode Einträge in /boot/grub/grub.cfg.
Nachdem ich wieder zum normalen grub gewechselt bin, sind die doppelten Microcode Einträge verschwunden. Nun kann ich mich wieder an der "welcome to grub" Meldung erfreuen. Juhu!
ub4000
Hi, es wäre noch nett, wenn du deinen ersten Post selber bearbeitest, und im Titel ein "[Gelöst] " voranstellst.
Und ja, hier bist du im deutschen Arch Forum gelandet :-)
Das englische wäre unter bbs.archlinux.org, für das wiki gilt das analog.
mireiner
Hallo ub4000,
danke für den Hinweis! Zuvor hatte ich schon vergeblich danach gesucht, wie ein Beitrag als gelöst markiert werden kann - bin ja Neuling hier.