Re: How do I install the rescue kernel for fc38?

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

 



On 30/8/23 09:51, ToddAndMargo via users wrote:
On 8/29/23 10:41, Michael D. Setzer II via users wrote:
I've found that removing the rescue files from /boot and then doing a dnf reinstall kernel-core will do
it.

Did just run it to make sure, paste has wrapping, but hopefully one can follow.

# cd /boot
# ls -l*rescue*
-rw-------. 1 root root 118033857 Jun  5 01:53
initramfs-0-rescue-189711f94e78436d9618b891a8fce70e.img
-rwxr-xr-x. 1 root root  14332776 Jun  5 01:51
vmlinuz-0-rescue-189711f94e78436d9618b891a8fce70e

# rm*rescue*
rm: remove regular file 'initramfs-0-rescue-189711f94e78436d9618b891a8fce70e.img'? y rm: remove regular file 'vmlinuz-0-rescue-189711f94e78436d9618b891a8fce70e'? y

# dnf reinstall kernel-core
Last metadata expiration check: 0:27:24 ago on Wed 30 Aug 2023 03:05:33 AM ChST.
Dependencies resolved.
===============================================================
========================================================
  Package                      Architecture Version                           Repository                Size
===============================================================
========================================================
Reinstalling:
  kernel-core                  x86_64 6.4.12-100.fc37                   updates                   15 M

Transaction Summary
===============================================================
========================================================

Total download size: 15 M
Installed size: 65 M
Is this ok [y/N]: y
Downloading Packages:
kernel-core-6.4.12-100.fc37.x86_64.rpm 3.4 MB/s |  15 MB     00:04
-----------------------------------------------------------------------------------------------------------------------
Total 2.7 MB/s |  15 MB     00:05
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
   Preparing : 1/1
   Reinstalling     : kernel-core-6.4.12-100.fc37.x86_64 1/2
   Running scriptlet: kernel-core-6.4.12-100.fc37.x86_64 1/2
   Running scriptlet: kernel-core-6.4.12-100.fc37.x86_64 2/2
   Cleanup          : kernel-core-6.4.12-100.fc37.x86_64 2/2
   Running scriptlet: kernel-core-6.4.12-100.fc37.x86_64 2/2
   Verifying        : kernel-core-6.4.12-100.fc37.x86_64 1/2
   Verifying        : kernel-core-6.4.12-100.fc37.x86_64 2/2

Reinstalled:
   kernel-core-6.4.12-100.fc37.x86_64

Complete!

Takes some time to run, but afterwards.
# ls -l*rescue*
-rw-------. 1 root root 123671666 Aug 30 03:35
initramfs-0-rescue-189711f94e78436d9618b891a8fce70e.img
-rwxr-xr-x. 1 root root  14384360 Aug 30 03:34
vmlinuz-0-rescue-189711f94e78436d9618b891a8fce70e


Hi Michael,

Worked perfectly.  Excellent directions!

https://imgur.com/lgwFazr.png
If you install the following statement into /etc/default/grub, and remake the grub menus either with grubby (maybe) or definitely with grub2-mkconfig, the menu build process it add a rescue entry into the grub menus for all kernels you have installed.

GRUB_DISABLE_RECOVERY="false"

regards,
Steve


-T
_______________________________________________
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


Attachment: OpenPGP_0x594338B1DE179AB2.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
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