We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55fd59d commit c2d2806Copy full SHA for c2d2806
1 file changed
archinstall/lib/luks.py
@@ -19,7 +19,6 @@ class Luks2:
19
mapper_name: str | None = None
20
password: Password | None = None
21
key_file: Path | None = None
22
- auto_unmount: bool = False
23
24
@property
25
def mapper_dev(self) -> Path | None:
@@ -44,13 +43,6 @@ def __post_init__(self) -> None:
44
43
if self.luks_dev_path is None:
45
raise ValueError('Partition must have a path set')
46
47
- def __enter__(self) -> None:
48
- self.unlock(self.key_file)
49
-
50
- def __exit__(self, *args: str, **kwargs: str) -> None:
51
- if self.auto_unmount:
52
- self.lock()
53
54
def _password_bytes(self) -> bytes:
55
if not self.password:
56
raise ValueError('Password for luks2 device was not specified')
0 commit comments