#662 Update upgrading-fedora-offline.adoc, add instructions to regenerate rescue kernel (Issue #654)
Merged 5 months ago by ankursinha. Opened 5 months ago by noloader.
fedora-docs/ noloader/quick-docs rescue-kernel  into  main

@@ -279,6 +279,31 @@ 

  sudo symlinks -r -d /usr

  ----

  

+ [[sect-update-rescue-kernel]]

+ === Update rescue kernel

+ 

+ The rescue kernel and initramfs are generated by Anaconda during system install.

+ initramfs will be updated when the kernel is updated, but the rescue kernel may not be.

+ Whether the rescue kernel is updated depends on the system configuration.

+ 

+ If the rescue kernel is out-of-date, then issue the following commands to regenerate it.

I really don't know enough about this, so here's a fairly basic query: "how would I know that the rescue kernel is out of date?" :)

+ 

+ [source,bash]

+ ----

+ sudo rm /boot/*rescue*

+ sudo kernel-install add "$(uname -r)" "/lib/modules/$(uname -r)/vmlinuz"

+ ----

+ 

+ The rescue kernel regeneration process can be automated by installing the `dracut-config-rescue` package.

+ 

+ [source,bash]

+ ----

+ sudo dnf install dracut-config-rescue

+ ----

+ 

+ Once installed, the rescue kernel will be regenerated as long as dracut is the initrd generator.

+ See `/usr/lib/kernel/install.d/51-dracut-rescue.install` for details.

+ 

  [[sect-resolving-post-upgrade-issues]]

  == Resolving post-upgrade issues

  

This commit provides instructions to regenerate the rescue kernel. The rescue kernel is generated by Anaconda during system install, but it may not be updated afterwards, like when updating a kernel or when performing a dnf-system-upgrade.

It addresses discussions on the user mailing list, the Fedora boards and Reddit.[1,2.3]

[1] https://discussion.fedoraproject.org/t/update-rescue-image
[2] https://discussion.fedoraproject.org/t/questions-about-rescue-kernel
[3] https://www.reddit.com/r/Fedora/comments/wfr5hu/about_the_rescue_mode_on_fedora/

I really don't know enough about this, so here's a fairly basic query: "how would I know that the rescue kernel is out of date?" :)

Metadata Update from @ankursinha:
- Pull-request tagged with: improvement, needs changes, needs committer review
- Request assigned

5 months ago

@noloader ping please---happy to merge this in and then we can add to it later if you prefer?

Pull-Request has been merged by ankursinha

5 months ago