| |
@@ -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.
|
| |
+
|
| |
+ [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/