Bug 1878620 - Custom part: partition type (standard, btrfs, lvm, etc) can't be specified when creating a new partition, preventing specific use cases
Summary: Custom part: partition type (standard, btrfs, lvm, etc) can't be specified wh...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 39
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-14 07:47 UTC by Lukas Ruzicka
Modified: 2023-11-23 12:33 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-12-13 15:15:51 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Lukas Ruzicka 2020-09-14 07:47:25 UTC
Description of problem:

The current workflow of Anaconda custom partitioning is confusing and cannot be used to create certain partition layouts.

When the "Custom partitioning" is selected, a screen appears with a drop down menu, which sets the partitioning scheme to be used on all newly created partitions. Sometimes, this behaviour might cause errors that are not explanatory and bring confusion into process. Also, no guidance is provided in these cases.

See the following use cases:

Scenario 1 - Preserve the home directory in the same disk layout

On my disk there is a Fedora Workstation installation with the Btrfs partitioning scheme. There are three partitions `/`, `/boot`, and `/home`. The `/boot` partition is a standard one, while the rest is a Btrfs logical volume with two subvolumes inside.

I would like to reinstall Fedora, but would like to keep the `/home` as is.

I could mount /boot, mark with "Reformat" and hit "Update Settings", mount /home and hit "Update Settings", and mount /, mark with "Reformat" and hit "Update Settings". This approach would work.

However, if I deleted the `/` partition, there is no way how to create a new one instead. Anaconda will try to add the partition next to the Btrfs volume instead creating a root subvolume as it was created previously.

After viciously trying for some time over and over again, I realized that it only works, when the partitioning scheme drop down menu has been correctly set to Btrfs before I even started the process. Once the process has started, there is no way to change the type of partitions being added. Errors report that "Not enough disks for single" or similar error, which does not explain why this has happened in the first place.

The situation is visible in the attached video.

Scenario 2 - Create a new subvolume (or LVM volume) in an existing setup.

For LVM, this scenario needs deleting the old root (if I want to keep the home) to make some space for the extra partition. Then root needs to be recreated and a new paritition added. Again, this will only work when correct partitioning scheme is selected before users even attempt to change the layout. Otherwise, it will fail.

Scenario 3 - In a default LVM setup, preserve home and change root to btrfs

This is not possible, because even deleting one or more partitions from an LVM does not shrink the entire LVM so there is no place left on device for the btrfs root when the LVM has been spread over the entire media.

Solution:

The drop down menu should only be relevant for "Click here to create them automatically" where the selected scheme will be used, but when adding new partitions into the scheme, I should be able to chose from some options to be able to decide later in the process.

For example:
The current scheme uses a standard `/boot` and btrfs `/`, then my options should be:

a) Add another btrfs subvolume into the btrfs scheme.
b) Add an LVM partition.
c) Add a standard partition.

In case there were not enough space, I should be informed about it, for example:
"There is not enough space on the media to create an LVM (standard) partition next to the btrfs volume." Delete the Btrfs volume first to free up the space or add your partition as a Btrfs subvolume."


How reproducible:

Always


Steps to Reproduce:

See scenarios 1, 2, and 3

Comment 1 Lukas Ruzicka 2020-09-14 07:48:34 UTC
The video could not be attached, so there is a link to it here: https://youtu.be/s5OKNXzwTtM

Comment 2 Kamil Páral 2020-09-15 12:20:49 UTC
I'd like to point out that two long-time Fedora QA testers (Lukas and I) spent *several hours* on this problem before we realized that the "New mount points will use..." drop-down list affects all the rest of the custom partitioning, and that certain use cases are impossible to do without correctly setting this drop-down value well in advance. So there is little hope that standard users will be able to realize this.

I'll quote myself from https://pagure.io/fedora-qa/issue/643#comment-677549 :
The devilish part here is that:
a) the drop-down list value seems to be related to an automatic partition creation, but it is applied to manual partition creation as well
b) the drop-down list is inaccessible once you create/mount your first partition. So you can't even change it when you need it, and therefore it's very hard to figure out that this is the cause of the problem. It took me a long time and a lot of debugging to realize this.

Please *please* change the UI.

Comment 3 Ben Cotton 2021-11-04 13:43:28 UTC
This message is a reminder that Fedora 33 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '33'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 33 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 4 Ben Cotton 2021-11-04 14:12:58 UTC
This message is a reminder that Fedora 33 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '33'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 33 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 5 Ben Cotton 2021-11-04 15:10:34 UTC
This message is a reminder that Fedora 33 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '33'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 33 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 6 Ben Cotton 2022-11-29 16:49:34 UTC
This message is a reminder that Fedora Linux 35 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 35 on 2022-12-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '35'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 35 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 7 Ben Cotton 2022-12-13 15:15:51 UTC
Fedora Linux 35 entered end-of-life (EOL) status on 2022-12-13.

Fedora Linux 35 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 8 Aoife Moloney 2023-11-23 00:03:41 UTC
This message is a reminder that Fedora Linux 37 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 37 on 2023-12-05.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '37'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 37 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.


Note You need to log in before you can comment on or make changes to this bug.