storaged-project / blivet

A python module for configuration of block devices
GNU Lesser General Public License v2.1
98 stars 85 forks source link

Add a unique device identifier #1182

Closed vojtechtrefny closed 7 months ago

vojtechtrefny commented 9 months ago

The new device_id identifier is meant to be unique even for devices with the same name. The primary user for this will be Anaconda which needs an ID that will be a unique string stable between reset() calls.

The device ID looks as follows:

Btrfs is currently the only device type that allows duplicate names for volumes so UUID is used for btrfs volumes. For other devices (LVM, MD...) the device name must be unique so we can use the name with technology prefix.

vojtechtrefny commented 9 months ago

Jenkins, test this please.