luks: remove superfluous _mapper_dev (#3031)
This commit is contained in:
parent
75459f4ac2
commit
f685849b8d
|
|
@ -19,9 +19,6 @@ class Luks2:
|
||||||
key_file: Path | None = None
|
key_file: Path | None = None
|
||||||
auto_unmount: bool = False
|
auto_unmount: bool = False
|
||||||
|
|
||||||
# will be set internally after unlocking the device
|
|
||||||
_mapper_dev: Path | None = None
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def mapper_dev(self) -> Path | None:
|
def mapper_dev(self) -> Path | None:
|
||||||
if self.mapper_name:
|
if self.mapper_name:
|
||||||
|
|
@ -172,8 +169,6 @@ class Luks2:
|
||||||
debug(f"Closing crypt device {child.name}")
|
debug(f"Closing crypt device {child.name}")
|
||||||
SysCommand(f"cryptsetup close {child.name}")
|
SysCommand(f"cryptsetup close {child.name}")
|
||||||
|
|
||||||
self._mapper_dev = None
|
|
||||||
|
|
||||||
def create_keyfile(self, target_path: Path, override: bool = False) -> None:
|
def create_keyfile(self, target_path: Path, override: bool = False) -> None:
|
||||||
"""
|
"""
|
||||||
Routine to create keyfiles, so it can be moved elsewhere
|
Routine to create keyfiles, so it can be moved elsewhere
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue