Bug 1221087 - [Agama live-cd] Partitioning proposal offers to resize partition without knowing enough info about it
Summary: [Agama live-cd] Partitioning proposal offers to resize partition without know...
Status: CONFIRMED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Installation (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: YaST Team
QA Contact: Jiri Srain
URL: https://trello.com/c/7tDOQ06Z
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-06 16:43 UTC by Lukas Ocilka
Modified: 2024-03-12 09:23 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Storage details (419.08 KB, image/png)
2024-03-06 16:43 UTC, Lukas Ocilka
Details
cfdisk sdb2 (283.89 KB, image/png)
2024-03-06 16:48 UTC, Lukas Ocilka
Details
cfdisk sdb4 (326.18 KB, image/png)
2024-03-06 16:48 UTC, Lukas Ocilka
Details
Logs from Agama (103.49 KB, application/x-xz)
2024-03-06 16:55 UTC, Lukas Ocilka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Ocilka 2024-03-06 16:43:25 UTC
Created attachment 873269 [details]
Storage details

While testing the current (2024-03-06) partitioning proposal in Agama, I found out that it lets me to resize partitions without knowing enough info about them.

1. One was 1/2 of RAID 0 - A "Linux" partition (sdb2)
   In TW this leads at least into getting a warning that I may (and probably
   will loose some data)
   The other 1/2 of that RAID is missing in that system, that's why the RAID is 
   not assembled

2. Another was a LUKS1-encrypted partition where I did not provide a pass for 
   decryption (sdb4)
   Here it does not complain and I can simply shrink it to an unreasonable 
   minimum, yes - there are data, but they are of course ignored

How to reproduce

- Have some LUKS1 and/or part of RAID ;) on your disk(s)
- Start Agama live
- When it asks for the encryption password for the LUKS1 device(s), don't 
  provide them and just [Skip]
- At the proposal, go to the Storage
- Select the Installation Device what contains those partitions
- In Find Space, choose "Shrink existing partitions"
- Check the Used Devices and Planned Actions

See

- sdb2 (1/2 RAID): content - Not identified, size X GB, shrinkable by X GB
- sdb4 (LUKS1): content - Not identified, size Y GB, shrinkable by Y GB
- Planned actions: Shrink ancryption layer from 0 B to XX GB <- bug? Maybe 
  because it knows nothing about the FS?
Comment 1 Lukas Ocilka 2024-03-06 16:48:38 UTC
Created attachment 873270 [details]
cfdisk sdb2
Comment 2 Lukas Ocilka 2024-03-06 16:48:58 UTC
Created attachment 873271 [details]
cfdisk sdb4
Comment 3 Lukas Ocilka 2024-03-06 16:55:26 UTC
Created attachment 873272 [details]
Logs from Agama

And yes, I "DO" have a weird setup of disks. All three of them contain some older systems or parts of them. It's for the testing of the behavior.