yast / yast-storage-ng

Rewrite of https://github.com/yast/yast-storage
http://yast.github.io/
GNU General Public License v2.0
13 stars 19 forks source link

Optionally include the encryption status in the device description #1379

Closed lslezak closed 3 months ago

lslezak commented 3 months ago

Problem

Solution

Notes

Testing

Screenshots

agama_encrypted_disk

lslezak commented 3 months ago

Questions

coveralls commented 3 months ago

Coverage Status

coverage: 97.801% (-0.01%) from 97.815% when pulling 60927eb2b5d7beec63df05da04d82e099b4c93fe on encrypted_device_label into 600ef2372424706c40291e3168bab4e6cadc0c12 on master.

joseivanlopez commented 3 months ago

Questions

  • Is this the right approach?

I think it is a valid approach.

  • Which devices can be actually encrypted?

All block devices could be encrypted, even logical volumes (Disk, Partition, Md, LvmPv, LvmLv, etc).

  • Should we check the encryption status for all kinds of devices or are there some cases where it does not make sense or is not supported? It could save some work for the translators...

In DeviceDescription there are two "branches": #formatted_device_type_label and unformatted_device_type_label. This PR covers the first branch, but I think we should add "Encryption" also in the cases of unformatted devices (e.g., "Encrypted PV of %s").

lslezak commented 3 months ago

In DeviceDescription there are two "branches": #formatted_device_type_label and unformatted_device_type_label. This PR covers the first branch, but I think we should add "Encryption" also in the cases of unformatted devices (e.g., "Encrypted PV of %s").

Yes, this first commit was just a PoC and first I wanted to get the answer for the question about which devices can be encrypted. I'll add it in the following commit(s).

dgdavid commented 3 months ago
  • In YaST it is OK because it has a dedicated column with encryption status
  • In Agama we would like to have the status included directly in the label

Just thinking aloud: YaST could benefit from this approach too.

lslezak commented 3 months ago

Possibly yes, but that's currently out of scope...

yast-bot commented 3 months ago

:heavy_check_mark: Internal Jenkins job #1154 successfully finished :heavy_check_mark: Created OBS submit request #1168841