From Fedora Project Wiki

No edit summary
No edit summary
Line 1: Line 1:
{{QA/Test_Case
{{QA/Test_Case
|description=This case tests upgrading a Fedora system from the current stable release ({{FedoraVersion|long}}) to the development release (Rawhide/{{FedoraVersion|long|next}}) using [[PreUpgrade]].
|description=This case tests upgrading a Fedora system from the current stable release ({{FedoraVersion|long}}) to the development release (Rawhide/{{FedoraVersion|long|next}}) using [[PreUpgrade]].
'''Note''': This method requires you to have a wired connection to the internet during the install. If you are on wireless and cannot connect via an ethernet cable you will have to use Method 1 instead.
|actions=
|actions=
# Perform an installation of the stable release (e.g. {{FedoraVersion|long}}) with default partitioning (200MB for <code>/boot</code>).
# Perform an installation of the stable release (e.g. {{FedoraVersion|long}}) with default partitioning (200MB for <code>/boot</code>).
Line 16: Line 17:
Filesystem          1K-blocks      Used Available Use% Mounted on
Filesystem          1K-blocks      Used Available Use% Mounted on
/dev/sda1              198337    92224    95873  50% /boot
/dev/sda1              198337    92224    95873  50% /boot
</pre>
</pre>https://fedoraproject.org/wiki/How_to_use_PreUpgrade#Troubleshooting
# Install the newest available version of {{package|preupgrade}}.
# Install the newest available version of {{package|preupgrade}}.
# Run <code>preupgrade</code> from a command prompt or the ''Run Application'' dialog. Provide the requested password for root authorization.
# Run <code>preupgrade</code> from a command prompt or the ''Run Application'' dialog. Provide the requested password for root authorization.
Line 22: Line 23:
# Choose ''Rawhide'' from the list of available upgrade targets, then click ''Apply''.
# Choose ''Rawhide'' from the list of available upgrade targets, then click ''Apply''.
# Preupgrade will present a warning dialog noting that additional disk space in {{filename|/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''  
# Preupgrade will present a warning dialog noting that additional disk space in {{filename|/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''.
# 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. Then you can reboot.  
# The system should reboot, perform the upgrade, and reboot into the new system automatically.
<pre>
# Log in to upgraded system, open a terminal, file browser, or other system applications.
# rm /boot/preupgrade_filler
</pre>
# The computer should boot into the installer, connect to the internet via the ethernet cable and start downloading the stage2 installer image. Then it should continue upgrading as normal.
|results=
|results=
# The preupgrade utility will run to completion, without error.
# The preupgrade utility will run to completion, without error.

Revision as of 09:54, 28 December 2009

Description

This case tests upgrading a Fedora system from the current stable release (Fedora 40) to the development release (Rawhide/Fedora 41) using PreUpgrade. Note: This method requires you to have a wired connection to the internet during the install. If you are on wireless and cannot connect via an ethernet cable you will have to use Method 1 instead.


How to test

  1. Perform an installation of the stable release (e.g. Fedora 40) with default partitioning (200MB for /boot).
  2. 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
  1. 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

https://fedoraproject.org/wiki/How_to_use_PreUpgrade#Troubleshooting

  1. Install the newest available version of Package-x-generic-16.pngpreupgrade.
  2. Run preupgrade from a command prompt or the Run Application dialog. Provide the requested password for root authorization.
  3. On the "Choose desired release" screen, enable "unstable test releases".
  4. Choose Rawhide from the list of available upgrade targets, then click Apply.
  5. 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
  6. 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. Then you can reboot.
# rm /boot/preupgrade_filler
  1. The computer should boot into the installer, connect to the internet via the ethernet cable and start downloading the stage2 installer image. Then it should continue upgrading as normal.

Expected Results

  1. The preupgrade utility will run to completion, without error.
  2. The users are prompted with a low disk-space warning.
  3. Removing older kernels allows the upgrade to proceed beyond the low disk-space warning.
  4. The system should be upgraded to new version without error.
  5. The opened terminal, file browser, or other system applications should display and work correctly.