From Fedora Project Wiki

(Created page with "{{QA/Test_Case |description= This test case ensures that the data in the /home directory is retained and usable on a btrfs layout after another fedora is installed on the same...")
 
(few clarifications)
(21 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Template:Associated_release_criterion|Beta|Custom_partitioning}}
{{QA/Test_Case
{{QA/Test_Case
|description= This test case ensures that the data in the /home directory is retained and usable on a btrfs layout after another fedora is installed on the same partition.
|description= This test case ensures that the data in the `/home` directory is retained and usable on a [[Btrfs]] layout after another Fedora is installed on the same partition.
|setup=Install an F33 with some files & directories on the /home
|setup=
# Install Fedora {{CurrentFedoraVersion}} or {{FedoraVersionNumber|next}} from any Edition or Spin which uses ''Btrfs'' filesystem by default. Use ''Automatic storage configuration'' during disk partitioning.
# On the installed system, create some distinct files and directories in your home directory or directly in `/home`
|actions=
|actions=
When reinstalling Fedora, make sensible choices and click the ''custom'' under the storage
# Select a Fedora {{FedoraVersionNumber|next}} installer for any Edition or Spin which uses ''Btrfs'' filesystem by default.
# Create /boot/efi or BIOS Boot mount point (can be reused or reformatted)
{{Template:partitioning_actions}}
# Create /boot mount point (can be reused or reformatted)
# In Installation Destination, click ''Custom'' under Storage Configuration
# Create / mount point (this is required to be a new subvolume)
# Under ''New mount points will use the following partitioning scheme'', select ''Btrfs'' (otherwise you'll not be able to create a new subvolume for `/` mountpoint later due to some [https://pagure.io/fedora-qa/issue/643#comment-677549 poor UI decisions] ([https://bugzilla.redhat.com/show_bug.cgi?id=1878620 bugzilla])).
# Locate the home subvolume you want, the current UI it's pretty easy
# Locate the previous Fedora installation, click on it to reveal existing mount points for reuse
# Click on that subvolume, and on the right hand side at the top,
# If present, select `/boot/efi` or `BIOS Boot` mount point, on the right hand side at the top, find ''Mount Point'' field, type in `/boot/efi`, click ''Update Settings'' button.
find Mount Point field; type in /home; click Update Settings button.
# Select `/boot` mount point, on the right hand side at the top, find ''Mount Point'' field, type in `/boot`, check the ''Reformat'' box, click ''Update Settings'' button.
# Click Done
# Select `/home` mount point, on the right hand side at the top, find ''Mount Point'' field, type in `/home`, click ''Update Settings'' button.
# Reboot by issuing ''init 6'' or from the UI
# Click {{key|+}} button to create a new `/` mount point (NOTE: this is required to be a new subvolume. Reformat will be checked, cannot be unchecked, but the underlying Btrfs is not reformatted. Optional: change the name of the subvolume from `root00` to `rootkde` or `rootjam` per your preference).. Click ''Update Settings'' button.
# Complete the initial setup
#* Note: If you don't delete the previous installation's `root` subvolume, the installer creates a new subvolume `root00` mounted at `/`. If you delete the previous install's `root` subvolume first, the installer will reuse `root` as the name for the new subvolume. Both approaches are valid, you can use whichever approach you choose. Other than consuming space, there is no disadvantage to keeping the old `root`. It can be deleted post-install.
# Click ''Done''
# Perform the installation and reboot the machine. At the initial setup, it's recommended to use all the same settings as for the 1st installation.
# After logging in, check that your home directory or `/home` contains the files you created on your previous system (check their contents as well)
|results=
|results=
# The installation should continue without fail
{{Template:partitioning_results}}
# The /home should have your files
# Your personal files on your `/home` partition must be intact
# Open/Execute to ensure they are usable
}}
}}
[[Category:Installer_Partitioning_Test_Cases]]
[[Category:btrfs]]

Revision as of 19:46, 15 February 2021

Note.png
Associated release criterion
This test case is associated with the Fedora_40_Beta_Release_Criteria#Custom_partitioning release criterion. If you are doing release validation testing, a failure of this test case may be a breach of that release criterion. If so, please file a bug and nominate it as blocking the appropriate milestone, using the blocker bug nomination page.

Description

This test case ensures that the data in the /home directory is retained and usable on a Btrfs layout after another Fedora is installed on the same partition.

Setup

  1. Install Fedora 39 or 40 from any Edition or Spin which uses Btrfs filesystem by default. Use Automatic storage configuration during disk partitioning.
  2. On the installed system, create some distinct files and directories in your home directory or directly in /home

How to test

  1. Select a Fedora 40 installer for any Edition or Spin which uses Btrfs filesystem by default.
  2. Boot the GTK-based installer using any available means. Do not use Fedora Workstation live on Fedora 41+, as that uses the webui-based installer.
  3. Proceed to the installer's main screen, making sensible choices, and enter the Installation Destination screen.
  4. In Installation Destination, click Custom under Storage Configuration
  5. Under New mount points will use the following partitioning scheme, select Btrfs (otherwise you'll not be able to create a new subvolume for / mountpoint later due to some poor UI decisions (bugzilla)).
  6. Locate the previous Fedora installation, click on it to reveal existing mount points for reuse
  7. If present, select /boot/efi or BIOS Boot mount point, on the right hand side at the top, find Mount Point field, type in /boot/efi, click Update Settings button.
  8. Select /boot mount point, on the right hand side at the top, find Mount Point field, type in /boot, check the Reformat box, click Update Settings button.
  9. Select /home mount point, on the right hand side at the top, find Mount Point field, type in /home, click Update Settings button.
  10. Click + button to create a new / mount point (NOTE: this is required to be a new subvolume. Reformat will be checked, cannot be unchecked, but the underlying Btrfs is not reformatted. Optional: change the name of the subvolume from root00 to rootkde or rootjam per your preference).. Click Update Settings button.
    • Note: If you don't delete the previous installation's root subvolume, the installer creates a new subvolume root00 mounted at /. If you delete the previous install's root subvolume first, the installer will reuse root as the name for the new subvolume. Both approaches are valid, you can use whichever approach you choose. Other than consuming space, there is no disadvantage to keeping the old root. It can be deleted post-install.
  11. Click Done
  12. Perform the installation and reboot the machine. At the initial setup, it's recommended to use all the same settings as for the 1st installation.
  13. After logging in, check that your home directory or /home contains the files you created on your previous system (check their contents as well)

Expected Results

  1. The expected partition layout should be created on the target device(s).
  2. The install process should complete successfully and the installed system should boot as expected.
  3. Your personal files on your /home partition must be intact