Hi All,
Fedora 38
My rescue kernel is FC30.
How do I install the FC38 rescue kernel?
# dnf whatprovides kernel* | grep -i rescue <nothing>
And my search engine is not helping.
Many thanks, -T
On Tue, Aug 29, 2023 at 8:06 AM ToddAndMargo via users users@lists.fedoraproject.org wrote:
Fedora 38
My rescue kernel is FC30.
How do I install the FC38 rescue kernel?
# dnf whatprovides kernel* | grep -i rescue
<nothing>
$ grep -IR dracut_rescue_image /usr/lib/dracut /usr/lib/dracut/dracut.conf.d/02-rescue.conf:dracut_rescue_image="yes"
It looks like dracut_rescue_image is used back to at least F25.
Jeff
Am 29.08.23 um 13:14 schrieb ToddAndMargo via users:
Hi All,
Fedora 38
My rescue kernel is FC30.
How do I install the FC38 rescue kernel?
# dnf whatprovides kernel* | grep -i rescue
<nothing>
And my search engine is not helping.
# dnf install dracut-config-rescue probably is what you are looking for.
Ralf
On 8/29/23 05:56, Jeffrey Walton wrote:
On Tue, Aug 29, 2023 at 8:06 AM ToddAndMargo via users users@lists.fedoraproject.org wrote:
Fedora 38
My rescue kernel is FC30.
How do I install the FC38 rescue kernel?
# dnf whatprovides kernel* | grep -i rescue
<nothing>
$ grep -IR dracut_rescue_image /usr/lib/dracut /usr/lib/dracut/dracut.conf.d/02-rescue.conf:dracut_rescue_image="yes"
I get the same thing
It looks like dracut_rescue_image is used back to at least F25.
Jeff
How do I get fc38's rescue image to show at boot time?
On 29.08.23 13:14, ToddAndMargo via users wrote:
Hi All,
Fedora 38
My rescue kernel is FC30.
How do I install the FC38 rescue kernel?
# dnf whatprovides kernel* | grep -i rescue
<nothing>
And my search engine is not helping.
Many thanks, -T
Have a look at: https://discussion.fedoraproject.org/t/questions-about-rescue-kernel/84561
On Tue, Aug 29, 2023 at 6:06 AM ToddAndMargo via users users@lists.fedoraproject.org wrote:
Fedora 38
My rescue kernel is FC30.
How do I install the FC38 rescue kernel?
# dnf whatprovides kernel* | grep -i rescue
<nothing>
Make sure you have dracut-config-rescue installed. Then run:
sudo rm /boot/*rescue* sudo /usr/lib/kernel/install.d/51-dracut-rescue.install add "$(uname -r)" /boot "/boot/vmlinuz-$(uname -r)"
That will make the currently running kernel, with a suitable initramfs, be your rescue kernel.
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
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/ +------------------------------------------------------------+
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!
-T
On 29/08/2023 21.14, ToddAndMargo via users wrote:
Hi All,
Fedora 38
My rescue kernel is FC30.
How do I install the FC38 rescue kernel?
# dnf whatprovides kernel* | grep -i rescue
<nothing>
And my search engine is not helping.
I see (but never used) $ man -k rescue ... grub2-mkrescue (1) - make a GRUB rescue image
provided by grub2-tools-extra
Many thanks, -T
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!
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@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
On Wed, Aug 30, 2023 at 12:44 AM Eyal Lebedinsky fedora@eyal.emu.id.au wrote:
On 29/08/2023 21.14, ToddAndMargo via users wrote:
Fedora 38
My rescue kernel is FC30.
How do I install the FC38 rescue kernel?
# dnf whatprovides kernel* | grep -i rescue
<nothing>
And my search engine is not helping.
I see (but never used) $ man -k rescue ... grub2-mkrescue (1) - make a GRUB rescue image
provided by grub2-tools-extra
Or https://www.gnu.org/software/grub/manual/grub/html_node/Invoking-grub_002dmk...
Jeff
On 8/29/23 07:14, ToddAndMargo via users wrote:
Hi All,
Fedora 38
My rescue kernel is FC30.
How do I install the FC38 rescue kernel?
# dnf whatprovides kernel* | grep -i rescue
<nothing>
And my search engine is not helping.
Many thanks, -T
Saw a while back that all you need to do is delete the rescue image from /boot and the /boot/loader entry. Then a rescue image will be created with the installation of a new kernel. blscfg will put it in the menu.
It has worked several times for me.