Merge #662 Update upgrading-fedora-offline.adoc, add instructions to regenerate rescue kernel (Issue #654)

This commit is contained in:
Ankur Sinha 2023-11-28 22:25:45 +00:00
commit 0d0209108b

View file

@ -279,6 +279,31 @@ After you verify the list of broken symlinks you can delete them like shown belo
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.
[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