Re: Regenerating rescue kernels (Fedora upgrade documentation)

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

 



ensure

	cat /usr/lib/dracut/dracut.conf.d/02-rescue.conf
		dracut_rescue_image="yes"

	grep exclude /etc/dnf/dnf.conf | grep dracut-config-rescue
		(empty)

clean existing, to prevent exec blocking

	rm -f /boot/vmlinuz-0-rescue-* /boot/initramfs-0-rescue-*

regenerate rescue kernels for currently installed kernels,

	for _k in /boot/vmlinuz-[0-9]*
	do
	 _v=${_k#/boot/vmlinuz-}
	 dracut --verbose --force --no-hostonly -a rescue /boot/initramfs-0-rescue-"${_v}".img "${_v}"
	done

e.g., before,

	ls -al /boot/{initram,vmlinuz}*
		-rw------- 1 root root  40M Apr 24 09:20 /boot/initramfs-6.14.2-300.fc42.x86_64.img
		-rw------- 1 root root  40M Apr 29 09:43 /boot/initramfs-6.14.3-300.fc42.x86_64.img
		-rw------- 1 root root  40M Apr 30 12:27 /boot/initramfs-6.14.4-300.fc42.x86_64.img
		-rwxr-xr-x 1 root root  17M Apr  9 20:00 /boot/vmlinuz-6.14.2-300.fc42.x86_64*
		-rwxr-xr-x 1 root root  17M Apr 19 20:00 /boot/vmlinuz-6.14.3-300.fc42.x86_64*
		-rwxr-xr-x 1 root root  17M Apr 24 20:00 /boot/vmlinuz-6.14.4-300.fc42.x86_64*

after,

	ls -al /boot/vmlinuz*

rescue kernels are big. make sure your /boot partition has enough space.
e.g., for these 3 kernels + rescue kernels,

	ls -al /boot/{initram,vmlinuz}*
		-rw------- 1 root root 166M Apr 30 12:56 /boot/initramfs-0-rescue-6.14.2-300.fc42.x86_64.img
		-rw------- 1 root root 166M Apr 30 12:57 /boot/initramfs-0-rescue-6.14.3-300.fc42.x86_64.img
		-rw------- 1 root root 166M Apr 30 12:59 /boot/initramfs-0-rescue-6.14.4-300.fc42.x86_64.img
		-rw------- 1 root root  40M Apr 24 09:20 /boot/initramfs-6.14.2-300.fc42.x86_64.img
		-rw------- 1 root root  40M Apr 29 09:43 /boot/initramfs-6.14.3-300.fc42.x86_64.img
		-rw------- 1 root root  40M Apr 30 12:27 /boot/initramfs-6.14.4-300.fc42.x86_64.img
		-rwxr-xr-x 1 root root  17M Apr  9 20:00 /boot/vmlinuz-6.14.2-300.fc42.x86_64*
		-rwxr-xr-x 1 root root  17M Apr 19 20:00 /boot/vmlinuz-6.14.3-300.fc42.x86_64*
		-rwxr-xr-x 1 root root  17M Apr 24 20:00 /boot/vmlinuz-6.14.4-300.fc42.x86_64*

here,

	df -h `mount | grep boot | awk '{print $1}'`
		Filesystem     Type  Size  Used Avail Use% Mounted on
		/dev/sda3      ext4  2.0G  718M  1.1G  40% /boot
--
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-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/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux