On 29 Aug 2023 at 8:20, stan via users wrote:
Date sent: Tue, 29 Aug 2023 08:20:48 -0700 To: users@lists.fedoraproject.org Subject: Re: How do I install the rescue kernel for fc38? Organization: zohofree Send reply to: Community support for Fedora users users@lists.fedoraproject.org From: stan via users users@lists.fedoraproject.org Copies to: stan upaitag@zoho.com
On Tue, 29 Aug 2023 04:14:03 -0700 ToddAndMargo via users users@lists.fedoraproject.org wrote:
Hi All,
Fedora 38
My rescue kernel is FC30.
How do I install the FC38 rescue kernel?
There isn't one, it is just an ordinary kernel with all drivers available.
# dnf whatprovides kernel* | grep -i rescue
<nothing>
Always built locally.
And my search engine is not helping.
I think you need to look at dracut.
The next time you are going to install a new kernel, delete the rescue vmlinuz and initramfs. The install will automatically build a rescue kernel from the new kernel you are installing (or maybe the kernel you are running, can't remember which).
Or, do the delete step, and run /usr/lib/kernel/install.d/51-dracut-rescue.install add $(uname -r) "" /lib/modules/$(uname -r)/vmlinuz
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
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org 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@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
+------------------------------------------------------------+ Michael D. Setzer II - Computer Science Instructor (Retired) mailto:mikes@guam.net mailto:msetzerii@gmail.com Guam - Where America's Day Begins G4L Disk Imaging Project maintainer http://sourceforge.net/projects/g4l/ +------------------------------------------------------------+