From Fedora Project Wiki
Description
This test verifies upgrading a Fedora system from the current stable release (Fedora 41) to the development release (Rawhide/Fedora 42) using PreUpgrade. Verification will confirm that is able to detect and recover from 2 low disk space conditions:
- Insufficient disk space on
/boot
partition for the installer filesvmlinuz
,initrd.img
andinstall.img
- Insufficient disk space on
/boot
partition for the installer fileinstall.img
How to test
- Perform an installation of the current stable release (e.g. Fedora 41) with default partitioning (200MB for
/boot
). - Create a file that takes up enough space that there is insufficient remaining disk space for preupgrade to download kernel and initrd.img. That means we need to fill up /boot. Here's how to do that as root:
# dd if=/dev/zero of=/boot/preupgrade_filler bs=1M count=170
- 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.
- While downloading, preupgrade should warn that it failed to download installer data. Click quit for that.
- Next, change the amount of available disk space on the
/boot
partition by reducing the size of the/boot/preupgrade_filler
file to 100MB. This should leave sufficient room for preupgrade to download thekernel
andinitrd.img
but not enough room to downloadinstall.img
. Once again, use thedd
command:# dd if=/dev/zero of=/boot/preupgrade_filler bs=1M count=100
- Re-run
preupgrade
. When prompted, click Yes to resume your upgrade. - While downloading, preupgrade should warn that there wasn't enough space to download install.img but it can be downloaded after reboot if you have a wired network connection. Click continue for that.
- When preupgrade is done don't reboot immediately. Instead, remove the /boot/preupgrade_filler file and make sure your computer is connected to the network via an ethernet cable.
# rm /boot/preupgrade_filler
- Click reboot.
Expected Results
- At first time, the preupgrade utility will fail to download installer data and be unable to proceed.
- At second time, preupgrade will offer to resume the previous upgrade attempt. Additionally, the user is prompted with a warning indicating Not enough space to download install.img. Preupgrade will allow the update to continue.
- After reboot, the system should boot into the installer, connect to the internet and begin downloading the stage2 installer image.
- The system should be upgraded to new version without error.
- After upgrade, a user must be able to:
- Login to the desktop
- Activate a network connection
- The default terminal and web browsers must start successfully