Re: Grubby? Doesn't Load Initrd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/1/23 11:49, Roger Heflin wrote:
95% of the time when I see initrd did not get built and included in the boot, it was because the kernel install runs in 2 steps, the first step puts in the kernel grub entry, and the 2nd step build initrd and adds initrd to the grub config.    run "dnf reinstall kernel" and that fixes it.  Usually this happens because dnf got interrupted for some reason.

Watch the rerun and notice that there are 2 steps that take a long time, one of them puts the files in and the 2nd one builds and adds in initrd.

 Installing       : kernel-core-6.0.16-300.fc37.x86_64                                                                                                                                                                                                             1/3
  Running scriptlet: kernel-core-6.0.16-300.fc37.x86_64                                                                                                                                                                                                             1/3
  Installing       : kernel-modules-6.0.16-300.fc37.x86_64                                                                                                                                                                                                          2/3
  Running scriptlet: kernel-modules-6.0.16-300.fc37.x86_64                                                                                                                                                                                                          2/3
  Installing       : kernel-6.0.16-300.fc37.x86_64                                                                                                                                                                                                                  3/3
  Running scriptlet: kernel-core-6.0.16-300.fc37.x86_64                                                                                                                                                                                                             3/3

The last running scriptlet builds the initrd and adds it to grub.   It runs after all install/upgrades are done, and if dnf gets aborted you end up with kernel only.
That's interesting, my recent experience with grubby when I have forgotten to run grub2-mkconfig is that it has never added to initrd command into the grub menus to load the initrd image at boot time even though the image has already been built as part of the dnf kernel install processes.

regards,
Steve


On Fri, Jan 6, 2023 at 9:37 PM Stephen Morris <samorris@xxxxxxxxxxxxxxx> wrote:
Hi,
     I've just done an update which installed kernel 6.0.16 and I forgot
to run grub2-mkconfig, and when I booted from the grub menu's defined in
/boot/grub2/grub.cfg presumably updated by grubby, it did not run
initrd, the grub.cfg file generated by grub2-mkconfig does run initrd.
Is this a defect with grubby?

regards,
Steve
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux