Fix home partition device mapper name (#3516)
This commit is contained in:
parent
7a455cb625
commit
df8cb4fb39
|
|
@ -1010,6 +1010,8 @@ class PartitionModification:
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def mapper_name(self) -> str | None:
|
def mapper_name(self) -> str | None:
|
||||||
|
if self.is_home():
|
||||||
|
return 'home'
|
||||||
if self.dev_path:
|
if self.dev_path:
|
||||||
return f'{ENC_IDENTIFIER}{self.dev_path.name}'
|
return f'{ENC_IDENTIFIER}{self.dev_path.name}'
|
||||||
return None
|
return None
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue