From Fedora Project Wiki
Description
This case tests upgrading a Fedora system from the current stable release (Fedora 41) to the development release (Rawhide/Fedora 42) using PreUpgrade.
How to test
- Perform an installation of the stable release (e.g. Fedora 41) with default partitioning (200MB for
/boot
). - Find out how much space is available on the
/boot
filesystem.df
is the command you want for this:
$ df /boot Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 198337 30543 157554 17% /boot
- Create a file that takes up enough space that preupgrade decides it cannot install stage2 now. Preupgrade needs approximately 120MB for the installer image so we'll make sure we have a bit less than 100MB. For the example filesystem, that means we need to fill up 60MB. Here's how to do that as root:
# dd if=/dev/zero of=/boot/preupgrade_filler bs=1024 count=61440 # df /boot Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 198337 92224 95873 50% /boot
- Install the newest available version of
.preupgrade
- Run
preupgrade
from a command prompt or the Run Application dialog. Provide the requested password for root authorization. - On the "Choose desired release" screen, enable "unstable test releases".
- Choose Rawhide from the list of available upgrade targets, then click Apply.
- Preupgrade will present a warning dialog noting that additional disk space in
/boot
is required to complete the upgrade process. Remove older kernels by consulting the instructions at How_to_use_PreUpgrade#Troubleshooting to free more space in /boot], then click Check again - When the process completes, click Reboot.
- The system should reboot, perform the upgrade, and reboot into the new system automatically.
- Log in to upgraded system, open a terminal, file browser, or other system applications.
Expected Results
- The preupgrade utility will run to completion, without error.
- The users are prompted with a low disk-space warning.
- Removing older kernels allows the upgrade to proceed beyond the low disk-space warning.
- The system should be upgraded to new version without error.
- The opened terminal, file browser, or other system applications should display and work correctly.